Separate questions with horizontal lines (Support #407)


Added by Anis Garna about 8 years ago. Updated about 8 years ago.


Status:New Start date:02/16/2016
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-

Description

Hello

Is it possible to separate questions by an horizontal line in automultiplechoice?
I tried many commands but I didn't succeed.


History

Updated by Frédéric Bréal about 8 years ago

Hello
Did you tried this ?

\begin{question}{Cameroon}
    Which is the capital city of Cameroon?
    \begin{choices}
      \correctchoice{Yaoundé}
      \wrongchoice{Douala}
      \wrongchoice{Abou-Dabi}
    \end{choices}
  \end{question}
  \hrule \vspace{2mm} 

Updated by Anis Garna about 8 years ago

Anis Garna wrote:
Yes, but it wasn't efficient as a solution. in fact I'm using this to prepare my document:

\documentclass[a4paper,12pt]{extarticle}

\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fp}
\usepackage{tikz}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usepackage{pgfpages}
\usepackage{gensymb}
\pgfpagesdeclarelayout{boxed} {
\edef\pgfpageoptionborder{3pt}
} {
\pgfpagesphysicalpageoptions {
logical pages=1,
}
\pgfpageslogicalpageoptions{1} {
border code=\pgfsetlinewidth{2pt}\pgfstroke,
border shrink=\pgfpageoptionborder,
resized width=.97\pgfphysicalwidth,
resized height=.96\pgfphysicalheight,
center=\pgfpoint{.5\pgfphysicalwidth}{.5\pgfphysicalheight}
}
}
\pgfpagesuselayout{boxed}
\setlength{\parindent}{2cm}

\usepackage[box,separateanswersheet]{automultiplechoice}
\AMCidsPosition{pos=none}%pour supprimer le code de la version
\AMCinterBquest=30pt
\vsize 30cm \hsize 20cm %\topmargin 0.23cm \textheight 22cm
\textwidth 17.0cm \oddsidemargin 0.0cm \evensidemargin 0.0cm

\begin{document}
\pagestyle{AMCpageNoMarks}%pour supprimer la codebar
%%% preparation of the groups

\element{One}{
\begin{question}{1}
Which is the capital city of Cameroon?
\begin{choices}
\correctchoice{Yaoundé}
\wrongchoice{Douala}
\wrongchoice{Abou-Dabi}
\end{choices}
\end{question}
}
\onecopy{4}{

\shufflegroup{One}
\insertgroup{One}

\clearpage

}
\end{document}

Updated by Alexis Bienvenüe about 8 years ago

it wasn't efficient as a solution

What do you mean?

  • Priority changed from Urgent to Normal

Updated by Frédéric Bréal about 8 years ago

Could you post this topic on the english forum (http://project.auto-multiple-choice.net/projects/auto-multiple-choice/boards) ou french ?
I'm afraid you can't do this. AMC needs the barcod and the four marks to detect the boxes and the borders may disturb this.

Also available in: Atom PDF