<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% Hyperlinks to outside documents
%    \begin{macrocode}
%&lt;*classXimera&gt;
\newcommand*{\link}[2][]{#1%
	\ifthenelse{\equal{#1}{}}%
		{\footnote{Link: \url{#2}}}%
		{\footnote{See #1 at \url{#2}}}
	}
%&lt;/classXimera&gt;
%    \end{macrocode}


%    \begin{macrocode}
%&lt;*htXimera&gt;
% This is a command used in versions of documents created with
% these classes; in Jim's opinion it should be deprecated for |\href|
% Bart on the other hand likes |\link|
\renewcommand*{\link}[2][]{%
\ifthenelse{\equal{#1}{}}%
{\url{#2}}
{\href{#2}{#1}}}
%\renewcommand*{\link}[2][]{%
%\ifthenelse{\equal{#1}{}}%
%{\url{#2}}
%{\href{#2}{#1}}}

% because hyperref redefines stuff atbegindocument, we do too.
\AtBeginDocument{\renewcommand{\ref}[1]{\HCode{&lt;a class="reference" href="\##1"&gt;#1&lt;/a&gt;}}}

%&lt;/htXimera&gt;
%    \end{macrocode}
</pre></body></html>