File: zero.tex

package info (click to toggle)
auto-multiple-choice 1.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 92,612 kB
  • sloc: perl: 26,752; xml: 24,889; cpp: 1,997; python: 895; makefile: 569; sh: 233; ansic: 195
file content (72 lines) | stat: -rw-r--r-- 1,174 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
\documentclass[a4paper]{article}

\usepackage{automultiplechoice}

\begin{document}

\setdefaultgroupmode{withoutreplacement}

\def\fillgroup#1{

  \element{groupe#1}{

    \begin{question}{#1-1}
      Question #11
      \begin{choices}
        \correctchoice{Correct}
        \wrongchoice{Wrong A}
        \wrongchoice{Wrong B}
      \end{choices}
    \end{question}
    
  }
  \element{groupe#1}{

    \begin{question}{#1-2}
      Question #12
      \begin{choices}
        \correctchoice{Correct}
        \wrongchoice{Wrong A}
        \wrongchoice{Wrong B}
      \end{choices}
    \end{question}
    
  }
}

\fillgroup{a}
\fillgroup{b}
\fillgroup{c}
\fillgroup{d}
\fillgroup{e}

\onecopy{5}{

  {\Large\bf TEST EXAM}
  \vspace{2ex}

  \namefield{\fbox{    
    \begin{minipage}{.5\linewidth}
      Name :
      
      \vspace*{.5cm}\dotfill
      
      \vspace*{.5cm}\dotfill
      \vspace*{1mm}
    \end{minipage}
  }}
  \vspace{2ex}

  \insertgroup[0]{groupea}
  \insertgroupfrom[0]{groupeb}{1}

  \cleargroup{general}
  \copygroup[0]{groupec}{general}
  \copygroupfrom[0]{grouped}{general}{1}

  \copygroup{groupee}{general}

  \insertgroup{general}
}

\end{document}