From: W. Trevor King Date: Thu, 9 May 2013 01:50:49 +0000 (-0400) Subject: local_cmmds.tex: Escape whitespace in \xref X-Git-Tag: v1.0~222 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2e4ea193109453ff91143f5e505b7cc918030748;p=thesis.git local_cmmds.tex: Escape whitespace in \xref Now (\xref{a}{equation}{c}) is rendered as (A Eqn. (c)) instead of ( A Eqn. (c) ) --- diff --git a/src/local_cmmds.tex b/src/local_cmmds.tex index bdbe922..32d0e7e 100644 --- a/src/local_cmmds.tex +++ b/src/local_cmmds.tex @@ -12,17 +12,17 @@ % 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.