summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.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/hdvipdfm.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/hdvipdfm.def')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def30
1 files changed, 23 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def b/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def
index 4ba243ba9d6..4be1988aa19 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def
@@ -24,7 +24,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hdvipdfm.def}
- [2009/12/17 v6.79v
+ [2009/12/18 v6.79v
Hyperref driver for dvipdfm]
\def\Hy@PutCatalog#1{\@pdfm@mark{docview << #1 >>}}
\ifHy@pagelabels
@@ -1413,17 +1413,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
}%
@@ -1433,7 +1433,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{%
@@ -1500,7 +1508,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}%
}%