From 2e4ea193109453ff91143f5e505b7cc918030748 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 8 May 2013 21:50:49 -0400 Subject: [PATCH] local_cmmds.tex: Escape whitespace in \xref Now (\xref{a}{equation}{c}) is rendered as (A Eqn. (c)) instead of ( A Eqn. (c) ) --- src/local_cmmds.tex | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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. -- 2.26.2