<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% \subsubsection{Labels and references}
% Labels and refs both generate anchors.
% \DescribeMacro{\label}{A |\label| can be referenced from any file in the xourse.}
%    \begin{macrocode}
%&lt;*htXimera&gt;
\let\oldlabel\label
\renewcommand{\label}[1]{\oldlabel{#1}\HCode{&lt;a class="ximera-label" id="#1"&gt;&lt;/a&gt;}}
%&lt;/htXimera&gt;
%    \end{macrocode}
% \DescribeMacro{\ref}{A |\ref| can connect one \TeX\ file to another if they are in the same xourse.}
%    \begin{macrocode}
%&lt;*htXimera&gt;
\renewcommand{\ref}[1]{\HCode{&lt;a class="reference" href="\##1"&gt;#1&lt;/a&gt;}}
%&lt;/htXimera&gt;
%    \end{macrocode}
</pre></body></html>