| 1 |
% \subsubsection{Labels and references} |
| 2 |
% Labels and refs both generate anchors. |
| 3 |
% \DescribeMacro{\label}{A |\label| can be referenced from any file in the xourse.} |
| 4 |
% \begin{macrocode} |
| 5 |
%<*htXimera> |
| 6 |
\let\oldlabel\label |
| 7 |
\renewcommand{\label}[1]{\oldlabel{#1}\HCode{<a class="ximera-label" id="#1"></a>}} |
| 8 |
%</htXimera> |
| 9 |
% \end{macrocode} |
| 10 |
% \DescribeMacro{\ref}{A |\ref| can connect one \TeX\ file to another if they are in the same xourse.} |
| 11 |
% \begin{macrocode} |
| 12 |
%<*htXimera> |
| 13 |
\renewcommand{\ref}[1]{\HCode{<a class="reference" href="\##1">#1</a>}} |
| 14 |
%</htXimera> |
| 15 |
% \end{macrocode} |