diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/computational-complexity/relabel.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/computational-complexity/relabel.sty | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/computational-complexity/relabel.sty b/Master/texmf-dist/tex/latex/computational-complexity/relabel.sty index 8bf37755e2c..72b52591b97 100644 --- a/Master/texmf-dist/tex/latex/computational-complexity/relabel.sty +++ b/Master/texmf-dist/tex/latex/computational-complexity/relabel.sty @@ -6,7 +6,7 @@ %% %% cc.dtx (with options: `relabel,chartab') %% -%% Copyright 2000-2011 +%% Copyright 2000-2012 %% Michael N"usken, Joachim von zur Gathen, computational complexity %% %% IMPORTANT NOTICE: @@ -103,14 +103,16 @@ {\csname the#1\endcsname}% } \if@bare -\let\relabel@label\label -\def\label#1{\ifx\@currentlabel\@bare@currentlabel\else - {\let\@currentlabel\@bare@currentlabel\relabel@label{bare@#1}}% - \fi\relabel@label{#1}} +\def\relabel@label#1{\ifx\@currentlabel\@bare@currentlabel\else + {\let\@currentlabel\@bare@currentlabel\relabel@olabel{bare@#1}}% + \fi\relabel@olabel{#1}} +\def\init@bare{\if@bare\let\relabel@olabel\label\let\label\relabel@label\fi} +\AtBeginDocument{\init@bare}% \def\bare\ref#1{\@ifundefined{r@bare@#1}{\ref{#1}}{\ref{bare@#1}}} \else \def\bare{\PackageWarning{relabel}{\string\bare\space disabled! (Use option bare to enable it.)}} +\def\init@bare{} \fi \let\@bare@currentlabel\@currentlabel \endinput |