diff options
author | Ian Jauslin <ian.jauslin@roma1.infn.it> | 2015-10-19 14:01:35 +0000 |
---|---|---|
committer | Ian Jauslin <ian.jauslin@roma1.infn.it> | 2015-10-19 14:01:35 +0000 |
commit | e20666ffbf87d8d85a85b8d1e446ba55a66a7e36 (patch) | |
tree | 7c816e40929aa9f28c781f689bfb4c5bd36eda75 /iansecs.sty | |
parent | 52f9075093f281409f5bc4667def2d9605beb279 (diff) |
Prevent labels from overwriting commandsv0.1.1
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% |