summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/pdfmark.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-12-22 23:43:01 +0000
committerKarl Berry <karl@freefriends.org>2009-12-22 23:43:01 +0000
commit8c5ee37ebbf28e964cc0683db17b319177ceb2f1 (patch)
treec240287494cae575dd95a8700eed95096d6dcfb0 /Master/texmf-dist/tex/latex/hyperref/pdfmark.def
parent2da1229487e5586f88bbccd034057d5164b79863 (diff)
hyperref update (22dec09)
git-svn-id: svn://tug.org/texlive/trunk@16482 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/pdfmark.def')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/pdfmark.def30
1 files changed, 23 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/pdfmark.def b/Master/texmf-dist/tex/latex/hyperref/pdfmark.def
index 3237b36a25b..b757c144734 100644
--- a/Master/texmf-dist/tex/latex/hyperref/pdfmark.def
+++ b/Master/texmf-dist/tex/latex/hyperref/pdfmark.def
@@ -24,7 +24,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{pdfmark.def}
- [2009/12/17 v6.79v
+ [2009/12/18 v6.79v
Hyperref definitions for pdfmark specials]
\begingroup
\toks@\expandafter{\Hy@FirstPageHook}%
@@ -1605,17 +1605,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
}%
@@ -1625,7 +1625,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{%
@@ -1692,7 +1700,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}%
}%