summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ximera/src/labels.dtx
blob: 05ecf31fc944a377c1caf84cd045e2a54a9b5676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
% \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}
%<*htXimera>
\let\oldlabel\label
\renewcommand{\label}[1]{\oldlabel{#1}\HCode{<a class="ximera-label" id="#1"></a>}}
%</htXimera>
%    \end{macrocode}
% \DescribeMacro{\ref}{A |\ref| can connect one \TeX\ file to another if they are in the same xourse.}
%    \begin{macrocode}
%<*htXimera>
\renewcommand{\ref}[1]{\HCode{<a class="reference" href="\##1">#1</a>}}
%</htXimera>
%    \end{macrocode}