| 1 |
% \subsection{Sectioning} |
| 2 |
% Makes the table of contents look a bit better. This can be |
| 3 |
% redefined in the preamble if you do not like the appearance. |
| 4 |
% \DescribeMacro{\section}{The name of a section inside an activity.} |
| 5 |
% \begin{macrocode} |
| 6 |
%<*classXourse> |
| 7 |
\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{4.2em}} |
| 8 |
%</classXourse> |
| 9 |
% \end{macrocode} |
| 10 |
% \DescribeMacro{\subsection}{The name of a subsection inside an activity.} |
| 11 |
% \begin{macrocode} |
| 12 |
%<*classXourse> |
| 13 |
\renewcommand*\l@subsection{\@dottedtocline{2}{3.8em}{4.2em}} |
| 14 |
%</classXourse> |
| 15 |
% \end{macrocode} |
| 16 |
% Xourse files can have parts. |
| 17 |
% \DescribeMacro{\part}{The name of a large part of a xourse.} |
| 18 |
% \begin{macrocode} |
| 19 |
%<*htXourse> |
| 20 |
\newcounter{ximera@part} |
| 21 |
\setcounter{ximera@part}{0} |
| 22 |
\renewcommand\part[1]{% |
| 23 |
\stepcounter{ximera@part}% |
| 24 |
\ifvmode \IgnorePar\fi \EndP% |
| 25 |
%\HCode{<h1 id="part\arabic{ximera@part}" class="card part">}#1\HCode{</h1>}% makes cards disappear? |
| 26 |
\HCode{<h1 id="part\arabic{ximera@part}" class="card part">#1</h1>}% |
| 27 |
\IgnoreIndent% |
| 28 |
} |
| 29 |
%</htXourse> |
| 30 |
% \end{macrocode} |
| 31 |
% Paragraph commands emit spans. |
| 32 |
% \DescribeMacro{\paragraph}{A small heading.} |
| 33 |
% \begin{macrocode} |
| 34 |
%<*cfgXimera> |
| 35 |
\renewcommand{\paragraph}[1]{% |
| 36 |
\HCode{<span class="paragraphHead">}% |
| 37 |
#1% |
| 38 |
\HCode{</span>}\par\IgnorePar} |
| 39 |
%</cfgXimera> |
| 40 |
% \end{macrocode} |
| 41 |
% \DescribeMacro{\subparagraph}{An even smaller heading.} |
| 42 |
% \begin{macrocode} |
| 43 |
%<*cfgXimera> |
| 44 |
\renewcommand{\subparagraph}[1]{% |
| 45 |
\HCode{<span class="subparagraphHead">}% |
| 46 |
#1% |
| 47 |
\HCode{</span>}\par\IgnorePar} |
| 48 |
%</cfgXimera> |
| 49 |
% \end{macrocode} |