summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/hyperref/nameref.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref/nameref.dtx')
-rw-r--r--Master/texmf-dist/source/latex/hyperref/nameref.dtx23
1 files changed, 10 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/nameref.dtx b/Master/texmf-dist/source/latex/hyperref/nameref.dtx
index 212de866f7f..bb61b32ee3b 100644
--- a/Master/texmf-dist/source/latex/hyperref/nameref.dtx
+++ b/Master/texmf-dist/source/latex/hyperref/nameref.dtx
@@ -24,9 +24,9 @@
%<driver>\ProvidesFile{nameref.drv}
% \fi
% \ProvidesFile{nameref.dtx}
- [2006/12/21 v2.27 Cross-referencing by name of section]
+ [2006/12/27 v2.28 Cross-referencing by name of section]
%
-% \CheckSum{493}
+% \CheckSum{473}
%
% \iffalse
%<*driver>
@@ -116,9 +116,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\@@@%
@@ -139,9 +136,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\@@@%
@@ -169,9 +163,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\@@@%
@@ -363,7 +354,10 @@
% Access the (third) name part with |\nameref|;
% \begin{macrocode}
\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
@@ -372,7 +366,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