Debian Codegraph @

texmf-dist/doc/latex/ran_toks/examples/db1.tex

raw
1 %
2 % First DB, uses ran_toks and eqexam
3 %
4 \bRTVToks{DB1}
5
6 \begin{rtVW}
7 \begin{problem}[5]
8 DB1: First: Which is correct?
9 \begin{answers}{4}
10 \bChoices[nCols=1,random,label=db1-1]
11 \Ans1 True\eAns
12 \Ans0 False\eAns
13 \Ans0 Maybe\eAns
14 \Ans0 Perhaps\eAns
15 \eChoices
16 \end{answers}
17 \begin{solution}
18 It is obvious that the answer is `\useSavedAns{db1-1}', that is, alternative \useSavedAlts{db1-1} is correct.
19 \end{solution}
20 \end{problem}
21 \end{rtVW}
22
23 \begin{rtVW}
24 \begin{problem}[5]
25 DB1: Second: Which is correct?
26 \begin{answers}{4}
27 \bChoices[nCols=1,random,label=db1-2]
28 \Ans1 True\eAns
29 \Ans0 False\eAns
30 \Ans0 Maybe\eAns
31 \Ans0 Perhaps\eAns
32 \eChoices
33 \end{answers}
34 \begin{solution}
35 According to the guy sitting next to me, the answer might be \useSavedAlts{db1-2}
36 \end{solution}
37 \end{problem}
38 \end{rtVW}
39
40 \begin{rtVW}
41 \begin{problem}[5]
42 DB1: Third: Which is correct?
43 \begin{answers}{4}
44 \bChoices[nCols=1,random,label=db1-3]
45 \Ans1 True\eAns
46 \Ans0 False\eAns
47 \Ans0 Maybe\eAns
48 \Ans0 Perhaps\eAns
49 \eChoices
50 \end{answers}
51 \begin{solution}
52 I know the answer in advance to be \useSavedAlts{db1-3}, but don't tell anyone.
53 \end{solution}
54 \end{problem}
55 \end{rtVW}
56
57 \begin{rtVW}
58 \begin{problem}[5]
59 DB1: Fourth: Which is correct?
60 \begin{answers}{4}
61 \bChoices[nCols=1,random,label=db1-4]
62 \Ans1 True\eAns
63 \Ans0 False\eAns
64 \Ans0 Maybe\eAns
65 \Ans0 Perhaps\eAns
66 \eChoices
67 \end{answers}
68 \begin{solution}
69 After meditating in the lotus position on this question for many hours, we determine that the correct answer is \textbf{\useSavedAltsAns{db1-4}}.
70 \end{solution}
71 \end{problem}
72 \end{rtVW}
73
74 \eRTVToks
75
76 \endinput