summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hvtex.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hvtex.def')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hvtex.def44
1 files changed, 21 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hvtex.def b/Master/texmf-dist/tex/latex/hyperref/hvtex.def
index f50723d56d4..7ac3554e9bd 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hvtex.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hvtex.def
@@ -24,7 +24,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hvtex.def}
- [2009/11/26 v6.79i
+ [2009/11/27 v6.79k
Hyperref driver for VTeX in PDF/PS mode]
\providecommand*{\XR@ext}{pdf}
\edef\Hy@VTeXversion{%
@@ -808,21 +808,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{%
@@ -888,17 +895,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}%
}%