summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-08-03 21:31:30 +0000
committerKarl Berry <karl@freefriends.org>2012-08-03 21:31:30 +0000
commitbab961693da2dc268bc289e71ae458271993c75c (patch)
tree15d5a664e709843efa4b7d9b1aba94bebc87246d /Master/texmf-dist/tex/latex/hyperref/hyperref.sty
parentd17e2b92c41d19da876a3ede4bb61ec4f316199d (diff)
hyperref
git-svn-id: svn://tug.org/texlive/trunk@27298 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hyperref.sty')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hyperref.sty46
1 files changed, 41 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
index 2142b0071e6..ddae40e9480 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
+++ b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
@@ -30,7 +30,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{hyperref}
- [2012/07/30 v6.82w %
+ [2012/08/03 v6.82y %
Hypertext links for LaTeX]
\begingroup
\@makeother\`%
@@ -795,7 +795,12 @@
\DeclareFontFamily{PU}{pdf}{}%
\DeclareFontShape{PU}{pdf}{m}{n}{ <-> cmr10 }{}%
\DeclareFontSubstitution{PU}{pdf}{m}{n}%
- \input{psdextra.def}%
+ \ifHy@psdextra
+ \edef\Hy@atrestore{\catcode64=\the\catcode64\relax}% @
+ \makeatletter
+ \input{psdextra.def}%
+ \Hy@atrestore
+ \fi
\let\HyPsd@LoadUnicode\relax
}
\def\texorpdfstring{%
@@ -6496,9 +6501,7 @@
\let\theHequation\newname
}{}%
\fi
- \@ifundefined{theH#1}{%
- \expandafter\def\csname theH#1\endcsname{\arabic{#1}}%
- }{}%
+ \HyCnt@ProvideTheHCounter{#1}%
\hyper@makecurrent{#1}%
\ifmeasuring@
\else
@@ -6507,6 +6510,39 @@
}%
\fi
}
+\def\HyCnt@ProvideTheHCounter#1{%
+ \@ifundefined{theH#1}{%
+ \expandafter\def\csname theH#1\endcsname{}%
+ \def\Hy@temp{\@elt{#1}}%
+ \ltx@onelevel@sanitize\Hy@temp
+ \edef\@elt{%
+ \noexpand\HyCnt@LookForParentCounter
+ \expandafter\noexpand\csname theH#1\endcsname
+ }%
+ \cl@@ckpt
+ \expandafter
+ \ltx@LocalAppendToMacro\csname theH#1\expandafter\endcsname
+ \expandafter{%
+ \expandafter\@arabic\csname c@#1\endcsname
+ }%
+ }{}%
+}
+\def\HyCnt@LookForParentCounter#1#2{%
+ \expandafter\let\expandafter\Hy@temp@A\csname cl@#2\endcsname
+ \ltx@ifundefined{cl@#2}{%
+ }{%
+ \ltx@onelevel@sanitize\Hy@temp@A
+ \edef\Hy@temp@A{%
+ \noexpand\in@{\Hy@temp}{\Hy@temp@A}%
+ }\Hy@temp@A
+ \ifin@
+ \expandafter\ltx@LocalAppendToMacro\expandafter#1%
+ \expandafter{%
+ \expandafter\@arabic\csname c@#2\endcsname.%
+ }%
+ \fi
+ }%
+}
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname chapter\endcsname\relax
\def\Hy@chapterstring{section}%