Debian Codegraph @

texmf-dist/doc/latex/q-and-a/demo/mode-multiple/Q-and-A-demo-multiple-content.tex

raw
1 "
2 We start with the **normal** mode.
3
4 ? \QALabel{Q:normal-1}
5 Question.
6
7 :
8 Answer to \QARef{Q:normal-1}.
9
10 ? \QALabel{Q:normal-2}
11 Question.
12
13 :
14 Answer to \QARef{Q:normal-2}.
15
16 "
17 Now start the **multiple question** mode.
18
19 \EnableMultipleQuestion
20
21 ? \QALabel{Q:multi-1}
22 First question.
23
24 ? \QALabel{Q:multi-2}
25 Second question.
26
27 :
28 Answer to \QARef{Q:multi-1} and \QARef{Q:multi-2}.
29
30 "
31 Now stop the multiple question mode, and start the **multiple answer** mode.
32
33 \DisableMultipleQuestion
34
35 \EnableMultipleAnswer
36
37 ? \QALabel{Q:normal-multi}
38 Question with two answers \QARef{A:multi-1} and \QARef{A:multi-2}.
39
40 : \QALabel{A:multi-1}
41 First answer to \QARef{Q:normal-multi}.
42
43 : \QALabel{A:multi-2}
44 Second answer to \QARef{Q:normal-multi}.
45
46 "
47 Now start both the **multiple question** mode and the **multiple answer** mode.
48
49 \EnableMultipleQuestion
50
51 \EnableMultipleAnswer
52
53 ? \QALabel{Q:multi-1'}
54 Question.
55
56 ? \QALabel{Q:multi-2'}
57 Question.
58
59 :
60 First answer to \QARef{Q:multi-1'} and \QARef{Q:multi-2'}.
61
62 :
63 Second answer to \QARef{Q:multi-1'} and \QARef{Q:multi-2'}.
64
65 :
66 Third answer to \QARef{Q:multi-1'} and \QARef{Q:multi-2'}.
67
68 "
69 Back to the **normal** mode.
70
71 \DisableMultipleQuestion
72
73 \DisableMultipleAnswer
74
75 ? \QALabel{Q:normal-1'}
76 Question.
77
78 :
79 Answer to \QARef{Q:normal-1'}.
80
81 ? \QALabel{Q:normal-2'}
82 Question.
83
84 :
85 Answer \QARef{Q:normal-2'}.