<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% \subsection{Grading by points}
% \DescribeEnv{graded}{The |graded| environment does nothing in latex,
% but in html, it wraps the activities in a div in order to assign
% some weight to them for grading.}
%    \begin{macrocode}
%&lt;*classXourse&gt;
\newenvironment{graded}[1]{}{}
%&lt;/classXourse&gt;
%    \end{macrocode}
% So indeed this environment in html wraps the activities in a div in
% order to assign some number of points to them.
%    \begin{macrocode}
%&lt;*htXourse&gt;
\renewenvironment{graded}[1]{%
\ifvmode \IgnorePar\fi \EndP\HCode{&lt;div class="graded" data-weight="#1"&gt;}\IgnoreIndent%
}{
\ifvmode \IgnorePar\fi \EndP\HCode{&lt;/div&gt;}\IgnoreIndent%
}
%&lt;/htXourse&gt;
%    \end{macrocode}
</pre></body></html>