From 76e439039464d8b132be4800bb4d1d0d2ccddcc0 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 29 Dec 2006 00:56:13 +0000
Subject: hyperref update (28dec06)

git-svn-id: svn://tug.org/texlive/trunk@3002 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/hyperref/nameref.sty | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/hyperref/nameref.sty')

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
-- 
cgit v1.2.3

