Now
(\xref{a}{equation}{c})
is rendered as
(A Eqn. (c))
instead of
( A Eqn. (c) )
% usage: \fref{environment}{value}
% for example: \fref{figure}{75}
\newcommand{\fref}[2]{%
- \switch
- \case{\isequal{#1}{equation}}
- Eqn.~\iref{#2}
- \case{\isequal{#1}{figure}}
- Fig.~\iref{#2}
- \otherwise
+ \switch%
+ \case{\isequal{#1}{equation}}%
+ Eqn.~\iref{#2}%
+ \case{\isequal{#1}{figure}}%
+ Fig.~\iref{#2}%
+ \otherwise%
\PackageError{fref}{
\MessageBreak
environment value >#2< unknown \MessageBreak
- }{possible values are: equation. \MessageBreak}
- \endswitch
+ }{possible values are: equation. \MessageBreak}%
+ \endswitch%
}
% References to external figures, equations, etc.