diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/nameref.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/nameref.sty | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/nameref.sty b/Master/texmf-dist/tex/latex/hyperref/nameref.sty index 1ecb26f04f8..d878781e7fe 100644 --- a/Master/texmf-dist/tex/latex/hyperref/nameref.sty +++ b/Master/texmf-dist/tex/latex/hyperref/nameref.sty @@ -20,7 +20,7 @@ %% given in the file `manifest.txt'. \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{nameref} - [2006/12/21 v2.27 Cross-referencing by name of section] + [2006/12/27 v2.28 Cross-referencing by name of section] \RequirePackage{refcount}[2006/02/12] \def\strip@period#1.\relax#2\@@@{#1} \newif\ifNR@showkeys @@ -36,9 +36,6 @@ \def\label#1{% \@bsphack \begingroup - \let\label\@gobble - \def\ref{\protect\ref}% - \protected@edef\@currentlabelname{\@currentlabelname}% \@onelevel@sanitize\@currentlabelname \edef\@currentlabelname{% \expandafter\strip@period\@currentlabelname\relax.\relax\@@@% @@ -59,9 +56,6 @@ \@bsphack \SK@\SK@@label{#1}% \begingroup - \let\label\@gobble - \def\ref{\protect\ref}% - \protected@edef\@currentlabelname{\@currentlabelname}% \@onelevel@sanitize\@currentlabelname \edef\@currentlabelname{% \expandafter\strip@period\@currentlabelname\relax.\relax\@@@% @@ -84,9 +78,6 @@ \@bsphack \if@filesw {% - \let\label\@gobble - \def\ref{\protect\ref}% - \protected@edef\@currentlabelname{\@currentlabelname}% \@onelevel@sanitize\@currentlabelname \edef\@currentlabelname{% \expandafter\strip@period\@currentlabelname\relax.\relax\@@@% @@ -213,7 +204,10 @@ \DeclareRobustCommand{\pageref}{\T@pageref}% } \def\T@nameref#1{% - \NR@setref{#1}\@thirdoffive{#1}% + \begingroup + \let\label\@gobble + \NR@setref{#1}\@thirdoffive{#1}% + \endgroup }% \ifNR@showkeys \ifx\SK@ref\@empty @@ -222,7 +216,10 @@ \@safe@activestrue \SK@\SK@@ref{#1}% \@safe@activesfalse - \NR@setref{#1}\@thirdoffive{#1}% + \begingroup + \let\label\@gobble + \NR@setref{#1}\@thirdoffive{#1}% + \endgroup }% \fi \fi |