From 65cf1dc9000c3472b91acf91089dd74bc4474357 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 22 Dec 2006 22:46:31 +0000 Subject: hyperref update git-svn-id: svn://tug.org/texlive/trunk@2846 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/hyperref/nameref.sty | 27 ++++++++++++++---------- 1 file changed, 16 insertions(+), 11 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 55270920da3..1ecb26f04f8 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/08/15 v2.26 Cross-referencing by name of section] + [2006/12/21 v2.27 Cross-referencing by name of section] \RequirePackage{refcount}[2006/02/12] \def\strip@period#1.\relax#2\@@@{#1} \newif\ifNR@showkeys @@ -38,14 +38,16 @@ \begingroup \let\label\@gobble \def\ref{\protect\ref}% - \edef\@currentlabstr{% - \expandafter\strip@prefix\meaning\@currentlabelname + \protected@edef\@currentlabelname{\@currentlabelname}% + \@onelevel@sanitize\@currentlabelname + \edef\@currentlabelname{% + \expandafter\strip@period\@currentlabelname\relax.\relax\@@@% }% \protected@write\@auxout{}{% \string\newlabel{#1}{% {\@currentlabel}% {\thepage}% - {\expandafter\strip@period\@currentlabstr\relax.\relax\@@@}% + {\@currentlabelname}% {\@currentHref}{}% }% }% @@ -59,14 +61,16 @@ \begingroup \let\label\@gobble \def\ref{\protect\ref}% - \edef\@currentlabstr{% - \expandafter\strip@prefix\meaning\@currentlabelname + \protected@edef\@currentlabelname{\@currentlabelname}% + \@onelevel@sanitize\@currentlabelname + \edef\@currentlabelname{% + \expandafter\strip@period\@currentlabelname\relax.\relax\@@@% }% \protected@write\@auxout{}{% \string\newlabel{#1}{% {\@currentlabel}% {\thepage}% - {\expandafter\strip@period\@currentlabstr\relax.\relax\@@@}% + {\@currentlabelname}% {\@currentHref}{}% }% }% @@ -82,8 +86,10 @@ {% \let\label\@gobble \def\ref{\protect\ref}% - \edef\@currentlabstr{% - \expandafter\strip@prefix\meaning\@currentlabelname + \protected@edef\@currentlabelname{\@currentlabelname}% + \@onelevel@sanitize\@currentlabelname + \edef\@currentlabelname{% + \expandafter\strip@period\@currentlabelname\relax.\relax\@@@% }% \let\thepage\relax \def\protect{\noexpand\noexpand\noexpand}% @@ -92,8 +98,7 @@ \string\newlabel{#1}{% {\thesubequation}% {\thepage}% - {\expandafter\strip@period - \@currentlabstr\relax.\relax\@@@}% + {\@currentlabelname}% {\@currentHref}{}% }% }% -- cgit v1.2.3