diff options
author | Karl Berry <karl@freefriends.org> | 2009-11-29 00:29:08 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-11-29 00:29:08 +0000 |
commit | 488d5ec6dc4b2890e252f2a885acf032fda277b9 (patch) | |
tree | c892418fd486fae06a4441e3f09bbcc7df86a7aa /Master/texmf-dist/tex/latex/hyperref/hpdftex.def | |
parent | df28f8be3e367cf694fb500cb02dfbd3780d537c (diff) |
hyperref update (28nov09)
git-svn-id: svn://tug.org/texlive/trunk@16230 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hpdftex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hpdftex.def | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def index 4a9abc1ee2a..fdfc06a0226 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/11/26 v6.79i + [2009/11/27 v6.79k Hyperref driver for pdfTeX] \let\Hy@PutCatalog\pdfcatalog \ifHy@pagelabels @@ -1613,21 +1613,28 @@ \else \expandafter\endinput \fi +\newlength\Hy@SectionHShift +\def\Hy@SectionAnchor{% + \ifx\protect\@typeset@protect + \Hy@@SectionAnchor + \fi +} +\DeclareRobustCommand*{\Hy@@SectionAnchor}{% + \leavevmode + \hbox to 0pt{% + \kern-\Hy@SectionHShift + \Hy@raisedlink{% + \hyper@anchorstart{\@currentHref}\hyper@anchorend + }% + \hss + }% +} \let\H@old@ssect\@ssect \def\@ssect#1#2#3#4#5{% \Hy@GlobalStepCount\Hy@linkcounter \xdef\@currentHref{section*.\the\Hy@linkcounter}% - \H@old@ssect{#1}{#2}{#3}{#4}{% - \leavevmode - \hbox to 0pt{% - \dimen@=#1\relax\kern-\dimen@ - \Hy@raisedlink{% - \hyper@anchorstart{\@currentHref}\hyper@anchorend - }% - \hss - }% - #5% - }% + \setlength{\Hy@SectionHShift}{#1}% + \H@old@ssect{#1}{#2}{#3}{#4}{\Hy@SectionAnchor#5}% } \let\H@old@schapter\@schapter \def\@schapter#1{% @@ -1693,17 +1700,8 @@ {% \Hy@GlobalStepCount\Hy@linkcounter \xdef\@currentHref{section*.\the\Hy@linkcounter}% - \H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{% - \leavevmode - \hbox to 0pt{% - \dimen@=#3\relax\kern-\dimen@ - \Hy@raisedlink{% - \hyper@anchorstart{\@currentHref}\hyper@anchorend - }% - \hss - }% - #8% - }% + \setlength{\Hy@SectionHShift}{#3}% + \H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{\Hy@SectionAnchor#8}% }{% \H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}% }% |