Debian Codegraph @

texmf-dist/doc/latex/ran_toks/examples/rt-tst-eqe.tex

raw
1 %
2 % This demo file shows how to randomize the questions of an exam created
3 % by the eqexam package.
4 %
5 \documentclass{article}
6 \usepackage[allowrandomize,nosolutions,
7 forpaper,pointsonleft,noparttotals]{eqexam}
8 \usepackage{ran_toks}
9
10 \useLastAsSeed
11 %\useThisSeed{452836675}
12 \examNum{1}
13 \title[T\nExam]{Test \nExam}
14 \author{D. P. Story}
15 \subject[MC]{My Course}
16 \date{Spring \the\year}
17 \keywords{Test~\nExam, Section 001}
18
19 \university
20 {%
21 THE UNIVERSITY OF AKRON\\
22 Theoretical and Applied Mathematics
23 }
24 \email{[email protected]}
25
26 \begin{document}
27
28 \maketitle
29
30
31 \begin{exam}{Exam\nExam}
32
33 \begin{instructions}
34 Solve each problem without error.
35 \end{instructions}
36
37 \bRTVToks{Exam\nExam}
38
39 \begin{rtVW}
40 \begin{problem}[5]
41 First: Which is correct?
42 \begin{answers}{4}
43 \bChoices[nCols=2,random]
44 \Ans1 True\eAns
45 \Ans0 False\eAns
46 \Ans0 Maybe\eAns
47 \Ans0 Perhaps\eAns
48 \eChoices
49 \end{answers}
50 \end{problem}
51 \end{rtVW}
52
53 \begin{rtVW}
54 \begin{problem}[5]
55 Second: Which is correct?
56 \begin{answers}{4}
57 \bChoices[nCols=2,random]
58 \Ans1 True\eAns
59 \Ans0 False\eAns
60 \Ans0 Maybe\eAns
61 \Ans0 Perhaps\eAns
62 \eChoices
63 \end{answers}
64 \end{problem}
65 \end{rtVW}
66
67 \begin{rtVW}
68 \begin{problem}[5]
69 Third: Which is correct?
70 \begin{answers}{4}
71 \bChoices[nCols=2,random]
72 \Ans1 True\eAns
73 \Ans0 False\eAns
74 \Ans0 Maybe\eAns
75 \Ans0 Perhaps\eAns
76 \eChoices
77 \end{answers}
78 \end{problem}
79 \end{rtVW}
80
81 \begin{rtVW}
82 \begin{problem}[5]
83 Fourth: Which is correct?
84 \begin{answers}{4}
85 \bChoices[nCols=2,random]
86 \Ans1 True\eAns
87 \Ans0 False\eAns
88 \Ans0 Maybe\eAns
89 \Ans0 Perhaps\eAns
90 \eChoices
91 \end{answers}
92 \end{problem}
93 \end{rtVW}
94
95 \eRTVToks
96
97 % Ok, now display this questions in a random order.
98 \displayListRandomly{Exam\nExam}
99
100 \end{exam}
101
102 \end{document}