Debian Codegraph @

texmf-dist/doc/latex/ximera/src/ungraded.dtx

raw
1 % \subsubsection{Ungraded activities}
2 % \DescribeEnv{ungraded}{The |ungraded| environment is used to record
3 % that certain parts of activities should not be worth points. For
4 % example, if you want to use a multipleChoice as a survey question,
5 % you can place it inside an |ungraded| environment.}
6 % On the \LaTeX\ side, the |ungraded| environment does nothing.
7 % \begin{macrocode}
8 %<*classXimera>
9 \newenvironment{ungraded}{}{}
10 %</classXimera>
11 % \end{macrocode}
12 % But on the html side, |ungraded| wraps the activities in a div in
13 % order to assign some weight to them for grading.
14 % \begin{macrocode}
15 %<*htXimera>
16 \renewenvironment{ungraded}{%
17 \ifvmode \IgnorePar\fi \EndP\HCode{<div class="ungraded">}\IgnoreIndent%
18 }{
19 \ifvmode \IgnorePar\fi \EndP\HCode{</div>}\IgnoreIndent%
20 }
21 %</htXimera>
22 % \end{macrocode}