summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref/hyperref.dtx')
-rw-r--r--Master/texmf-dist/source/latex/hyperref/hyperref.dtx50
1 files changed, 23 insertions, 27 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
index 5274277e038..9b27b632bef 100644
--- a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
+++ b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
@@ -38,7 +38,7 @@
%<puenc>\ProvidesFile{puenc.def}
%<puvnenc>\ProvidesFile{puvnenc.def}
%<puarenc>\ProvidesFile{puarenc.def}
-%<!none> [2009/11/26 v6.79i
+%<!none> [2009/11/27 v6.79k
%<package> Hypertext links for LaTeX]
%<nohyperref> Dummy hyperref (SR)]
%<driver> Hyperref documentation driver file]
@@ -115,7 +115,7 @@
\end{document}
%</driver>
% \fi
-% \CheckSum{24995}
+% \CheckSum{24997}
%
% \MakeShortVerb{|}
% \StopEventually{}
@@ -7361,9 +7361,7 @@
\def\pageref{%
\@ifstar\NoHy@OrgPageRef\NoHy@OrgPageRef
}
-
-
-
+% \end{macrocode}
%
% \section{Localized nullifying of package}
% Sometimes we just don't want the wretched package interfering
@@ -16746,21 +16744,28 @@
%<*outlines|hypertex>
% \end{macrocode}
% \begin{macrocode}
+\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{%
@@ -16836,17 +16841,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}%
}%