diff options
Diffstat (limited to 'iansecs.sty')
-rw-r--r-- | iansecs.sty | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/iansecs.sty b/iansecs.sty index 125659f..e5e4b00 100644 --- a/iansecs.sty +++ b/iansecs.sty @@ -74,15 +74,15 @@ %% define a label for the latest tag %% label defines a command containing the string stored in \tag \AtBeginDocument{ - \def\label#1{\expandafter\outdef{#1}{\safe\tag}} + \def\label#1{\expandafter\outdef{label@#1}{\safe\tag}} \def\ref#1{% % check whether the label is defined (hyperlink runs into errors if this check is ommitted) -\ifcsname #1@hl\endcsname% -\hyperlink{ln.\csname #1@hl\endcsname}{\safe\csname #1\endcsname}% +\ifcsname label@#1@hl\endcsname% +\hyperlink{ln.\csname label@#1@hl\endcsname}{\safe\csname label@#1\endcsname}% \else% -\ifcsname #1\endcsname% -\csname #1\endcsname% +\ifcsname label@#1\endcsname% +\csname label@#1\endcsname% \else% {\bf ??}% \fi% |