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