<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% \subsection{Sectioning}
% Makes the table of contents look a bit better.  This can be
% redefined in the preamble if you do not like the appearance.
% \DescribeMacro{\section}{The name of a section inside an activity.}
%    \begin{macrocode}
%&lt;*classXourse&gt;
\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{4.2em}}
%&lt;/classXourse&gt;
%    \end{macrocode}
% \DescribeMacro{\subsection}{The name of a subsection inside an activity.}
%    \begin{macrocode}
%&lt;*classXourse&gt;
\renewcommand*\l@subsection{\@dottedtocline{2}{3.8em}{4.2em}}
%&lt;/classXourse&gt;
%    \end{macrocode}
% Xourse files can have parts.
% \DescribeMacro{\part}{The name of a large part of a xourse.}
%    \begin{macrocode}
%&lt;*htXourse&gt;
\newcounter{ximera@part}
\setcounter{ximera@part}{0}
\renewcommand\part[1]{%
\stepcounter{ximera@part}%
\ifvmode \IgnorePar\fi \EndP%
%\HCode{&lt;h1 id="part\arabic{ximera@part}" class="card part"&gt;}#1\HCode{&lt;/h1&gt;}% makes cards disappear?
\HCode{&lt;h1 id="part\arabic{ximera@part}" class="card part"&gt;#1&lt;/h1&gt;}%
\IgnoreIndent%
}
%&lt;/htXourse&gt;
%    \end{macrocode}
% Paragraph commands emit spans.
% \DescribeMacro{\paragraph}{A small heading.}
%    \begin{macrocode}
%&lt;*cfgXimera&gt;
\renewcommand{\paragraph}[1]{%
  \HCode{&lt;span class="paragraphHead"&gt;}%
  #1%
  \HCode{&lt;/span&gt;}\par\IgnorePar}
%&lt;/cfgXimera&gt;
%    \end{macrocode}
% \DescribeMacro{\subparagraph}{An even smaller heading.}
%    \begin{macrocode}
%&lt;*cfgXimera&gt;
\renewcommand{\subparagraph}[1]{%
  \HCode{&lt;span class="subparagraphHead"&gt;}%
  #1%
  \HCode{&lt;/span&gt;}\par\IgnorePar}
%&lt;/cfgXimera&gt;
%    \end{macrocode}
</pre></body></html>