diff options
author | Karl Berry <karl@freefriends.org> | 2006-12-22 22:46:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-12-22 22:46:31 +0000 |
commit | 65cf1dc9000c3472b91acf91089dd74bc4474357 (patch) | |
tree | 9f29681c803329fee7cb244f24c04f94f1305fab /Master/texmf-dist/tex/latex/hyperref/nameref.sty | |
parent | c8793f6e89dc7e05db9b8d75f07881dbbd5979d5 (diff) |
hyperref update
git-svn-id: svn://tug.org/texlive/trunk@2846 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/nameref.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/nameref.sty | 27 |
1 files changed, 16 insertions, 11 deletions
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}{}% }% }% |