Debian Codegraph @

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

raw
1 % \subsection{Grading by points}
2 % \DescribeEnv{graded}{The |graded| environment does nothing in latex,
3 % but in html, it wraps the activities in a div in order to assign
4 % some weight to them for grading.}
5 % \begin{macrocode}
6 %<*classXourse>
7 \newenvironment{graded}[1]{}{}
8 %</classXourse>
9 % \end{macrocode}
10 % So indeed this environment in html wraps the activities in a div in
11 % order to assign some number of points to them.
12 % \begin{macrocode}
13 %<*htXourse>
14 \renewenvironment{graded}[1]{%
15 \ifvmode \IgnorePar\fi \EndP\HCode{<div class="graded" data-weight="#1">}\IgnoreIndent%
16 }{
17 \ifvmode \IgnorePar\fi \EndP\HCode{</div>}\IgnoreIndent%
18 }
19 %</htXourse>
20 % \end{macrocode}