Debian Codegraph @

texmf-dist/doc/latex/sdaps/html/sdapsclassic.html

raw
1
2 <!DOCTYPE html>
3
4 <html>
5 <head>
6 <meta charset="utf-8" />
7 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8 <title>sdapsclassic class &#8212; sdaps-class 0.1 documentation</title>
9 <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
10 <link rel="stylesheet" href="_static/classic.css" type="text/css" />
11 <link rel="stylesheet" type="text/css" href="_static/css/sdapstex.css" />
12
13 <script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
14 <script src="_static/jquery.js"></script>
15 <script src="_static/underscore.js"></script>
16 <script src="_static/doctools.js"></script>
17
18 <link rel="index" title="Index" href="genindex.html" />
19 <link rel="search" title="Search" href="search.html" />
20 <link rel="next" title="sdapslayout package" href="sdapslayout.html" />
21 <link rel="prev" title="Creating custom layouts using base commands" href="customlayout.html" />
22 </head><body>
23 <div class="related" role="navigation" aria-label="related navigation">
24 <h3>Navigation</h3>
25 <ul>
26 <li class="right" style="margin-right: 10px">
27 <a href="genindex.html" title="General Index"
28 accesskey="I">index</a></li>
29 <li class="right" >
30 <a href="sdapslayout.html" title="sdapslayout package"
31 accesskey="N">next</a> |</li>
32 <li class="right" >
33 <a href="customlayout.html" title="Creating custom layouts using base commands"
34 accesskey="P">previous</a> |</li>
35 <li class="nav-item nav-item-0"><a href="index.html">sdaps-class 0.1 documentation</a> &#187;</li>
36 <li class="nav-item nav-item-this"><a href="">sdapsclassic class</a></li>
37 </ul>
38 </div>
39
40 <div class="document">
41 <div class="documentwrapper">
42 <div class="bodywrapper">
43 <div class="body" role="main">
44
45 <div class="section" id="sdapsclassic-class">
46 <span id="sdapsclassic"></span><h1>sdapsclassic class<a class="headerlink" href="#sdapsclassic-class" title="Permalink to this headline">ΒΆ</a></h1>
47 <p>This is the main class which currently should be used to create questionnaires.
48 It builds on top of the other packages and adds new macros and environments
49 which are similar to the ones from the original SDAPS LaTeX class.</p>
50 <p>Please note that the environments from the sdapslayout package cannot be used
51 directly as using these environments will cause conflicting macro definitions.
52 Instead one can simply use the aliases provided in this class.</p>
53 <p>The entire document should be wrapped using the <a class="reference internal" href="#questionnaire" title="questionnaire"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">questionnaire</span></code></a> environment.</p>
54 <p>The following macros and environments exist:</p>
55 <blockquote>
56 <div><ul class="simple">
57 <li><p><a class="reference internal" href="#questionnaire" title="questionnaire"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">questionnaire</span></code></a>: Main environment wrapping everything</p></li>
58 <li><p><a class="reference internal" href="#info" title="info"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">info</span></code></a>: Style definition for information block</p></li>
59 <li><p><a class="reference internal" href="#\addinfo" title="\addinfo"><code class="xref tex tex-macro docutils literal notranslate"><span class="pre">\addinfo</span></code></a>: Add metadata to the project</p></li>
60 <li><p><a class="reference internal" href="#\sdapsinfo" title="\sdapsinfo"><code class="xref tex tex-macro docutils literal notranslate"><span class="pre">\sdapsinfo</span></code></a>: Print the standard instructions for filling out</p></li>
61 </ul>
62 </div></blockquote>
63 <p>The following question types exists for your use:</p>
64 <ul class="simple">
65 <li><p><a class="reference internal" href="#\singlemark" title="\singlemark"><code class="xref tex tex-macro docutils literal notranslate"><span class="pre">\singlemark</span></code></a>: A single range or mark question</p></li>
66 <li><p><a class="reference internal" href="#\singlemarkother" title="\singlemarkother"><code class="xref tex tex-macro docutils literal notranslate"><span class="pre">\singlemarkother</span></code></a>: A single range or makr question with an alternative answer in case it isn’t applicable</p></li>
67 <li><p><a class="reference internal" href="#\textbox" title="\textbox"><code class="xref tex tex-macro docutils literal notranslate"><span class="pre">\textbox</span></code></a>: A large and optionally scalable textbox for freeform content</p></li>
68 <li><p><a class="reference internal" href="#choicequestion" title="choicequestion"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">choicequestion</span></code></a>: A multiple choice question with a number of answers</p></li>
69 <li><p><a class="reference internal" href="#choicegroup" title="choicegroup"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">choicegroup</span></code></a>: A list of multiple choice questions layed out in rows (or columns)</p></li>
70 <li><p><a class="reference internal" href="#optionquestion" title="optionquestion"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">optionquestion</span></code></a>: A single choice question with a number of answers</p></li>
71 <li><p><a class="reference internal" href="#optiongroup" title="optiongroup"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">optiongroup</span></code></a>: A list of single choice questions layed out in rows (or columns)</p></li>
72 <li><p><a class="reference internal" href="#markgroup" title="markgroup"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">markgroup</span></code></a>: A list of range or mark questions layed out in rows (or columns)</p></li>
73 </ul>
74 <p>You should only use <code class="docutils literal notranslate"><span class="pre">\section{}</span></code> for structuring the document.</p>
75 <div class="section" id="class-options">
76 <h2>Class Options<a class="headerlink" href="#class-options" title="Permalink to this headline">ΒΆ</a></h2>
77 <table class="docutils align-default">
78 <colgroup>
79 <col style="width: 28%" />
80 <col style="width: 72%" />
81 </colgroup>
82 <thead>
83 <tr class="row-odd"><th class="head"><p>Argument</p></th>
84 <th class="head"><p>Description</p></th>
85 </tr>
86 </thead>
87 <tbody>
88 <tr class="row-even"><td><p>sdaps_style</p></td>
89 <td><p>The markings style to use. Either β€œcode128”, β€œqr” (default: code128)</p></td>
90 </tr>
91 <tr class="row-odd"><td><p>checkmode</p></td>
92 <td><dl class="simple">
93 <dt>The mode for checkbox recognition can be any of:</dt><dd><ul class="simple">
94 <li><p><strong>checkcorrect</strong>: check to mark, fill to correct (unmark) (default)</p></li>
95 <li><p><strong>check</strong>: check or fill to mark</p></li>
96 <li><p><strong>fill</strong>: fill to mark</p></li>
97 </ul>
98 </dd>
99 </dl>
100 </td>
101 </tr>
102 <tr class="row-even"><td><p>disable_recognition</p></td>
103 <td><p>Disable all recognition related page markings. This must not be used
104 when intending to ues the SDAPS program for optical mark recognition.
105 An example use case would be creating a PDF form using the SDAPS
106 LaTeX classes. (default: not set)</p></td>
107 </tr>
108 <tr class="row-odd"><td><p>twoside_barcode</p></td>
109 <td><dl class="simple">
110 <dt>Where to draw barcodes if in twoside/duplex mode:</dt><dd><ul class="simple">
111 <li><p><strong>both</strong>: draw on front and back (default)</p></li>
112 <li><p><strong>front</strong>: only draw on the front of the page</p></li>
113 <li><p><strong>back</strong>: only draw on the back of the page</p></li>
114 </ul>
115 </dd>
116 </dl>
117 </td>
118 </tr>
119 <tr class="row-even"><td><p>globalid</p></td>
120 <td><p>A global identifier to be printed on the document (as barcode)</p></td>
121 </tr>
122 <tr class="row-odd"><td><p>globalidlabel</p></td>
123 <td><p>The label for the barcode (only code128)</p></td>
124 </tr>
125 <tr class="row-even"><td><p>no_print_questionnaire_id</p></td>
126 <td><p>Disable printing of questionnaire IDs</p></td>
127 </tr>
128 <tr class="row-odd"><td><p>print_questionnaire_id</p></td>
129 <td><p>Enable printing of questionnaire IDs</p></td>
130 </tr>
131 </tbody>
132 </table>
133 </div>
134 <div class="section" id="general-macros-and-environments">
135 <h2>General macros and environments<a class="headerlink" href="#general-macros-and-environments" title="Permalink to this headline">ΒΆ</a></h2>
136 <dl class="tex environ">
137 <dt id="questionnaire">
138 <em class="property">\begin{</em><code class="sig-name descname">questionnaire</code><em class="property">}</em><span class="sig"> <span class="sig-paren">[</span><em>kwargs</em><span class="sig-paren">]</span></span><br/><span class="sig"> content
139 </span><br/><em class="property">\end{</em><code class="sig-name descname">questionnaire</code><em class="property">}</em><a class="headerlink" href="#questionnaire" title="Permalink to this definition">ΒΆ</a></dt>
140 <dd><dl class="field-list simple">
141 <dt class="field-odd">Keyword Arguments</dt>
142 <dd class="field-odd"><p><strong>noinfo</strong> – Suppress the generation of the standard information text</p>
143 </dd>
144 </dl>
145 <p>This is the main environment. You should have exactly one of these
146 environments containing the entire document.</p>
147 </dd></dl>
148
149 <dl class="tex environ">
150 <dt id="info">
151 <em class="property">\begin{</em><code class="sig-name descname">info</code><em class="property">}</em><br/><span class="sig"> content
152 </span><br/><em class="property">\end{</em><code class="sig-name descname">info</code><em class="property">}</em><a class="headerlink" href="#info" title="Permalink to this definition">ΒΆ</a></dt>
153 <dd><p>A simple environment which places a line on top and below the content.</p>
154 </dd></dl>
155
156 <dl class="tex macro">
157 <dt id="\addinfo">
158 <code class="sig-name descname">\addinfo</code><span class="sig"> <span class="sig-paren">{</span><em>key</em><span class="sig-paren">}</span> <span class="sig-paren">{</span><em>value</em><span class="sig-paren">}</span></span><a class="headerlink" href="#\addinfo" title="Permalink to this definition">ΒΆ</a></dt>
159 <dd><p>Attach further metadata to the SDAPS project. This may be used for any
160 purpose and the information will also appear on the cover page when
161 generating a report using the main SDAPS program.</p>
162 </dd></dl>
163
164 <dl class="tex macro">
165 <dt id="\sdapsinfo">
166 <code class="sig-name descname">\sdapsinfo</code><a class="headerlink" href="#\sdapsinfo" title="Permalink to this definition">ΒΆ</a></dt>
167 <dd><p>Print the instruction text that is printed at the top of the page
168 unless the <cite>noinfo</cite> keyword argument is given to <a class="reference internal" href="#questionnaire" title="questionnaire"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">questionnaire</span></code></a>.</p>
169 <p>Place into a <a class="reference internal" href="#info" title="info"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">info</span></code></a> block to get the same visual appearance as the
170 default information text.</p>
171 </dd></dl>
172
173 <dl class="tex macro">
174 <dt id="\sdapspagemark">
175 <code class="sig-name descname">\sdapspagemark</code><a class="headerlink" href="#\sdapspagemark" title="Permalink to this definition">ΒΆ</a></dt>
176 <dd><p>This macro must be executed once for every page. By default it is placed
177 into the center footer and as such should not be executed unless the footer
178 is modified.</p>
179 <p>While this command is provided, use it at your own risk. No guarantees are
180 made on how the class uses this macro internally. If you use it, you need
181 to verify the behaviour whenever the class is updated and ensure that
182 everything is functioning appropriately. In particular, this macro must not
183 be executed twice per page.</p>
184 </dd></dl>
185
186 </div>
187 <div class="section" id="question-related-macros">
188 <h2>Question related macros<a class="headerlink" href="#question-related-macros" title="Permalink to this headline">ΒΆ</a></h2>
189 <dl class="tex macro">
190 <dt id="\checkbox">
191 <code class="sig-name descname">\checkbox</code><span class="sig"> <em>*</em></span><a class="headerlink" href="#\checkbox" title="Permalink to this definition">ΒΆ</a></dt>
192 <dd><dl class="field-list simple">
193 <dt class="field-odd">Arguments</dt>
194 <dd class="field-odd"><p><strong>*</strong> – If given, a single choice checkbox is shown instead of a multi choice.</p>
195 </dd>
196 </dl>
197 <p>Shows an unchecked checkbox for demonstration purposes.</p>
198 </dd></dl>
199
200 <dl class="tex macro">
201 <dt id="\checkedbox">
202 <code class="sig-name descname">\checkedbox</code><span class="sig"> <em>*</em></span><a class="headerlink" href="#\checkedbox" title="Permalink to this definition">ΒΆ</a></dt>
203 <dd><dl class="field-list simple">
204 <dt class="field-odd">Arguments</dt>
205 <dd class="field-odd"><p><strong>*</strong> – If given, a single choice checkbox is shown instead of a multi choice.</p>
206 </dd>
207 </dl>
208 <p>Shows a checked checkbox for demonstration purposes.</p>
209 </dd></dl>
210
211 <dl class="tex macro">
212 <dt id="\filledbox">
213 <code class="sig-name descname">\filledbox</code><span class="sig"> <em>*</em></span><a class="headerlink" href="#\filledbox" title="Permalink to this definition">ΒΆ</a></dt>
214 <dd><dl class="field-list simple">
215 <dt class="field-odd">Arguments</dt>
216 <dd class="field-odd"><p><strong>*</strong> – If given, a single choice checkbox is shown instead of a multi choice.</p>
217 </dd>
218 </dl>
219 <p>Shows a filled checkbox for demonstration purposes.</p>
220 </dd></dl>
221
222 <dl class="tex macro">
223 <dt id="\correctedbox">
224 <code class="sig-name descname">\correctedbox</code><span class="sig"> <em>*</em></span><a class="headerlink" href="#\correctedbox" title="Permalink to this definition">ΒΆ</a></dt>
225 <dd><dl class="field-list simple">
226 <dt class="field-odd">Arguments</dt>
227 <dd class="field-odd"><p><strong>*</strong> – If given, a single choice checkbox is shown instead of a multi choice.</p>
228 </dd>
229 </dl>
230 <p>Shows a filled and checked checkbox for demonstration purposes.</p>
231 </dd></dl>
232
233 <dl class="tex macro">
234 <dt id="\singlemark">
235 <code class="sig-name descname">\singlemark</code><span class="sig"> <span class="sig-paren">[</span><em>kwargs</em><span class="sig-paren">]</span> <span class="sig-paren">{</span><em>question</em><span class="sig-paren">}</span> <span class="sig-paren">{</span><em>lower</em><span class="sig-paren">}</span> <span class="sig-paren">{</span><em>upper</em><span class="sig-paren">}</span></span><a class="headerlink" href="#\singlemark" title="Permalink to this definition">ΒΆ</a></dt>
236 <dd><p>A simple β€œmark” question, i.e. a range. The command does not currently allow adding
237 an alternate answer in a way similar to the markgroup or rangearray environments.</p>
238 <dl class="field-list simple">
239 <dt class="field-odd">Arguments</dt>
240 <dd class="field-odd"><ul class="simple">
241 <li><p><strong>question</strong> – The question text</p></li>
242 <li><p><strong>lower</strong> – The text for the lower label</p></li>
243 <li><p><strong>upper</strong> – The text for the upper label</p></li>
244 </ul>
245 </dd>
246 <dt class="field-even">Keyword Arguments</dt>
247 <dd class="field-even"><ul class="simple">
248 <li><p><strong>var</strong> – The variable for the question (to be appended to context).</p></li>
249 <li><p><strong>count</strong> – The number of checkboxes (default: <code class="docutils literal notranslate"><span class="pre">markcheckboxcount</span></code>).</p></li>
250 </ul>
251 </dd>
252 </dl>
253 <div class="figure">
254 <div class="tabs">
255 <input type="radio" id="tab-code-15" class="tab-code" name="tab-group-15" ><label for="tab-code-15" class="label-code">Example LaTeX code</label><input type="radio" id="tab-rendering-15" class="tab-rendering" name="tab-group-15" checked><label for="tab-rendering-15" class="label-rendering">Result</label><div class="content-code">
256 <div class="highlight"><pre><span></span><span class="k">\singlemark</span><span class="nb">{</span>A range question<span class="nb">}{</span>lower<span class="nb">}{</span>upper<span class="nb">}</span>
257 <span class="k">\singlemark</span><span class="na">[count=6]</span><span class="nb">{</span>A range question with 6 answers<span class="nb">}{</span>lower<span class="nb">}{</span>upper<span class="nb">}</span>
258 <span class="k">\setcounter</span><span class="nb">{</span>markcheckboxcount<span class="nb">}{</span>7<span class="nb">}</span>
259 <span class="k">\singlemark</span><span class="nb">{</span>A range question with 7 answers<span class="nb">}{</span>lower<span class="nb">}{</span>upper<span class="nb">}</span>
260 </pre></div>
261 </div><div class="content-rendering">
262 <p><img src="_images/sdaps-b3d7aacf19c05aea886e6eb9b8a3eff001085a30.svg" alt="\singlemark{A range question}{lower}{upper}
263 \singlemark[count=6]{A range question with 6 answers}{lower}{upper}
264 \setcounter{markcheckboxcount}{7}
265 \singlemark{A range question with 7 answers}{lower}{upper}" /></p>
266 </div></div><p class="caption">Simplest form of a range question</p></div></dd></dl>
267
268 <dl class="tex macro">
269 <dt id="\singlemarkother">
270 <code class="sig-name descname">\singlemarkother</code><span class="sig"> <span class="sig-paren">[</span><em>kwargs</em><span class="sig-paren">]</span> <span class="sig-paren">{</span><em>question</em><span class="sig-paren">}</span> <span class="sig-paren">{</span><em>lower</em><span class="sig-paren">}</span> <span class="sig-paren">{</span><em>upper</em><span class="sig-paren">}</span> <span class="sig-paren">{</span><em>other</em><span class="sig-paren">}</span></span><a class="headerlink" href="#\singlemarkother" title="Permalink to this definition">ΒΆ</a></dt>
271 <dd><p>Similar to <a class="reference internal" href="#\singlemark" title="\singlemark"><code class="xref tex tex-macro docutils literal notranslate"><span class="pre">\singlemark</span></code></a> but also takes an alternative answer.</p>
272 <dl class="field-list simple">
273 <dt class="field-odd">Arguments</dt>
274 <dd class="field-odd"><ul class="simple">
275 <li><p><strong>question</strong> – The question text</p></li>
276 <li><p><strong>lower</strong> – The text for the lower label</p></li>
277 <li><p><strong>upper</strong> – The text for the upper label</p></li>
278 <li><p><strong>other</strong> – The text for the other label</p></li>
279 </ul>
280 </dd>
281 <dt class="field-even">Keyword Arguments</dt>
282 <dd class="field-even"><ul class="simple">
283 <li><p><strong>var</strong> – The variable for the question (to be appended to context).</p></li>
284 <li><p><strong>count</strong> – The number of checkboxes (default: <code class="docutils literal notranslate"><span class="pre">markcheckboxcount</span></code>).</p></li>
285 </ul>
286 </dd>
287 </dl>
288 <div class="figure">
289 <div class="tabs">
290 <input type="radio" id="tab-code-16" class="tab-code" name="tab-group-16" ><label for="tab-code-16" class="label-code">Example LaTeX code</label><input type="radio" id="tab-rendering-16" class="tab-rendering" name="tab-group-16" checked><label for="tab-rendering-16" class="label-rendering">Result</label><div class="content-code">
291 <div class="highlight"><pre><span></span><span class="k">\singlemarkother</span><span class="nb">{</span>A range question<span class="nb">}{</span>lower<span class="nb">}{</span>upper<span class="nb">}{</span>other<span class="nb">}</span>
292 <span class="k">\singlemarkother</span><span class="na">[count=6]</span><span class="nb">{</span>A range question with 6 answers<span class="nb">}{</span>lower<span class="nb">}{</span>upper<span class="nb">}{</span>other<span class="nb">}</span>
293 <span class="k">\setcounter</span><span class="nb">{</span>markcheckboxcount<span class="nb">}{</span>7<span class="nb">}</span>
294 <span class="k">\singlemarkother</span><span class="nb">{</span>A range question with 7 answers<span class="nb">}{</span>lower<span class="nb">}{</span>upper<span class="nb">}{</span>other<span class="nb">}</span>
295 </pre></div>
296 </div><div class="content-rendering">
297 <p><img src="_images/sdaps-0af490a3ed080fa7140be542f0aa6ef6566a7680.svg" alt="\singlemarkother{A range question}{lower}{upper}{other}
298 \singlemarkother[count=6]{A range question with 6 answers}{lower}{upper}{other}
299 \setcounter{markcheckboxcount}{7}
300 \singlemarkother{A range question with 7 answers}{lower}{upper}{other}" /></p>
301 </div></div><p class="caption">A range question with an alternative answer</p></div></dd></dl>
302
303 <dl class="tex macro">
304 <dt id="\textbox">
305 <code class="sig-name descname">\textbox</code><span class="sig"> <em>*</em> <span class="sig-paren">[</span><em>kwargs</em><span class="sig-paren">]</span> <span class="sig-paren">{</span><em>height</em><span class="sig-paren">}</span> <span class="sig-paren">{</span><em>question</em><span class="sig-paren">}</span></span><a class="headerlink" href="#\textbox" title="Permalink to this definition">ΒΆ</a></dt>
306 <dd><dl class="field-list simple">
307 <dt class="field-odd">Arguments</dt>
308 <dd class="field-odd"><ul class="simple">
309 <li><p><strong>*</strong> – If given, the textbox is scalable in height</p></li>
310 <li><p><strong>height</strong> – The height of the text including a unit. If the <cite>*</cite> parameter is given, then this is the minimal height only</p></li>
311 <li><p><strong>question</strong> – The question text, may not contain fragile content</p></li>
312 </ul>
313 </dd>
314 <dt class="field-even">Keyword Arguments</dt>
315 <dd class="field-even"><ul class="simple">
316 <li><p><strong>text</strong> – The question text for the metadata. Fragile content is currently <em>not</em> supported.</p></li>
317 <li><p><strong>var</strong> – The variable name for this textbox (to be appended to context)</p></li>
318 </ul>
319 </dd>
320 </dl>
321 <div class="admonition-todo admonition" id="id1">
322 <p class="admonition-title">Todo</p>
323 <p><a class="reference internal" href="#\textbox" title="\textbox"><code class="xref tex tex-macro docutils literal notranslate"><span class="pre">\textbox</span></code></a> should be able to handle an optional keyword
324 argument and then allow the question text to include fragile content.</p>
325 </div>
326 <div class="figure">
327 <div class="tabs">
328 <input type="radio" id="tab-code-17" class="tab-code" name="tab-group-17" ><label for="tab-code-17" class="label-code">Example LaTeX code</label><input type="radio" id="tab-rendering-17" class="tab-rendering" name="tab-group-17" checked><label for="tab-rendering-17" class="label-rendering">Result</label><div class="content-code">
329 <div class="highlight"><pre><span></span><span class="k">\textbox*</span><span class="nb">{</span>2cm<span class="nb">}{</span>A textbox which is 2cm high, not scaling up to the page size<span class="nb">}</span>
330 <span class="k">\textbox</span><span class="nb">{</span>2cm<span class="nb">}{</span>A textbox which is at least 2cm high and can scale up to the page size<span class="nb">}</span>
331 <span class="k">\textbox</span><span class="nb">{</span>10cm<span class="nb">}{</span>A textbox which is at least 10cm high sharing the rest of the page with the previous one<span class="nb">}</span>
332 </pre></div>
333 </div><div class="content-rendering">
334 <p><img src="_images/sdaps-a81d3fed988dc6e4d07f6553a88bb029c2a68ab5.svg" alt="\textbox*{2cm}{A textbox which is 2cm high, not scaling up to the page size}
335 \textbox{2cm}{A textbox which is at least 2cm high and can scale up to the page size}
336 \textbox{10cm}{A textbox which is at least 10cm high sharing the rest of the page with the previous one}" /></p>
337 </div></div><p class="caption">A textbox</p></div></dd></dl>
338
339 <p>Note that the SDAPS class supports rather fancy textbox handling including textboxes around
340 other content!</p>
341 <blockquote>
342 <div><div class="admonition warning">
343 <p class="admonition-title">Warning</p>
344 <p>The following examples are missing code for proper use! They mostly exist to show off the features but are not quite ready for easy consumption.</p>
345 </div>
346 <div class="figure">
347 <div class="tabs">
348 <input type="radio" id="tab-code-18" class="tab-code" name="tab-group-18" ><label for="tab-code-18" class="label-code">Example LaTeX code</label><input type="radio" id="tab-rendering-18" class="tab-rendering" name="tab-group-18" checked><label for="tab-rendering-18" class="label-rendering">Result</label><input type="radio" id="tab-metadata-18" class="tab-metadata" name="tab-group-18"><label for="tab-metadata-18" class="label-metadata">Metadata</label><div class="content-code">
349 <div class="highlight"><pre><span></span><span class="c">% Prepare some stuff so that we can access the specialized commands more easily.</span>
350 <span class="k">\ExplSyntaxOn</span>
351 <span class="k">\let\sdapshbox\sdaps</span><span class="nb">_</span>textbox<span class="nb">_</span>hbox:nnn
352 <span class="k">\let\sdapshstretch\sdaps</span><span class="nb">_</span>textbox<span class="nb">_</span>hstretch:nnnnn
353 <span class="k">\let\sdapsvbox\sdaps</span><span class="nb">_</span>textbox<span class="nb">_</span>vbox:nnnn
354 <span class="k">\ExplSyntaxOff</span>
355
356 <span class="k">\sdapshbox</span> <span class="nb">{}</span> <span class="nb">{</span>3bp<span class="nb">}</span> <span class="nb">{</span> This hbox <span class="nb">}</span> should have the same baseline. And one can see that a hbox on the left edge
357 is <span class="k">\sdapshbox</span><span class="nb">{}{</span>3bp<span class="nb">}{</span> nicely aligned <span class="nb">}</span> with the edge. And some in a formula: <span class="s">$</span><span class="nb"> f</span><span class="o">(</span><span class="nb">x</span><span class="o">)</span><span class="nb"> </span><span class="o">=</span><span class="nb"> </span><span class="nv">\frac</span><span class="nb">{</span><span class="m">1</span><span class="nb">}{c</span><span class="nv">\,\sdapshbox</span><span class="nb">{}{</span><span class="m">3</span><span class="nb">bp}{box}} </span><span class="nv">\sdapshstretch</span><span class="nb">{}{</span><span class="m">2</span><span class="nb">mm}{</span><span class="m">5</span><span class="nb">mm}{</span><span class="m">40</span><span class="nb">mm}{</span><span class="m">1</span><span class="nb">} </span><span class="s">$</span>
358
359 See how even the horizontally stretching box in math mode works fine and fills up to the whole width!
360
361 Some complex inline content:
362 <span class="k">\sdapsvbox</span> <span class="nb">{}</span> <span class="nb">{</span>0.6<span class="k">\linewidth</span><span class="nb">}</span> <span class="nb">{</span>3bp<span class="nb">}</span> <span class="nb">{</span>
363 <span class="k">\begin</span><span class="nb">{</span>tabularx<span class="nb">}{</span><span class="k">\linewidth</span><span class="nb">}{</span>l|l|X<span class="nb">}</span>
364 adsf lkasjd lksj flkjsfd <span class="nb">&amp;</span> blub <span class="nb">&amp;</span> gah <span class="k">\\</span>
365 <span class="k">\hline</span>
366 asdf <span class="nb">&amp;</span> <span class="nb">&amp;</span> <span class="k">\\</span>
367 <span class="k">\end</span><span class="nb">{</span>tabularx<span class="nb">}</span>
368
369 This is a paragraph with more text. This is a paragraph with more text. This is a paragraph with more text.
370 This is a paragraph with more text. This is a paragraph with more text. This is a paragraph with more text.
371 <span class="nb">}</span>
372 </pre></div>
373 </div><div class="content-rendering">
374 <p><img src="_images/sdaps-7b5f67fcc26f98d4c44cf020d79590112811dccc.svg" alt="% Prepare some stuff so that we can access the specialized commands more easily.
375 \ExplSyntaxOn
376 \let\sdapshbox\sdaps_textbox_hbox:nnn
377 \let\sdapshstretch\sdaps_textbox_hstretch:nnnnn
378 \let\sdapsvbox\sdaps_textbox_vbox:nnnn
379 \ExplSyntaxOff
380
381 \sdapshbox {} {3bp} { This hbox } should have the same baseline. And one can see that a hbox on the left edge
382 is \sdapshbox{}{3bp}{ nicely aligned } with the edge. And some in a formula: $ f(x) = \frac{1}{c\,\sdapshbox{}{3bp}{box}} \sdapshstretch{}{2mm}{5mm}{40mm}{1} $
383
384 See how even the horizontally stretching box in math mode works fine and fills up to the whole width!
385
386 Some complex inline content:
387 \sdapsvbox {} {0.6\linewidth} {3bp} {
388 \begin{tabularx}{\linewidth}{l|l|X}
389 adsf lkasjd lksj flkjsfd &amp; blub &amp; gah \\
390 \hline
391 asdf &amp; &amp; \\
392 \end{tabularx}
393
394 This is a paragraph with more text. This is a paragraph with more text. This is a paragraph with more text.
395 This is a paragraph with more text. This is a paragraph with more text. This is a paragraph with more text.
396 }" /></p>
397 </div><div class="content-metadata">
398 <pre>
399 [1]Author=Author
400 [2]Title=Title
401 [3]SDAPSVersion=1.9.10
402 [4]Duplex=true
403 [5]PrintQuestionnaireId=0
404 [6]PageSize=597.50793pt,845.04694pt
405 [7]Style=qr
406 [8]CheckMode=checkcorrect
407 [9]GlobalID=
408 [10]GlobalIDLabel=
409 [11]CornerMarkMargin=28.45274pt,28.45274pt,34.1433pt,34.1433pt
410 </pre></div></div><p class="caption">Fancy textboxes, for real use additional metadata writing is required!</p></div></div></blockquote>
411 <dl class="tex macro">
412 <dt>
413 <code class="sig-name descname">\addinfo</code><span class="sig"> <span class="sig-paren">{</span><em>key</em><span class="sig-paren">}</span> <span class="sig-paren">{</span><em>value</em><span class="sig-paren">}</span></span></dt>
414 <dd><p>Adds a bit of metadata. This metadata will for example appear on the cover page of the report.</p>
415 <dl class="field-list simple">
416 <dt class="field-odd">Arguments</dt>
417 <dd class="field-odd"><ul class="simple">
418 <li><p><strong>key</strong> – The key to set</p></li>
419 <li><p><strong>value</strong> – The value to set the key to</p></li>
420 </ul>
421 </dd>
422 </dl>
423 <div class="figure">
424 <div class="tabs">
425 <input type="radio" id="tab-code-19" class="tab-code" name="tab-group-19" ><label for="tab-code-19" class="label-code">Example LaTeX code</label><input type="radio" id="tab-rendering-19" class="tab-rendering" name="tab-group-19" checked><label for="tab-rendering-19" class="label-rendering">Result</label><input type="radio" id="tab-metadata-19" class="tab-metadata" name="tab-group-19"><label for="tab-metadata-19" class="label-metadata">Metadata</label><div class="content-code">
426 <div class="highlight"><pre><span></span><span class="k">\addinfo</span><span class="nb">{</span>Key 1<span class="nb">}{</span>Value 1<span class="nb">}</span>
427 <span class="k">\addinfo</span><span class="nb">{</span>Key 2<span class="nb">}{</span>Value 2<span class="nb">}</span>
428 <span class="k">\addinfo</span><span class="nb">{</span>Key 3<span class="nb">}{</span>Value 3<span class="nb">}</span>
429 <span class="k">\addinfo</span><span class="nb">{</span>Key 4<span class="nb">}{</span>Value 4<span class="nb">}</span>
430
431 Almost empty document, look at the metadata to see what this is about.
432 </pre></div>
433 </div><div class="content-rendering">
434 <p><img src="_images/sdaps-5f42eed06d6b1410d331c26cd6ee76d40ce7129d.svg" alt="\addinfo{Key 1}{Value 1}
435 \addinfo{Key 2}{Value 2}
436 \addinfo{Key 3}{Value 3}
437 \addinfo{Key 4}{Value 4}
438
439 Almost empty document, look at the metadata to see what this is about." /></p>
440 </div><div class="content-metadata">
441 <pre>
442 [1]Author=Author
443 [2]Title=Title
444 [3]SDAPSVersion=1.9.10
445 [4]Duplex=true
446 [5]PrintQuestionnaireId=0
447 [6]PageSize=597.50793pt,845.04694pt
448 [7]Style=qr
449 [8]CheckMode=checkcorrect
450 [9]GlobalID=
451 [10]GlobalIDLabel=
452 [11]CornerMarkMargin=28.45274pt,28.45274pt,34.1433pt,34.1433pt
453 [12]Info-Key 1=Value 1
454 [13]Info-Key 2=Value 2
455 [14]Info-Key 3=Value 3
456 [15]Info-Key 4=Value 4
457 </pre></div></div><p class="caption">An example showing the generated metadata</p></div></dd></dl>
458
459 </div>
460 <div class="section" id="question-environments">
461 <h2>Question Environments<a class="headerlink" href="#question-environments" title="Permalink to this headline">ΒΆ</a></h2>
462 <dl class="tex environ">
463 <dt id="choicequestion">
464 <em class="property">\begin{</em><code class="sig-name descname">choicequestion</code><em class="property">}</em><span class="sig"> <span class="sig-paren">[</span><em>kwargs</em><span class="sig-paren">]</span> <span class="sig-paren">{</span><em>text</em><span class="sig-paren">}</span></span><br/><span class="sig"> content
465 </span><br/><em class="property">\end{</em><code class="sig-name descname">choicequestion</code><em class="property">}</em><a class="headerlink" href="#choicequestion" title="Permalink to this definition">ΒΆ</a></dt>
466 <dd><dl class="field-list simple">
467 <dt class="field-odd">Arguments</dt>
468 <dd class="field-odd"><p><strong>text</strong> – Text of the choice question. Fragile content is currently <em>not</em> supported.</p>
469 </dd>
470 <dt class="field-even">Keyword Arguments</dt>
471 <dd class="field-even"><ul class="simple">
472 <li><p><strong>cols</strong> – Number of columns</p></li>
473 <li><p><strong>colsep</strong> – Spacing added on the left/right of every cell. This defaults to <cite>6pt</cite>.</p></li>
474 <li><p><strong>rowsep</strong> – Extra distance between rows. This defaults to <cite>0pt</cite>.</p></li>
475 <li><p><strong>var</strong> – Variable name for this question (to be appended to context).</p></li>
476 <li><p><strong>text</strong> – Replacement text for metadata</p></li>
477 <li><p><strong>type</strong> – the question type β€œmultichoice” or β€œsinglechoice”</p></li>
478 <li><p><strong>multichoice</strong> – switch to multichoice β€œChoice” question mode</p></li>
479 <li><p><strong>singlechoice</strong> – switch to singlechoice β€œOption” question mode</p></li>
480 </ul>
481 </dd>
482 </dl>
483 <p>The content should only contain <a class="reference internal" href="#\choiceitem" title="\choiceitem"><code class="xref tex tex-macro docutils literal notranslate"><span class="pre">\choiceitem</span></code></a>, <a class="reference internal" href="#\choicemulticolitem" title="\choicemulticolitem"><code class="xref tex tex-macro docutils literal notranslate"><span class="pre">\choicemulticolitem</span></code></a> and <a class="reference internal" href="#\choiceitemtext" title="\choiceitemtext"><code class="xref tex tex-macro docutils literal notranslate"><span class="pre">\choiceitemtext</span></code></a>.</p>
484 <div class="figure">
485 <div class="tabs">
486 <input type="radio" id="tab-code-20" class="tab-code" name="tab-group-20" ><label for="tab-code-20" class="label-code">Example LaTeX code</label><input type="radio" id="tab-rendering-20" class="tab-rendering" name="tab-group-20" checked><label for="tab-rendering-20" class="label-rendering">Result</label><div class="content-code">
487 <div class="highlight"><pre><span></span><span class="k">\begin</span><span class="nb">{</span>choicequestion<span class="nb">}</span>[cols=3]<span class="nb">{</span>This is a choice question<span class="nb">}</span>
488 <span class="k">\choiceitem</span><span class="nb">{</span>First choice<span class="nb">}</span>
489 <span class="k">\choicemulticolitem</span><span class="nb">{</span>2<span class="nb">}{</span>Second choice with a lot of text<span class="nb">}</span>
490 <span class="k">\choiceitemtext</span><span class="nb">{</span>1.2cm<span class="nb">}{</span>3<span class="nb">}{</span>Other:<span class="nb">}</span>
491 <span class="k">\end</span><span class="nb">{</span>choicequestion<span class="nb">}</span>
492 </pre></div>
493 </div><div class="content-rendering">
494 <p><img src="_images/sdaps-1395f613e9b0d555d4a73f1f91e950f35c0c7fbf.svg" alt="\begin{choicequestion}[cols=3]{This is a choice question}
495 \choiceitem{First choice}
496 \choicemulticolitem{2}{Second choice with a lot of text}
497 \choiceitemtext{1.2cm}{3}{Other:}
498 \end{choicequestion}" /></p>
499 </div></div><p class="caption">A choicequestion</p></div><dl class="tex macro">
500 <dt id="\choiceitem">
501 <code class="sig-name descname">\choiceitem</code><span class="sig"> <span class="sig-paren">[</span><em>kwargs</em><span class="sig-paren">]</span> <span class="sig-paren">{</span><em>text</em><span class="sig-paren">}</span></span><a class="headerlink" href="#\choiceitem" title="Permalink to this definition">ΒΆ</a></dt>
502 <dd><p>A possible choice in a <a class="reference internal" href="#choicequestion" title="choicequestion"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">choicequestion</span></code></a>. Will span exactly one column.</p>
503 <dl class="field-list simple">
504 <dt class="field-odd">Arguments</dt>
505 <dd class="field-odd"><p><strong>text</strong> – The text for the choice. Fragile content is currently <em>not</em> supported.</p>
506 </dd>
507 <dt class="field-even">Keyword Arguments</dt>
508 <dd class="field-even"><ul class="simple">
509 <li><p><strong>var</strong> – Variable name for this answer for multichoice (to be appended to context).</p></li>
510 <li><p><strong>val</strong> – Value for this answer for singlechoice.</p></li>
511 <li><p><strong>text</strong> – Replacement text for metadata.</p></li>
512 </ul>
513 </dd>
514 </dl>
515 </dd></dl>
516
517 <dl class="tex macro">
518 <dt id="\choicemulticolitem">
519 <code class="sig-name descname">\choicemulticolitem</code><span class="sig"> <span class="sig-paren">[</span><em>kwargs</em><span class="sig-paren">]</span> <span class="sig-paren">{</span><em>cols</em><span class="sig-paren">}</span> <span class="sig-paren">{</span><em>text</em><span class="sig-paren">}</span></span><a class="headerlink" href="#\choicemulticolitem" title="Permalink to this definition">ΒΆ</a></dt>
520 <dd><p>A possible choice in a <a class="reference internal" href="#choicequestion" title="choicequestion"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">choicequestion</span></code></a>. Will span exactly <cite>cols</cite> columns.</p>
521 <dl class="field-list simple">
522 <dt class="field-odd">Arguments</dt>
523 <dd class="field-odd"><ul class="simple">
524 <li><p><strong>cols</strong> – The number of columns to span.</p></li>
525 <li><p><strong>text</strong> – The text for the choice. Fragile content is currently <em>not</em> supported.</p></li>
526 </ul>
527 </dd>
528 <dt class="field-even">Keyword Arguments</dt>
529 <dd class="field-even"><ul class="simple">
530 <li><p><strong>var</strong> – Variable name for this answer for multichoice (to be appended to context).</p></li>
531 <li><p><strong>val</strong> – Value for this answer for singlechoice.</p></li>
532 <li><p><strong>text</strong> – Replacement text for metadata.</p></li>
533 </ul>
534 </dd>
535 </dl>
536 </dd></dl>
537
538 <dl class="tex macro">
539 <dt id="\choiceitemtext">
540 <code class="sig-name descname">\choiceitemtext</code><span class="sig"> <span class="sig-paren">[</span><em>kwargs</em><span class="sig-paren">]</span> <span class="sig-paren">{</span><em>height</em><span class="sig-paren">}</span> <span class="sig-paren">{</span><em>cols</em><span class="sig-paren">}</span> <span class="sig-paren">{</span><em>text</em><span class="sig-paren">}</span></span><a class="headerlink" href="#\choiceitemtext" title="Permalink to this definition">ΒΆ</a></dt>
541 <dd><p>A possible freeform choice in a <a class="reference internal" href="#choicequestion" title="choicequestion"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">choicequestion</span></code></a>. The text field
542 will be of height <cite>height</cite> and it will span exactly <cite>cols</cite> columns.</p>
543 <p>The text item can currently only be used in multichoice environments.</p>
544 <dl class="field-list simple">
545 <dt class="field-odd">Arguments</dt>
546 <dd class="field-odd"><ul class="simple">
547 <li><p><strong>cols</strong> – The number of columns to span.</p></li>
548 <li><p><strong>text</strong> – The text for the choice. Fragile content is currently <em>not</em> supported.</p></li>
549 </ul>
550 </dd>
551 <dt class="field-even">Keyword Arguments</dt>
552 <dd class="field-even"><ul class="simple">
553 <li><p><strong>var</strong> – Variable name for this question (to be appended to context).</p></li>
554 <li><p><strong>text</strong> – Replacement text for metadata.</p></li>
555 </ul>
556 </dd>
557 </dl>
558 </dd></dl>
559
560 </dd></dl>
561
562 <dl class="tex environ">
563 <dt id="optionquestion">
564 <em class="property">\begin{</em><code class="sig-name descname">optionquestion</code><em class="property">}</em><span class="sig"> <span class="sig-paren">[</span><em>kwargs</em><span class="sig-paren">]</span> <span class="sig-paren">{</span><em>text</em><span class="sig-paren">}</span></span><br/><span class="sig"> content
565 </span><br/><em class="property">\end{</em><code class="sig-name descname">optionquestion</code><em class="property">}</em><a class="headerlink" href="#optionquestion" title="Permalink to this definition">ΒΆ</a></dt>
566 <dd><p>Alias for <a class="reference internal" href="#choicequestion" title="choicequestion"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">choicequestion</span></code></a> which simply sets it into <code class="docutils literal notranslate"><span class="pre">singlechoice</span></code> mode by default.</p>
567 <div class="figure">
568 <div class="tabs">
569 <input type="radio" id="tab-code-21" class="tab-code" name="tab-group-21" ><label for="tab-code-21" class="label-code">Example LaTeX code</label><input type="radio" id="tab-rendering-21" class="tab-rendering" name="tab-group-21" checked><label for="tab-rendering-21" class="label-rendering">Result</label><div class="content-code">
570 <div class="highlight"><pre><span></span><span class="k">\begin</span><span class="nb">{</span>optionquestion<span class="nb">}</span>[cols=3,singlechoice]<span class="nb">{</span>This is a single choice question<span class="nb">}</span>
571 <span class="k">\choiceitem</span><span class="nb">{</span>First choice<span class="nb">}</span>
572 <span class="k">\choicemulticolitem</span><span class="nb">{</span>2<span class="nb">}{</span>Second choice with a lot of text<span class="nb">}</span>
573 <span class="k">\end</span><span class="nb">{</span>optionquestion<span class="nb">}</span>
574 </pre></div>
575 </div><div class="content-rendering">
576 <p><img src="_images/sdaps-140b633ca968d1f54a6223f2fa226fc8e59a05f6.svg" alt="\begin{optionquestion}[cols=3,singlechoice]{This is a single choice question}
577 \choiceitem{First choice}
578 \choicemulticolitem{2}{Second choice with a lot of text}
579 \end{optionquestion}" /></p>
580 </div></div><p class="caption">A choicequestion</p></div></dd></dl>
581
582 <dl class="tex environ">
583 <dt>
584 <em class="property">\begin{</em><code class="sig-name descname">info</code><em class="property">}</em><br/><span class="sig"> content
585 </span><br/><em class="property">\end{</em><code class="sig-name descname">info</code><em class="property">}</em></dt>
586 <dd><p>A simple block to typeset important information differently.</p>
587 <div class="figure">
588 <div class="tabs">
589 <input type="radio" id="tab-code-22" class="tab-code" name="tab-group-22" ><label for="tab-code-22" class="label-code">Example LaTeX code</label><input type="radio" id="tab-rendering-22" class="tab-rendering" name="tab-group-22" checked><label for="tab-rendering-22" class="label-rendering">Result</label><div class="content-code">
590 <div class="highlight"><pre><span></span><span class="k">\begin</span><span class="nb">{</span>info<span class="nb">}</span>
591 Just a block to write some information in, will have a line above and below.
592 <span class="k">\end</span><span class="nb">{</span>info<span class="nb">}</span>
593 </pre></div>
594 </div><div class="content-rendering">
595 <p><img src="_images/sdaps-faa44b67d89e6956ec791297e12883a9ddd31c6b.svg" alt="\begin{info}
596 Just a block to write some information in, will have a line above and below.
597 \end{info}" /></p>
598 </div></div><p class="caption">An info block</p></div></dd></dl>
599
600 <dl class="tex environ">
601 <dt id="markgroup">
602 <em class="property">\begin{</em><code class="sig-name descname">markgroup</code><em class="property">}</em><span class="sig"> <span class="sig-paren">[</span><em>kwargs</em><span class="sig-paren">]</span> <span class="sig-paren">{</span><em>text</em><span class="sig-paren">}</span></span><br/><span class="sig"> content
603 </span><br/><em class="property">\end{</em><code class="sig-name descname">markgroup</code><em class="property">}</em><a class="headerlink" href="#markgroup" title="Permalink to this definition">ΒΆ</a></dt>
604 <dd><dl class="field-list simple">
605 <dt class="field-odd">Arguments</dt>
606 <dd class="field-odd"><ul class="simple">
607 <li><p><strong>text</strong> – Common question for all subquestions. Fragile content is currently <em>not</em> supported</p></li>
608 <li><p><strong>kwags</strong> – Same as <a class="reference internal" href="sdapslayout.html#rangearray" title="rangearray"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">rangearray</span></code></a></p></li>
609 </ul>
610 </dd>
611 </dl>
612 <div class="figure">
613 <div class="tabs">
614 <input type="radio" id="tab-code-23" class="tab-code" name="tab-group-23" ><label for="tab-code-23" class="label-code">Example LaTeX code</label><input type="radio" id="tab-rendering-23" class="tab-rendering" name="tab-group-23" checked><label for="tab-rendering-23" class="label-rendering">Result</label><div class="content-code">
615 <div class="highlight"><pre><span></span><span class="k">\begin</span><span class="nb">{</span>markgroup<span class="nb">}</span>[align=mygroupalignment]<span class="nb">{</span>A set of mark questions<span class="nb">}</span>
616 <span class="k">\markline</span><span class="nb">{</span>First question<span class="nb">}{</span>lower<span class="nb">}{</span>upper<span class="nb">}</span>
617 <span class="k">\markline</span><span class="nb">{</span>Second question<span class="nb">}{</span>lower 2<span class="nb">}{</span>upper 2<span class="nb">}</span>
618 <span class="k">\end</span><span class="nb">{</span>markgroup<span class="nb">}</span>
619
620 <span class="k">\begin</span><span class="nb">{</span>markgroup<span class="nb">}</span>[align=mygroupalignment]<span class="nb">{</span>Another set of mark questions which is aligned to the first<span class="nb">}</span>
621 <span class="k">\markline</span><span class="nb">{</span>First question<span class="nb">}{</span>a<span class="nb">}{</span>c<span class="nb">}</span>
622 <span class="k">\markline</span><span class="nb">{</span>Second question<span class="nb">}{</span>b<span class="nb">}{</span>d<span class="nb">}</span>
623 <span class="k">\end</span><span class="nb">{</span>markgroup<span class="nb">}</span>
624
625 <span class="k">\begin</span><span class="nb">{</span>markgroup<span class="nb">}</span>[other]<span class="nb">{</span>Another further set of questions with an alternative answer<span class="nb">}</span>
626 <span class="k">\markline</span><span class="nb">{</span>First question<span class="nb">}{</span>lower<span class="nb">}{</span>upper<span class="nb">}{</span>other<span class="nb">}</span>
627 <span class="k">\markline</span><span class="nb">{</span>Second question<span class="nb">}{</span>a<span class="nb">}{</span>b<span class="nb">}{</span>c<span class="nb">}</span>
628 <span class="k">\end</span><span class="nb">{</span>markgroup<span class="nb">}</span>
629 </pre></div>
630 </div><div class="content-rendering">
631 <p><img src="_images/sdaps-45058fe18d19b32583523bb2185816768f37ddb9.svg" alt="\begin{markgroup}[align=mygroupalignment]{A set of mark questions}
632 \markline{First question}{lower}{upper}
633 \markline{Second question}{lower 2}{upper 2}
634 \end{markgroup}
635
636 \begin{markgroup}[align=mygroupalignment]{Another set of mark questions which is aligned to the first}
637 \markline{First question}{a}{c}
638 \markline{Second question}{b}{d}
639 \end{markgroup}
640
641 \begin{markgroup}[other]{Another further set of questions with an alternative answer}
642 \markline{First question}{lower}{upper}{other}
643 \markline{Second question}{a}{b}{c}
644 \end{markgroup}" /></p>
645 </div></div><p class="caption">A group of range questions (used to be called mark)</p></div></dd></dl>
646
647 <div class="admonition-todo admonition" id="id2">
648 <p class="admonition-title">Todo</p>
649 <p>The spacing in the β€œother” case is not sane, we need a larger default spacing in general.</p>
650 </div>
651 <dl class="tex environ">
652 <dt id="choicegroup">
653 <em class="property">\begin{</em><code class="sig-name descname">choicegroup</code><em class="property">}</em><span class="sig"> <span class="sig-paren">[</span><em>kwargs</em><span class="sig-paren">]</span> <span class="sig-paren">{</span><em>text</em><span class="sig-paren">}</span></span><br/><span class="sig"> content
654 </span><br/><em class="property">\end{</em><code class="sig-name descname">choicegroup</code><em class="property">}</em><a class="headerlink" href="#choicegroup" title="Permalink to this definition">ΒΆ</a></dt>
655 <dd><dl class="field-list simple">
656 <dt class="field-odd">Arguments</dt>
657 <dd class="field-odd"><ul class="simple">
658 <li><p><strong>text</strong> – Common question for all subquestions. Fragile content is currently <em>not</em> supported</p></li>
659 <li><p><strong>kwags</strong> – Same as <a class="reference internal" href="sdapslayout.html#choicearray" title="choicearray"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">choicearray</span></code></a></p></li>
660 </ul>
661 </dd>
662 </dl>
663 <div class="admonition note">
664 <p class="admonition-title">Note</p>
665 <p>The choicegroup environment is an alias for the <a class="reference internal" href="sdapslayout.html#choicearray" title="choicearray"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">choicearray</span></code></a> environment. At this
666 point the only difference is that the choicegroup environment correctly prints the
667 header and that it creates the <a class="reference internal" href="#\groupaddchoice" title="\groupaddchoice"><code class="xref tex tex-macro docutils literal notranslate"><span class="pre">\groupaddchoice</span></code></a> and <a class="reference internal" href="#\choiceline" title="\choiceline"><code class="xref tex tex-macro docutils literal notranslate"><span class="pre">\choiceline</span></code></a> aliases.</p>
668 </div>
669 <dl class="tex macro">
670 <dt id="\choice">
671 <code class="sig-name descname">\choice</code><span class="sig"> <span class="sig-paren">[</span><em>kwargs</em><span class="sig-paren">]</span> <span class="sig-paren">{</span><em>text</em><span class="sig-paren">}</span></span><a class="headerlink" href="#\choice" title="Permalink to this definition">ΒΆ</a></dt>
672 <dd><p>A possible choice inside inside the group.</p>
673 <dl class="field-list simple">
674 <dt class="field-odd">Arguments</dt>
675 <dd class="field-odd"><p><strong>text</strong> – The choices (header) text.</p>
676 </dd>
677 <dt class="field-even">Keyword Arguments</dt>
678 <dd class="field-even"><ul class="simple">
679 <li><p><strong>text</strong> – A replacement text for the metadata, if set fragile content is
680 permitted inside the <cite>text</cite> argument.</p></li>
681 <li><p><strong>var</strong> – Variable name for this answer for multichoice (to be appended to context).</p></li>
682 <li><p><strong>val</strong> – Value for this answer for singlechoice.</p></li>
683 </ul>
684 </dd>
685 </dl>
686 </dd></dl>
687
688 <dl class="tex macro">
689 <dt id="\groupaddchoice">
690 <code class="sig-name descname">\groupaddchoice</code><span class="sig"> <span class="sig-paren">[</span><em>kwargs</em><span class="sig-paren">]</span> <span class="sig-paren">{</span><em>text</em><span class="sig-paren">}</span></span><a class="headerlink" href="#\groupaddchoice" title="Permalink to this definition">ΒΆ</a></dt>
691 <dd><p>Alias for <a class="reference internal" href="#\choice" title="\choice"><code class="xref tex tex-macro docutils literal notranslate"><span class="pre">\choice</span></code></a> for compatibility.</p>
692 </dd></dl>
693
694 <dl class="tex macro">
695 <dt id="\question">
696 <code class="sig-name descname">\question</code><span class="sig"> <span class="sig-paren">[</span><em>kwargs</em><span class="sig-paren">]</span> <span class="sig-paren">{</span><em>text</em><span class="sig-paren">}</span></span><a class="headerlink" href="#\question" title="Permalink to this definition">ΒΆ</a></dt>
697 <dd><p>A single question inside the group. All choices need to be defined earlier using <a class="reference internal" href="#\choice" title="\choice"><code class="xref tex tex-macro docutils literal notranslate"><span class="pre">\choice</span></code></a>.</p>
698 <dl class="field-list simple">
699 <dt class="field-odd">Arguments</dt>
700 <dd class="field-odd"><p><strong>text</strong> – Question text.</p>
701 </dd>
702 <dt class="field-even">Keyword Arguments</dt>
703 <dd class="field-even"><ul class="simple">
704 <li><p><strong>text</strong> – A replacement text for the metadata, if set fragile content is
705 permitted inside the <cite>text</cite> argument.</p></li>
706 <li><p><strong>var</strong> – Variable name for this question (to be appended to context).</p></li>
707 <li><p><strong>range</strong> – Specify which chekcboxes to show. Needs ot be given an <strong>in order list</strong> of variables (multichoice) or values (singlechoice) also allowing specifying <cite>…</cite> for any amount of items.</p></li>
708 </ul>
709 </dd>
710 </dl>
711 </dd></dl>
712
713 <dl class="tex macro">
714 <dt id="\choiceline">
715 <code class="sig-name descname">\choiceline</code><span class="sig"> <span class="sig-paren">[</span><em>kwargs</em><span class="sig-paren">]</span> <span class="sig-paren">{</span><em>text</em><span class="sig-paren">}</span></span><a class="headerlink" href="#\choiceline" title="Permalink to this definition">ΒΆ</a></dt>
716 <dd><p>Alias for <a class="reference internal" href="#\question" title="\question"><code class="xref tex tex-macro docutils literal notranslate"><span class="pre">\question</span></code></a> for compatibility.</p>
717 </dd></dl>
718
719 <div class="figure">
720 <div class="tabs">
721 <input type="radio" id="tab-code-24" class="tab-code" name="tab-group-24" ><label for="tab-code-24" class="label-code">Example LaTeX code</label><input type="radio" id="tab-rendering-24" class="tab-rendering" name="tab-group-24" checked><label for="tab-rendering-24" class="label-rendering">Result</label><div class="content-code">
722 <div class="highlight"><pre><span></span><span class="k">\begin</span><span class="nb">{</span>choicegroup<span class="nb">}{</span>A group of questions<span class="nb">}</span>
723 <span class="k">\choice</span><span class="nb">{</span>Choice 1<span class="nb">}</span>
724 <span class="k">\choice</span><span class="nb">{</span>Choice 2<span class="nb">}</span>
725 <span class="k">\question</span><span class="nb">{</span>Question one<span class="nb">}</span>
726 <span class="k">\question</span><span class="nb">{</span>Question two<span class="nb">}</span>
727 <span class="k">\end</span><span class="nb">{</span>choicegroup<span class="nb">}</span>
728
729 <span class="k">\begin</span><span class="nb">{</span>choicegroup<span class="nb">}</span>[align=something]<span class="nb">{</span>Another question<span class="nb">}</span>
730 <span class="k">\choice</span><span class="nb">{</span>Some choice 1<span class="nb">}</span>
731 <span class="k">\choice</span><span class="nb">{</span>Some choice 2<span class="nb">}</span>
732 <span class="k">\question</span><span class="nb">{</span>Question one<span class="nb">}</span>
733 <span class="k">\question</span><span class="nb">{</span>Question two<span class="nb">}</span>
734 <span class="k">\end</span><span class="nb">{</span>choicegroup<span class="nb">}</span>
735
736 <span class="k">\begin</span><span class="nb">{</span>choicegroup<span class="nb">}</span>[align=something]<span class="nb">{</span>Another group of questions which is automatically aligned to the previous<span class="nb">}</span>
737 <span class="k">\groupaddchoice</span><span class="nb">{</span>1<span class="nb">}</span>
738 <span class="k">\groupaddchoice</span><span class="nb">{</span>2<span class="nb">}</span>
739 <span class="k">\choiceline</span><span class="nb">{</span>Question one<span class="nb">}</span>
740 <span class="k">\choiceline</span><span class="nb">{</span>Question two<span class="nb">}</span>
741 <span class="k">\end</span><span class="nb">{</span>choicegroup<span class="nb">}</span>
742 </pre></div>
743 </div><div class="content-rendering">
744 <p><img src="_images/sdaps-c561b59ed06e4787b2c57421bf3566668f4f99ce.svg" alt="\begin{choicegroup}{A group of questions}
745 \choice{Choice 1}
746 \choice{Choice 2}
747 \question{Question one}
748 \question{Question two}
749 \end{choicegroup}
750
751 \begin{choicegroup}[align=something]{Another question}
752 \choice{Some choice 1}
753 \choice{Some choice 2}
754 \question{Question one}
755 \question{Question two}
756 \end{choicegroup}
757
758 \begin{choicegroup}[align=something]{Another group of questions which is automatically aligned to the previous}
759 \groupaddchoice{1}
760 \groupaddchoice{2}
761 \choiceline{Question one}
762 \choiceline{Question two}
763 \end{choicegroup}" /></p>
764 </div></div><p class="caption">Example of a choicegroup environment</p></div><div class="figure">
765 <div class="tabs">
766 <input type="radio" id="tab-code-25" class="tab-code" name="tab-group-25" ><label for="tab-code-25" class="label-code">Example LaTeX code</label><input type="radio" id="tab-rendering-25" class="tab-rendering" name="tab-group-25" checked><label for="tab-rendering-25" class="label-rendering">Result</label><div class="content-code">
767 <div class="highlight"><pre><span></span><span class="k">\begin</span><span class="nb">{</span>choicegroup<span class="nb">}</span>[layouter=rotated,vertical]<span class="nb">{</span>A group of questions<span class="nb">}</span>
768 <span class="k">\groupaddchoice</span><span class="nb">{</span>Choice 1<span class="nb">}</span>
769 <span class="k">\groupaddchoice</span><span class="nb">{</span>Choice 2<span class="nb">}</span>
770 <span class="k">\choiceline</span><span class="nb">{</span>Question one<span class="nb">}</span>
771 <span class="k">\choiceline</span><span class="nb">{</span>Question two<span class="nb">}</span>
772 <span class="k">\end</span><span class="nb">{</span>choicegroup<span class="nb">}</span>
773
774 <span class="k">\begin</span><span class="nb">{</span>choicegroup<span class="nb">}</span>[layouter=rotated,angle=45,vertical]<span class="nb">{</span>A group of questions with a smaller angle<span class="nb">}</span>
775 <span class="k">\groupaddchoice</span><span class="nb">{</span>Choice 1<span class="nb">}</span>
776 <span class="k">\groupaddchoice</span><span class="nb">{</span>Choice 2<span class="nb">}</span>
777 <span class="k">\choiceline</span><span class="nb">{</span>Question one<span class="nb">}</span>
778 <span class="k">\choiceline</span><span class="nb">{</span>Question two<span class="nb">}</span>
779 <span class="k">\end</span><span class="nb">{</span>choicegroup<span class="nb">}</span>
780 </pre></div>
781 </div><div class="content-rendering">
782 <p><img src="_images/sdaps-8db1f62ade3508f33e8dc6385a9b25d2067ff275.svg" alt="\begin{choicegroup}[layouter=rotated,vertical]{A group of questions}
783 \groupaddchoice{Choice 1}
784 \groupaddchoice{Choice 2}
785 \choiceline{Question one}
786 \choiceline{Question two}
787 \end{choicegroup}
788
789 \begin{choicegroup}[layouter=rotated,angle=45,vertical]{A group of questions with a smaller angle}
790 \groupaddchoice{Choice 1}
791 \groupaddchoice{Choice 2}
792 \choiceline{Question one}
793 \choiceline{Question two}
794 \end{choicegroup}" /></p>
795 </div></div><p class="caption">Example of a vertical choicegroup environment also showing the &quot;rotated&quot; header layouter</p></div><div class="figure">
796 <div class="tabs">
797 <input type="radio" id="tab-code-26" class="tab-code" name="tab-group-26" ><label for="tab-code-26" class="label-code">Example LaTeX code</label><input type="radio" id="tab-rendering-26" class="tab-rendering" name="tab-group-26" checked><label for="tab-rendering-26" class="label-rendering">Result</label><div class="content-code">
798 <div class="highlight"><pre><span></span><span class="k">\begin</span><span class="nb">{</span>choicegroup<span class="nb">}</span>[colsep=2pt,singlechoice]<span class="nb">{</span>Please select a date<span class="nb">}</span>
799 <span class="k">\groupaddchoice</span><span class="nb">{</span>1<span class="nb">}</span>
800 <span class="k">\groupaddchoice</span><span class="nb">{</span>2<span class="nb">}</span>
801 <span class="k">\groupaddchoice</span><span class="nb">{</span>3<span class="nb">}</span>
802 <span class="k">\groupaddchoice</span><span class="nb">{</span>4<span class="nb">}</span>
803 <span class="k">\groupaddchoice</span><span class="nb">{</span>5<span class="nb">}</span>
804 <span class="k">\groupaddchoice</span><span class="nb">{</span>6<span class="nb">}</span>
805 <span class="k">\groupaddchoice</span><span class="nb">{</span>7<span class="nb">}</span>
806 <span class="k">\groupaddchoice</span><span class="nb">{</span>8<span class="nb">}</span>
807 <span class="k">\groupaddchoice</span><span class="nb">{</span>9<span class="nb">}</span>
808 <span class="k">\groupaddchoice</span><span class="nb">{</span>10<span class="nb">}</span>
809 <span class="k">\groupaddchoice</span><span class="nb">{</span>11<span class="nb">}</span>
810 <span class="k">\groupaddchoice</span><span class="nb">{</span>12<span class="nb">}</span>
811 <span class="k">\groupaddchoice</span><span class="nb">{</span>13<span class="nb">}</span>
812 <span class="k">\groupaddchoice</span><span class="nb">{</span>14<span class="nb">}</span>
813 <span class="k">\groupaddchoice</span><span class="nb">{</span>15<span class="nb">}</span>
814 <span class="k">\groupaddchoice</span><span class="nb">{</span>16<span class="nb">}</span>
815 <span class="k">\groupaddchoice</span><span class="nb">{</span>17<span class="nb">}</span>
816 <span class="k">\groupaddchoice</span><span class="nb">{</span>18<span class="nb">}</span>
817 <span class="k">\groupaddchoice</span><span class="nb">{</span>19<span class="nb">}</span>
818 <span class="k">\groupaddchoice</span><span class="nb">{</span>20<span class="nb">}</span>
819 <span class="k">\groupaddchoice</span><span class="nb">{</span>21<span class="nb">}</span>
820 <span class="k">\groupaddchoice</span><span class="nb">{</span>22<span class="nb">}</span>
821 <span class="k">\groupaddchoice</span><span class="nb">{</span>23<span class="nb">}</span>
822 <span class="k">\groupaddchoice</span><span class="nb">{</span>24<span class="nb">}</span>
823 <span class="k">\groupaddchoice</span><span class="nb">{</span>25<span class="nb">}</span>
824 <span class="k">\groupaddchoice</span><span class="nb">{</span>26<span class="nb">}</span>
825 <span class="k">\groupaddchoice</span><span class="nb">{</span>27<span class="nb">}</span>
826 <span class="k">\groupaddchoice</span><span class="nb">{</span>28<span class="nb">}</span>
827 <span class="k">\groupaddchoice</span><span class="nb">{</span>29<span class="nb">}</span>
828 <span class="k">\groupaddchoice</span><span class="nb">{</span>30<span class="nb">}</span>
829 <span class="k">\groupaddchoice</span><span class="nb">{</span>31<span class="nb">}</span>
830 <span class="c">% Note that the automatically assigned values match the choices.</span>
831 <span class="k">\question</span><span class="nb">{</span>Day<span class="nb">}</span>
832 <span class="k">\question</span><span class="na">[range={...,12}]</span><span class="nb">{</span>Month<span class="nb">}</span>
833 <span class="k">\question</span><span class="na">[range={2,5,...,9,28,...}]</span><span class="nb">{</span>Range<span class="nb">}</span>
834 <span class="k">\end</span><span class="nb">{</span>choicegroup<span class="nb">}</span>
835 </pre></div>
836 </div><div class="content-rendering">
837 <p><img src="_images/sdaps-7f0603689480961b8d497b11f52a0f5c96f37a09.svg" alt="\begin{choicegroup}[colsep=2pt,singlechoice]{Please select a date}
838 \groupaddchoice{1}
839 \groupaddchoice{2}
840 \groupaddchoice{3}
841 \groupaddchoice{4}
842 \groupaddchoice{5}
843 \groupaddchoice{6}
844 \groupaddchoice{7}
845 \groupaddchoice{8}
846 \groupaddchoice{9}
847 \groupaddchoice{10}
848 \groupaddchoice{11}
849 \groupaddchoice{12}
850 \groupaddchoice{13}
851 \groupaddchoice{14}
852 \groupaddchoice{15}
853 \groupaddchoice{16}
854 \groupaddchoice{17}
855 \groupaddchoice{18}
856 \groupaddchoice{19}
857 \groupaddchoice{20}
858 \groupaddchoice{21}
859 \groupaddchoice{22}
860 \groupaddchoice{23}
861 \groupaddchoice{24}
862 \groupaddchoice{25}
863 \groupaddchoice{26}
864 \groupaddchoice{27}
865 \groupaddchoice{28}
866 \groupaddchoice{29}
867 \groupaddchoice{30}
868 \groupaddchoice{31}
869 % Note that the automatically assigned values match the choices.
870 \question{Day}
871 \question[range={...,12}]{Month}
872 \question[range={2,5,...,9,28,...}]{Range}
873 \end{choicegroup}" /></p>
874 </div></div><p class="caption">Example of choice filtering</p></div></dd></dl>
875
876 <dl class="tex environ">
877 <dt id="optiongroup">
878 <em class="property">\begin{</em><code class="sig-name descname">optiongroup</code><em class="property">}</em><span class="sig"> <span class="sig-paren">[</span><em>kwargs</em><span class="sig-paren">]</span> <span class="sig-paren">{</span><em>text</em><span class="sig-paren">}</span></span><br/><span class="sig"> content
879 </span><br/><em class="property">\end{</em><code class="sig-name descname">optiongroup</code><em class="property">}</em><a class="headerlink" href="#optiongroup" title="Permalink to this definition">ΒΆ</a></dt>
880 <dd><p>Alias for <a class="reference internal" href="#choicegroup" title="choicegroup"><code class="xref tex tex-environ docutils literal notranslate"><span class="pre">choicegroup</span></code></a> which simply sets it into <code class="docutils literal notranslate"><span class="pre">singlechoice</span></code> mode by default.</p>
881 <div class="figure">
882 <div class="tabs">
883 <input type="radio" id="tab-code-27" class="tab-code" name="tab-group-27" ><label for="tab-code-27" class="label-code">Example LaTeX code</label><input type="radio" id="tab-rendering-27" class="tab-rendering" name="tab-group-27" checked><label for="tab-rendering-27" class="label-rendering">Result</label><div class="content-code">
884 <div class="highlight"><pre><span></span><span class="k">\begin</span><span class="nb">{</span>optiongroup<span class="nb">}{</span>A group of questions<span class="nb">}</span>
885 <span class="k">\choice</span><span class="nb">{</span>Choice 1<span class="nb">}</span>
886 <span class="k">\choice</span><span class="nb">{</span>Choice 2<span class="nb">}</span>
887 <span class="k">\question</span><span class="nb">{</span>Question one<span class="nb">}</span>
888 <span class="k">\question</span><span class="nb">{</span>Question two<span class="nb">}</span>
889 <span class="k">\end</span><span class="nb">{</span>optiongroup<span class="nb">}</span>
890
891 <span class="k">\begin</span><span class="nb">{</span>optiongroup<span class="nb">}</span>[align=something]<span class="nb">{</span>Another question<span class="nb">}</span>
892 <span class="k">\choice</span><span class="nb">{</span>Some choice 1<span class="nb">}</span>
893 <span class="k">\choice</span><span class="nb">{</span>Some choice 2<span class="nb">}</span>
894 <span class="k">\question</span><span class="nb">{</span>Question one<span class="nb">}</span>
895 <span class="k">\question</span><span class="nb">{</span>Question two<span class="nb">}</span>
896 <span class="k">\end</span><span class="nb">{</span>optiongroup<span class="nb">}</span>
897
898 <span class="k">\begin</span><span class="nb">{</span>choicegroup<span class="nb">}</span>[align=something,singlechoice]<span class="nb">{</span>Another group of questions which is automatically aligned to the previous<span class="nb">}</span>
899 <span class="k">\groupaddchoice</span><span class="nb">{</span>1<span class="nb">}</span>
900 <span class="k">\groupaddchoice</span><span class="nb">{</span>2<span class="nb">}</span>
901 <span class="k">\choiceline</span><span class="nb">{</span>Question one<span class="nb">}</span>
902 <span class="k">\choiceline</span><span class="nb">{</span>Question two<span class="nb">}</span>
903 <span class="k">\end</span><span class="nb">{</span>choicegroup<span class="nb">}</span>
904 </pre></div>
905 </div><div class="content-rendering">
906 <p><img src="_images/sdaps-7e1e43f790675c82f7e2b5065f9650fd709e6f3b.svg" alt="\begin{optiongroup}{A group of questions}
907 \choice{Choice 1}
908 \choice{Choice 2}
909 \question{Question one}
910 \question{Question two}
911 \end{optiongroup}
912
913 \begin{optiongroup}[align=something]{Another question}
914 \choice{Some choice 1}
915 \choice{Some choice 2}
916 \question{Question one}
917 \question{Question two}
918 \end{optiongroup}
919
920 \begin{choicegroup}[align=something,singlechoice]{Another group of questions which is automatically aligned to the previous}
921 \groupaddchoice{1}
922 \groupaddchoice{2}
923 \choiceline{Question one}
924 \choiceline{Question two}
925 \end{choicegroup}" /></p>
926 </div></div><p class="caption">Example of a choicegroup environment</p></div></dd></dl>
927
928 </div>
929 <div class="section" id="complex-typesetting-and-images">
930 <h2>Complex typesetting and images<a class="headerlink" href="#complex-typesetting-and-images" title="Permalink to this headline">ΒΆ</a></h2>
931 <p>SDAPS allows replacing the text which is exported for the metadata (i.e. what will show
932 up in the report). This can make sense for convenience reasons, if shortened answers
933 are sufficient for e.g. the report, but it also allows inserting complicated LaTeX
934 expressions into the document without having to fear any issues.</p>
935 <p>Apart from the advantage of having a better string in the report or similar you
936 also get the advantage that more TeX commands can be used in the document. Usually
937 environments like <cite>verbatim</cite> or <cite>array</cite> would not work inside an SDAPS environment,
938 but they will work if a replacement text is specified.</p>
939 <div class="figure">
940 <div class="tabs">
941 <input type="radio" id="tab-code-28" class="tab-code" name="tab-group-28" ><label for="tab-code-28" class="label-code">Example LaTeX code</label><input type="radio" id="tab-rendering-28" class="tab-rendering" name="tab-group-28" checked><label for="tab-rendering-28" class="label-rendering">Result</label><input type="radio" id="tab-metadata-28" class="tab-metadata" name="tab-group-28"><label for="tab-metadata-28" class="label-metadata">Metadata</label><div class="content-code">
942 <div class="highlight"><pre><span></span><span class="k">\begin</span><span class="nb">{</span>choicegroup<span class="nb">}</span>[layouter=rotated]<span class="nb">{</span>A group of questions<span class="nb">}</span>
943 <span class="k">\groupaddchoice</span><span class="na">[text=choice 1]</span><span class="nb">{</span><span class="s">$</span><span class="nv">\left</span><span class="o">(</span><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{array}{cc} a &amp; b </span><span class="nv">\\</span><span class="nb"> c &amp; d </span><span class="nv">\end</span><span class="nb">{array} </span><span class="nv">\right</span><span class="o">)</span><span class="nb"> </span><span class="o">+</span><span class="nb"> </span><span class="nv">\log</span><span class="nb">{</span><span class="nv">\alpha</span><span class="nb">}</span><span class="s">$</span><span class="nb">}</span>
944 <span class="k">\groupaddchoice</span><span class="na">[text=choice 2]</span><span class="nb">{</span>Choice 2 -- <span class="k">\LaTeX</span><span class="nb">}</span>
945 <span class="k">\choiceline</span><span class="na">[text=question 1]</span><span class="nb">{</span><span class="k">\verb</span><span class="nb">^</span>Inline verbatim<span class="nb">^}</span>
946 <span class="k">\choiceline</span><span class="na">[text=question 2]</span><span class="nb">{</span>
947 <span class="k">\begin</span><span class="nb">{</span>tabularx<span class="nb">}{</span>0.5<span class="k">\linewidth</span><span class="nb">}{</span>llX<span class="nb">}</span>
948 cell 1 <span class="nb">&amp;</span> cell 2 <span class="nb">&amp;</span> tabularx over half the page width fit used as the question text. This cell is the X column filling the rest of the half page.
949 <span class="k">\end</span><span class="nb">{</span>tabularx<span class="nb">}</span><span class="c">%</span>
950 <span class="nb">}</span>
951 <span class="k">\choiceline</span><span class="na">[text=question 3]</span><span class="nb">{</span>
952 <span class="k">\begin</span><span class="nb">{</span>verbatim<span class="nb">}</span>Even such things as verbatim environments work.
953 However, verbatim does have some weird spacing issues (which can be partially
954 solved by wrapping it into a vbox or similar).
955 <span class="k">\end</span><span class="nb">{</span>verbatim<span class="nb">}</span>
956 <span class="nb">}</span>
957 <span class="k">\choiceline</span><span class="nb">{</span>Question 4 ends up unmodified in the metadata<span class="nb">}</span>
958 <span class="k">\end</span><span class="nb">{</span>choicegroup<span class="nb">}</span>
959 </pre></div>
960 </div><div class="content-rendering">
961 <p><img src="_images/sdaps-33cc9f194559178b6d8f6e8d6f092bcf0c81faf3.svg" alt="\begin{choicegroup}[layouter=rotated]{A group of questions}
962 \groupaddchoice[text=choice 1]{$\left( \begin{array}{cc} a &amp; b \\ c &amp; d \end{array} \right) + \log{\alpha}$}
963 \groupaddchoice[text=choice 2]{Choice 2 -- \LaTeX}
964 \choiceline[text=question 1]{\verb^Inline verbatim^}
965 \choiceline[text=question 2]{
966 \begin{tabularx}{0.5\linewidth}{llX}
967 cell 1 &amp; cell 2 &amp; tabularx over half the page width fit used as the question text. This cell is the X column filling the rest of the half page.
968 \end{tabularx}%
969 }
970 \choiceline[text=question 3]{
971 \begin{verbatim}Even such things as verbatim environments work.
972 However, verbatim does have some weird spacing issues (which can be partially
973 solved by wrapping it into a vbox or similar).
974 \end{verbatim}
975 }
976 \choiceline{Question 4 ends up unmodified in the metadata}
977 \end{choicegroup}" /></p>
978 </div><div class="content-metadata">
979 <pre>
980 [1]Author=Author
981 [2]Title=Title
982 [3]SDAPSVersion=1.9.10
983 [4]Duplex=true
984 [5]PrintQuestionnaireId=0
985 [6]PageSize=597.50793pt,845.04694pt
986 [7]Style=qr
987 [8]CheckMode=checkcorrect
988 [9]GlobalID=
989 [10]GlobalIDLabel=
990 [11]CornerMarkMargin=28.45274pt,28.45274pt,34.1433pt,34.1433pt
991 [12]QObject-Head=1. A group of questions
992 [13]QObject-Choice=1.1. question 1
993 [14]Answer[1.1]=choice 1
994 [15]Answer[1.1]=choice 2
995 [16]Box[1.1]=Checkbox,0,487.78635pt,623.35944pt,9.95845pt,9.95845pt,box,1.00374pt,1_1_1,1
996 [17]Box[1.1]=Checkbox,0,522.22534pt,623.35944pt,9.95845pt,9.95845pt,box,1.00374pt,1_1_2,2
997 [18]Variable[1.1]=1_1
998 [19]QObject-Choice=1.2. question 2
999 [20]Answer[1.2]=choice 1
1000 [21]Answer[1.2]=choice 2
1001 [22]Box[1.2]=Checkbox,0,487.78635pt,591.21346pt,9.95845pt,9.95845pt,box,1.00374pt,1_2_1,1
1002 [23]Box[1.2]=Checkbox,0,522.22534pt,591.21346pt,9.95845pt,9.95845pt,box,1.00374pt,1_2_2,2
1003 [24]Variable[1.2]=1_2
1004 [25]QObject-Choice=1.3. question 3
1005 [26]Answer[1.3]=choice 1
1006 [27]Answer[1.3]=choice 2
1007 [28]Box[1.3]=Checkbox,0,487.78635pt,529.00714pt,9.95845pt,9.95845pt,box,1.00374pt,1_3_1,1
1008 [29]Box[1.3]=Checkbox,0,522.22534pt,529.00714pt,9.95845pt,9.95845pt,box,1.00374pt,1_3_2,2
1009 [30]Variable[1.3]=1_3
1010 [31]QObject-Choice=1.4. Question 4 ends up unmodified in the metadata
1011 [32]Answer[1.4]=choice 1
1012 [33]Answer[1.4]=choice 2
1013 [34]Box[1.4]=Checkbox,0,487.78635pt,486.20479pt,9.95845pt,9.95845pt,box,1.00374pt,1_4_1,1
1014 [35]Box[1.4]=Checkbox,0,522.22534pt,486.20479pt,9.95845pt,9.95845pt,box,1.00374pt,1_4_2,2
1015 [36]Variable[1.4]=1_4
1016 [37]Variable[1]=1
1017 </pre></div></div><p class="caption">Example of using fragile content together with metadata text replacement</p></div></div>
1018 <div class="section" id="variables">
1019 <h2>Variables<a class="headerlink" href="#variables" title="Permalink to this headline">ΒΆ</a></h2>
1020 <div class="figure">
1021 <div class="tabs">
1022 <input type="radio" id="tab-code-29" class="tab-code" name="tab-group-29" ><label for="tab-code-29" class="label-code">Example LaTeX code</label><input type="radio" id="tab-rendering-29" class="tab-rendering" name="tab-group-29" checked><label for="tab-rendering-29" class="label-rendering">Result</label><input type="radio" id="tab-metadata-29" class="tab-metadata" name="tab-group-29"><label for="tab-metadata-29" class="label-metadata">Metadata</label><div class="content-code">
1023 <div class="highlight"><pre><span></span><span class="k">\begin</span><span class="nb">{</span>choicegroup<span class="nb">}{</span>A group of questions<span class="nb">}</span>
1024 <span class="k">\groupaddchoice</span><span class="na">[var=alice]</span><span class="nb">{</span>Choice &quot;alice&quot;<span class="nb">}</span>
1025 <span class="k">\groupaddchoice</span><span class="na">[var=eve]</span><span class="nb">{</span>Choice &quot;eve&quot;<span class="nb">}</span>
1026 <span class="k">\groupaddchoice</span><span class="nb">{</span>Unnamed choice<span class="nb">}</span>
1027 <span class="k">\choiceline</span><span class="na">[var=adam]</span><span class="nb">{</span>Question &quot;adam&quot;<span class="nb">}</span>
1028 <span class="k">\choiceline</span><span class="na">[var=bob]</span><span class="nb">{</span>Question &quot;bob&quot;<span class="nb">}</span>
1029 <span class="k">\choiceline</span><span class="nb">{</span>Unnamed question<span class="nb">}</span>
1030 <span class="k">\end</span><span class="nb">{</span>choicegroup<span class="nb">}</span>
1031
1032 <span class="k">\begin</span><span class="nb">{</span>choicegroup<span class="nb">}</span>[var=flower]<span class="nb">{</span>A group of questions with variable &quot;flower&quot;<span class="nb">}</span>
1033 <span class="k">\groupaddchoice</span><span class="na">[var=alice]</span><span class="nb">{</span>Choice &quot;alice&quot;<span class="nb">}</span>
1034 <span class="k">\groupaddchoice</span><span class="na">[var=eve]</span><span class="nb">{</span>Choice &quot;eve&quot;<span class="nb">}</span>
1035 <span class="k">\groupaddchoice</span><span class="nb">{</span>Unnamed choice<span class="nb">}</span>
1036 <span class="k">\choiceline</span><span class="na">[var=adam]</span><span class="nb">{</span>Question &quot;adam&quot;<span class="nb">}</span>
1037 <span class="k">\choiceline</span><span class="na">[var=bob]</span><span class="nb">{</span>Question &quot;bob&quot;<span class="nb">}</span>
1038 <span class="k">\choiceline</span><span class="nb">{</span>Unnamed question<span class="nb">}</span>
1039 <span class="k">\end</span><span class="nb">{</span>choicegroup<span class="nb">}</span>
1040 </pre></div>
1041 </div><div class="content-rendering">
1042 <p><img src="_images/sdaps-55711c827f0e10a87ddf5733f44551a8d0723a99.svg" alt="\begin{choicegroup}{A group of questions}
1043 \groupaddchoice[var=alice]{Choice &quot;alice&quot;}
1044 \groupaddchoice[var=eve]{Choice &quot;eve&quot;}
1045 \groupaddchoice{Unnamed choice}
1046 \choiceline[var=adam]{Question &quot;adam&quot;}
1047 \choiceline[var=bob]{Question &quot;bob&quot;}
1048 \choiceline{Unnamed question}
1049 \end{choicegroup}
1050
1051 \begin{choicegroup}[var=flower]{A group of questions with variable &quot;flower&quot;}
1052 \groupaddchoice[var=alice]{Choice &quot;alice&quot;}
1053 \groupaddchoice[var=eve]{Choice &quot;eve&quot;}
1054 \groupaddchoice{Unnamed choice}
1055 \choiceline[var=adam]{Question &quot;adam&quot;}
1056 \choiceline[var=bob]{Question &quot;bob&quot;}
1057 \choiceline{Unnamed question}
1058 \end{choicegroup}" /></p>
1059 </div><div class="content-metadata">
1060 <pre>
1061 [1]Author=Author
1062 [2]Title=Title
1063 [3]SDAPSVersion=1.9.10
1064 [4]Duplex=true
1065 [5]PrintQuestionnaireId=0
1066 [6]PageSize=597.50793pt,845.04694pt
1067 [7]Style=qr
1068 [8]CheckMode=checkcorrect
1069 [9]GlobalID=
1070 [10]GlobalIDLabel=
1071 [11]CornerMarkMargin=28.45274pt,28.45274pt,34.1433pt,34.1433pt
1072 [12]QObject-Head=1. A group of questions
1073 [13]QObject-Choice=1.1. Question &quot;adam&quot;
1074 [14]Answer[1.1]=Choice &quot;alice&quot;
1075 [15]Answer[1.1]=Choice &quot;eve&quot;
1076 [16]Answer[1.1]=Unnamed choice
1077 [17]Box[1.1]=Checkbox,0,354.78316pt,699.3666pt,9.95845pt,9.95845pt,box,1.00374pt,adam_alice,1
1078 [18]Box[1.1]=Checkbox,0,431.50972pt,699.3666pt,9.95845pt,9.95845pt,box,1.00374pt,adam_eve,2
1079 [19]Box[1.1]=Checkbox,0,513.3727pt,699.3666pt,9.95845pt,9.95845pt,box,1.00374pt,adam_3,3
1080 [20]Variable[1.1]=adam
1081 [21]QObject-Choice=1.2. Question &quot;bob&quot;
1082 [22]Answer[1.2]=Choice &quot;alice&quot;
1083 [23]Answer[1.2]=Choice &quot;eve&quot;
1084 [24]Answer[1.2]=Unnamed choice
1085 [25]Box[1.2]=Checkbox,0,354.78316pt,685.76659pt,9.95845pt,9.95845pt,box,1.00374pt,bob_alice,1
1086 [26]Box[1.2]=Checkbox,0,431.50972pt,685.76659pt,9.95845pt,9.95845pt,box,1.00374pt,bob_eve,2
1087 [27]Box[1.2]=Checkbox,0,513.3727pt,685.76659pt,9.95845pt,9.95845pt,box,1.00374pt,bob_3,3
1088 [28]Variable[1.2]=bob
1089 [29]QObject-Choice=1.3. Unnamed question
1090 [30]Answer[1.3]=Choice &quot;alice&quot;
1091 [31]Answer[1.3]=Choice &quot;eve&quot;
1092 [32]Answer[1.3]=Unnamed choice
1093 [33]Box[1.3]=Checkbox,0,354.78316pt,672.16658pt,9.95845pt,9.95845pt,box,1.00374pt,1_3_alice,1
1094 [34]Box[1.3]=Checkbox,0,431.50972pt,672.16658pt,9.95845pt,9.95845pt,box,1.00374pt,1_3_eve,2
1095 [35]Box[1.3]=Checkbox,0,513.3727pt,672.16658pt,9.95845pt,9.95845pt,box,1.00374pt,1_3_3,3
1096 [36]Variable[1.3]=1_3
1097 [37]Variable[1]=1
1098 [38]QObject-Head=2. A group of questions with variable &quot;flower&quot;
1099 [39]QObject-Choice=2.1. Question &quot;adam&quot;
1100 [40]Answer[2.1]=Choice &quot;alice&quot;
1101 [41]Answer[2.1]=Choice &quot;eve&quot;
1102 [42]Answer[2.1]=Unnamed choice
1103 [43]Box[2.1]=Checkbox,0,354.78316pt,624.29645pt,9.95845pt,9.95845pt,box,1.00374pt,flower_adam_alice,1
1104 [44]Box[2.1]=Checkbox,0,431.50972pt,624.29645pt,9.95845pt,9.95845pt,box,1.00374pt,flower_adam_eve,2
1105 [45]Box[2.1]=Checkbox,0,513.3727pt,624.29645pt,9.95845pt,9.95845pt,box,1.00374pt,flower_adam_3,3
1106 [46]Variable[2.1]=flower_adam
1107 [47]QObject-Choice=2.2. Question &quot;bob&quot;
1108 [48]Answer[2.2]=Choice &quot;alice&quot;
1109 [49]Answer[2.2]=Choice &quot;eve&quot;
1110 [50]Answer[2.2]=Unnamed choice
1111 [51]Box[2.2]=Checkbox,0,354.78316pt,610.69644pt,9.95845pt,9.95845pt,box,1.00374pt,flower_bob_alice,1
1112 [52]Box[2.2]=Checkbox,0,431.50972pt,610.69644pt,9.95845pt,9.95845pt,box,1.00374pt,flower_bob_eve,2
1113 [53]Box[2.2]=Checkbox,0,513.3727pt,610.69644pt,9.95845pt,9.95845pt,box,1.00374pt,flower_bob_3,3
1114 [54]Variable[2.2]=flower_bob
1115 [55]QObject-Choice=2.3. Unnamed question
1116 [56]Answer[2.3]=Choice &quot;alice&quot;
1117 [57]Answer[2.3]=Choice &quot;eve&quot;
1118 [58]Answer[2.3]=Unnamed choice
1119 [59]Box[2.3]=Checkbox,0,354.78316pt,597.09644pt,9.95845pt,9.95845pt,box,1.00374pt,flower_3_alice,1
1120 [60]Box[2.3]=Checkbox,0,431.50972pt,597.09644pt,9.95845pt,9.95845pt,box,1.00374pt,flower_3_eve,2
1121 [61]Box[2.3]=Checkbox,0,513.3727pt,597.09644pt,9.95845pt,9.95845pt,box,1.00374pt,flower_3_3,3
1122 [62]Variable[2.3]=flower_3
1123 [63]Variable[2]=flower
1124 </pre></div></div><p class="caption">A choicegroup example using variables. Notice that the boxes in the metadata
1125 have variables named e.g. &quot;flower_adam_alice&quot;. The first group of questions does
1126 not have a common prefix. The second group of questions has the common &quot;flowerd&quot; prefix.</p></div><div class="figure">
1127 <div class="tabs">
1128 <input type="radio" id="tab-code-30" class="tab-code" name="tab-group-30" ><label for="tab-code-30" class="label-code">Example LaTeX code</label><input type="radio" id="tab-rendering-30" class="tab-rendering" name="tab-group-30" checked><label for="tab-rendering-30" class="label-rendering">Result</label><input type="radio" id="tab-metadata-30" class="tab-metadata" name="tab-group-30"><label for="tab-metadata-30" class="label-metadata">Metadata</label><div class="content-code">
1129 <div class="highlight"><pre><span></span><span class="k">\begin</span><span class="nb">{</span>markgroup<span class="nb">}{</span>A group of questions<span class="nb">}</span>
1130 <span class="k">\markline</span><span class="na">[var=alice]</span><span class="nb">{</span>Question &quot;alice&quot;<span class="nb">}{</span>lower<span class="nb">}{</span>upper<span class="nb">}</span>
1131 <span class="k">\markline</span><span class="na">[var=bob]</span><span class="nb">{</span>Question &quot;bob&quot;<span class="nb">}{</span>lower<span class="nb">}{</span>upper<span class="nb">}</span>
1132 <span class="k">\markline</span><span class="nb">{</span>Unnamed question<span class="nb">}{</span>lower<span class="nb">}{</span>upper<span class="nb">}</span>
1133 <span class="k">\end</span><span class="nb">{</span>markgroup<span class="nb">}</span>
1134
1135 <span class="k">\begin</span><span class="nb">{</span>markgroup<span class="nb">}</span>[var=car]<span class="nb">{</span>A group of questions with variable &quot;car&quot;<span class="nb">}</span>
1136 <span class="k">\markline</span><span class="na">[var=alice]</span><span class="nb">{</span>Question &quot;alice&quot;<span class="nb">}{</span>lower<span class="nb">}{</span>upper<span class="nb">}</span>
1137 <span class="k">\markline</span><span class="na">[var=bob]</span><span class="nb">{</span>Question &quot;bob&quot;<span class="nb">}{</span>lower<span class="nb">}{</span>upper<span class="nb">}</span>
1138 <span class="k">\markline</span><span class="nb">{</span>Unnamed question<span class="nb">}{</span>lower<span class="nb">}{</span>upper<span class="nb">}</span>
1139 <span class="k">\end</span><span class="nb">{</span>markgroup<span class="nb">}</span>
1140 </pre></div>
1141 </div><div class="content-rendering">
1142 <p><img src="_images/sdaps-994d531070d44373a381c5d15bcfbe632c3ff224.svg" alt="\begin{markgroup}{A group of questions}
1143 \markline[var=alice]{Question &quot;alice&quot;}{lower}{upper}
1144 \markline[var=bob]{Question &quot;bob&quot;}{lower}{upper}
1145 \markline{Unnamed question}{lower}{upper}
1146 \end{markgroup}
1147
1148 \begin{markgroup}[var=car]{A group of questions with variable &quot;car&quot;}
1149 \markline[var=alice]{Question &quot;alice&quot;}{lower}{upper}
1150 \markline[var=bob]{Question &quot;bob&quot;}{lower}{upper}
1151 \markline{Unnamed question}{lower}{upper}
1152 \end{markgroup}" /></p>
1153 </div><div class="content-metadata">
1154 <pre>
1155 [1]Author=Author
1156 [2]Title=Title
1157 [3]SDAPSVersion=1.9.10
1158 [4]Duplex=true
1159 [5]PrintQuestionnaireId=0
1160 [6]PageSize=597.50793pt,845.04694pt
1161 [7]Style=qr
1162 [8]CheckMode=checkcorrect
1163 [9]GlobalID=
1164 [10]GlobalIDLabel=
1165 [11]CornerMarkMargin=28.45274pt,28.45274pt,34.1433pt,34.1433pt
1166 [12]QObject-Head=1. A group of questions
1167 [13]QObject-Range=1.1. Question &quot;alice&quot;
1168 [14]Range-lower[1.1]=0,lower
1169 [15]Box[1.1]=Checkbox,0,424.49905pt,712.9666pt,9.95845pt,9.95845pt,ellipse,1.00374pt,alice_1,1
1170 [16]Box[1.1]=Checkbox,0,445.34537pt,712.9666pt,9.95845pt,9.95845pt,ellipse,1.00374pt,alice_2,2
1171 [17]Box[1.1]=Checkbox,0,466.19168pt,712.9666pt,9.95845pt,9.95845pt,ellipse,1.00374pt,alice_3,3
1172 [18]Box[1.1]=Checkbox,0,487.038pt,712.9666pt,9.95845pt,9.95845pt,ellipse,1.00374pt,alice_4,4
1173 [19]Box[1.1]=Checkbox,0,507.88431pt,712.9666pt,9.95845pt,9.95845pt,ellipse,1.00374pt,alice_5,5
1174 [20]Range-upper[1.1]=4,upper
1175 [21]Variable[1.1]=alice
1176 [22]QObject-Range=1.2. Question &quot;bob&quot;
1177 [23]Range-lower[1.2]=0,lower
1178 [24]Box[1.2]=Checkbox,0,424.49905pt,699.3666pt,9.95845pt,9.95845pt,ellipse,1.00374pt,bob_1,1
1179 [25]Box[1.2]=Checkbox,0,445.34537pt,699.3666pt,9.95845pt,9.95845pt,ellipse,1.00374pt,bob_2,2
1180 [26]Box[1.2]=Checkbox,0,466.19168pt,699.3666pt,9.95845pt,9.95845pt,ellipse,1.00374pt,bob_3,3
1181 [27]Box[1.2]=Checkbox,0,487.038pt,699.3666pt,9.95845pt,9.95845pt,ellipse,1.00374pt,bob_4,4
1182 [28]Box[1.2]=Checkbox,0,507.88431pt,699.3666pt,9.95845pt,9.95845pt,ellipse,1.00374pt,bob_5,5
1183 [29]Range-upper[1.2]=4,upper
1184 [30]Variable[1.2]=bob
1185 [31]QObject-Range=1.3. Unnamed question
1186 [32]Range-lower[1.3]=0,lower
1187 [33]Box[1.3]=Checkbox,0,424.49905pt,685.76659pt,9.95845pt,9.95845pt,ellipse,1.00374pt,1_3_1,1
1188 [34]Box[1.3]=Checkbox,0,445.34537pt,685.76659pt,9.95845pt,9.95845pt,ellipse,1.00374pt,1_3_2,2
1189 [35]Box[1.3]=Checkbox,0,466.19168pt,685.76659pt,9.95845pt,9.95845pt,ellipse,1.00374pt,1_3_3,3
1190 [36]Box[1.3]=Checkbox,0,487.038pt,685.76659pt,9.95845pt,9.95845pt,ellipse,1.00374pt,1_3_4,4
1191 [37]Box[1.3]=Checkbox,0,507.88431pt,685.76659pt,9.95845pt,9.95845pt,ellipse,1.00374pt,1_3_5,5
1192 [38]Range-upper[1.3]=4,upper
1193 [39]Variable[1.3]=1_3
1194 [40]Variable[1]=1
1195 [41]QObject-Head=2. A group of questions with variable &quot;car&quot;
1196 [42]QObject-Range=2.1. Question &quot;alice&quot;
1197 [43]Range-lower[2.1]=0,lower
1198 [44]Box[2.1]=Checkbox,0,424.49905pt,651.49646pt,9.95845pt,9.95845pt,ellipse,1.00374pt,car_alice_1,1
1199 [45]Box[2.1]=Checkbox,0,445.34537pt,651.49646pt,9.95845pt,9.95845pt,ellipse,1.00374pt,car_alice_2,2
1200 [46]Box[2.1]=Checkbox,0,466.19168pt,651.49646pt,9.95845pt,9.95845pt,ellipse,1.00374pt,car_alice_3,3
1201 [47]Box[2.1]=Checkbox,0,487.038pt,651.49646pt,9.95845pt,9.95845pt,ellipse,1.00374pt,car_alice_4,4
1202 [48]Box[2.1]=Checkbox,0,507.88431pt,651.49646pt,9.95845pt,9.95845pt,ellipse,1.00374pt,car_alice_5,5
1203 [49]Range-upper[2.1]=4,upper
1204 [50]Variable[2.1]=car_alice
1205 [51]QObject-Range=2.2. Question &quot;bob&quot;
1206 [52]Range-lower[2.2]=0,lower
1207 [53]Box[2.2]=Checkbox,0,424.49905pt,637.89645pt,9.95845pt,9.95845pt,ellipse,1.00374pt,car_bob_1,1
1208 [54]Box[2.2]=Checkbox,0,445.34537pt,637.89645pt,9.95845pt,9.95845pt,ellipse,1.00374pt,car_bob_2,2
1209 [55]Box[2.2]=Checkbox,0,466.19168pt,637.89645pt,9.95845pt,9.95845pt,ellipse,1.00374pt,car_bob_3,3
1210 [56]Box[2.2]=Checkbox,0,487.038pt,637.89645pt,9.95845pt,9.95845pt,ellipse,1.00374pt,car_bob_4,4
1211 [57]Box[2.2]=Checkbox,0,507.88431pt,637.89645pt,9.95845pt,9.95845pt,ellipse,1.00374pt,car_bob_5,5
1212 [58]Range-upper[2.2]=4,upper
1213 [59]Variable[2.2]=car_bob
1214 [60]QObject-Range=2.3. Unnamed question
1215 [61]Range-lower[2.3]=0,lower
1216 [62]Box[2.3]=Checkbox,0,424.49905pt,624.29645pt,9.95845pt,9.95845pt,ellipse,1.00374pt,car_3_1,1
1217 [63]Box[2.3]=Checkbox,0,445.34537pt,624.29645pt,9.95845pt,9.95845pt,ellipse,1.00374pt,car_3_2,2
1218 [64]Box[2.3]=Checkbox,0,466.19168pt,624.29645pt,9.95845pt,9.95845pt,ellipse,1.00374pt,car_3_3,3
1219 [65]Box[2.3]=Checkbox,0,487.038pt,624.29645pt,9.95845pt,9.95845pt,ellipse,1.00374pt,car_3_4,4
1220 [66]Box[2.3]=Checkbox,0,507.88431pt,624.29645pt,9.95845pt,9.95845pt,ellipse,1.00374pt,car_3_5,5
1221 [67]Range-upper[2.3]=4,upper
1222 [68]Variable[2.3]=car_3
1223 [69]Variable[2]=car
1224 </pre></div></div><p class="caption">A markgroup example using variables. The variable is e.g. &quot;car_alice&quot;
1225 and the boxes have a value assigned to them. Grouping is handled as in the
1226 previous case, adding the prefix when given.</p></div></div>
1227 </div>
1228
1229
1230 <div class="clearer"></div>
1231 </div>
1232 </div>
1233 </div>
1234 <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
1235 <div class="sphinxsidebarwrapper">
1236 <h3><a href="index.html">Table of Contents</a></h3>
1237 <ul>
1238 <li><a class="reference internal" href="#">sdapsclassic class</a><ul>
1239 <li><a class="reference internal" href="#class-options">Class Options</a></li>
1240 <li><a class="reference internal" href="#general-macros-and-environments">General macros and environments</a></li>
1241 <li><a class="reference internal" href="#question-related-macros">Question related macros</a></li>
1242 <li><a class="reference internal" href="#question-environments">Question Environments</a></li>
1243 <li><a class="reference internal" href="#complex-typesetting-and-images">Complex typesetting and images</a></li>
1244 <li><a class="reference internal" href="#variables">Variables</a></li>
1245 </ul>
1246 </li>
1247 </ul>
1248
1249 <h4>Previous topic</h4>
1250 <p class="topless"><a href="customlayout.html"
1251 title="previous chapter">Creating custom layouts using base commands</a></p>
1252 <h4>Next topic</h4>
1253 <p class="topless"><a href="sdapslayout.html"
1254 title="next chapter">sdapslayout package</a></p>
1255 <div role="note" aria-label="source link">
1256 <h3>This Page</h3>
1257 <ul class="this-page-menu">
1258 <li><a href="_sources/sdapsclassic.rst.txt"
1259 rel="nofollow">Show Source</a></li>
1260 </ul>
1261 </div>
1262 <div id="searchbox" style="display: none" role="search">
1263 <h3 id="searchlabel">Quick search</h3>
1264 <div class="searchformwrapper">
1265 <form class="search" action="search.html" method="get">
1266 <input type="text" name="q" aria-labelledby="searchlabel" />
1267 <input type="submit" value="Go" />
1268 </form>
1269 </div>
1270 </div>
1271 <script>$('#searchbox').show(0);</script>
1272 </div>
1273 </div>
1274 <div class="clearer"></div>
1275 </div>
1276 <div class="related" role="navigation" aria-label="related navigation">
1277 <h3>Navigation</h3>
1278 <ul>
1279 <li class="right" style="margin-right: 10px">
1280 <a href="genindex.html" title="General Index"
1281 >index</a></li>
1282 <li class="right" >
1283 <a href="sdapslayout.html" title="sdapslayout package"
1284 >next</a> |</li>
1285 <li class="right" >
1286 <a href="customlayout.html" title="Creating custom layouts using base commands"
1287 >previous</a> |</li>
1288 <li class="nav-item nav-item-0"><a href="index.html">sdaps-class 0.1 documentation</a> &#187;</li>
1289 <li class="nav-item nav-item-this"><a href="">sdapsclassic class</a></li>
1290 </ul>
1291 </div>
1292 <div class="footer" role="contentinfo">
1293 &#169; Copyright 2016, Benjamin Berg.
1294 Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.4.3.
1295 </div>
1296 </body>
1297 </html>