summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hpdftex.def')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hpdftex.def30
1 files changed, 23 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
index 000ecf43c98..4e3e26d60ac 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
@@ -24,7 +24,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hpdftex.def}
- [2009/12/17 v6.79v
+ [2009/12/18 v6.79v
Hyperref driver for pdfTeX]
\let\Hy@PutCatalog\pdfcatalog
\ifHy@pagelabels
@@ -1587,17 +1587,17 @@
\expandafter\endinput
\fi
\newlength\Hy@SectionHShift
-\def\Hy@SectionAnchor{%
+\def\Hy@SectionAnchorHref#1{%
\ifx\protect\@typeset@protect
- \Hy@@SectionAnchor
+ \Hy@@SectionAnchor{#1}%
\fi
}
-\DeclareRobustCommand*{\Hy@@SectionAnchor}{%
+\DeclareRobustCommand*{\Hy@@SectionAnchor}[1]{%
\leavevmode
\hbox to 0pt{%
\kern-\Hy@SectionHShift
\Hy@raisedlink{%
- \hyper@anchorstart{\@currentHref}\hyper@anchorend
+ \hyper@anchorstart{#1}\hyper@anchorend
}%
\hss
}%
@@ -1607,7 +1607,15 @@
\Hy@GlobalStepCount\Hy@linkcounter
\xdef\@currentHref{section*.\the\Hy@linkcounter}%
\setlength{\Hy@SectionHShift}{#1}%
- \H@old@ssect{#1}{#2}{#3}{#4}{\Hy@SectionAnchor#5}%
+ \begingroup
+ \toks@{\H@old@ssect{#1}{#2}{#3}{#4}}%
+ \toks\tw@\expandafter{%
+ \expandafter\Hy@SectionAnchorHref\expandafter{\@currentHref}%
+ #5%
+ }%
+ \edef\x{\endgroup
+ \the\toks@{\the\toks\tw@}%
+ }\x
}
\let\H@old@schapter\@schapter
\def\@schapter#1{%
@@ -1674,7 +1682,15 @@
\Hy@GlobalStepCount\Hy@linkcounter
\xdef\@currentHref{section*.\the\Hy@linkcounter}%
\setlength{\Hy@SectionHShift}{#3}%
- \H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{\Hy@SectionAnchor#8}%
+ \begingroup
+ \toks@{\H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]}%
+ \toks\tw@\expandafter{%
+ \expandafter\Hy@SectionAnchorHref\expandafter{\@currentHref}%
+ #8%
+ }%
+ \edef\x{\endgroup
+ \the\toks@{\the\toks\tw@}%
+ }\x
}{%
\H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}%
}%