diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/pdfmark.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/pdfmark.def | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/pdfmark.def b/Master/texmf-dist/tex/latex/hyperref/pdfmark.def index 486eabcdf23..5eb8c02c470 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/11/26 v6.79i + [2009/11/27 v6.79k Hyperref definitions for pdfmark specials] \begingroup \toks@\expandafter{\Hy@FirstPageHook}% @@ -1628,21 +1628,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{% @@ -1708,17 +1715,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}% }% |