summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hyperref.sty')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hyperref.sty23
1 files changed, 21 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
index 77e0e906700..58b79003aad 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
+++ b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
@@ -25,7 +25,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{hyperref}
- [2008/04/20 v6.77s
+ [2008/04/22 v6.77t
Hypertext links for LaTeX]
\begingroup
\@makeother\`%
@@ -341,6 +341,7 @@
\let\@mkboth\@gobbletwo
\let\ref\HyPsd@ref
\let\pageref\HyPsd@pageref
+ \let\nameref\HyPsd@nameref
\let\autoref\HyPsd@autoref
\let\leavevmode\@empty
\let\mbox\@empty
@@ -898,7 +899,25 @@
\expandafter\expandafter\expandafter\expandafter
\expandafter\expandafter\expandafter\@car
\expandafter\expandafter\expandafter\@gobble
- \csname r@#1\endcsname\@nil
+ \csname r@#1\endcsname{}\@nil
+ \fi
+}
+\def\HyPsd@nameref#1{\HyPsd@@nameref#1*\END}
+\def\HyPsd@@nameref#1*#2\END{%
+ \ifx\\#2\\%
+ \HyPsd@@@nameref{#1}%
+ \else
+ \expandafter\HyPsd@@@nameref
+ \fi
+}
+\def\HyPsd@@@nameref#1{%
+ \expandafter\ifx\csname r@#1\endcsname\relax
+ ??%
+ \else
+ \expandafter\expandafter\expandafter\expandafter
+ \expandafter\expandafter\expandafter\@car
+ \expandafter\expandafter\expandafter\@gobbletwo
+ \csname r@#1\endcsname{}{}\@nil
\fi
}
\def\HyPsd@autoref#1{\HyPsd@@autoref#1*\END}