diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref/hyperref.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/hyperref/hyperref.dtx | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx index 1cd87564c72..068d9875ac4 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/02/02 v6.78o +%<!none> [2009/02/22 v6.78p %<package> Hypertext links for LaTeX] %<nohyperref> Dummy hyperref (SR)] %<driver> Hyperref documentation driver file] @@ -114,7 +114,7 @@ \end{document} %</driver> % \fi -% \CheckSum{24487} +% \CheckSum{24498} % % \MakeShortVerb{|} % \StopEventually{} @@ -11108,10 +11108,37 @@ \close@pdflink }% } +% \end{macrocode} +% +% \subsubsection{Fix for problem with different nesting levels} +% +% \cs{AtBeginShipoutFirst} adds an additional box layer around +% the first output page. This disturbs pdf\TeX's low level +% link commands \cs{pdfstartlink} and \cs{pdfendlink}, if a +% link is broken across the first and second output page. +% +% The problem could be fixed by replacing \cs{AtBeginShipoutFirst}, +% because the box layer is not necessary for pdf\TeX -- no \cs{special}s +% need to be inserted. However it's easier to add an additional +% box level for the pages after the first one. Also \cs{AtBeginShipoutFirst} +% could be invoked independently from hyperref. +% \begin{macrocode} +\def\Hy@FixNotFirstPage{% + \gdef\Hy@FixNotFirstPage{% + \setbox\AtBeginShipoutBox=\hbox{% + \copy\AtBeginShipoutBox + }% + }% +} +\AtBeginShipout{\Hy@FixNotFirstPage} +% \end{macrocode} +% +% \begin{macrocode} %</pdftex> -%<*hypertex> % \end{macrocode} +% % \subsection{hypertex} +% % The Hyper\TeX\ specification (this is % borrowed from an article by Arthur Smith) % says that conformant viewers/translators @@ -11152,6 +11179,7 @@ % problems. % % \begin{macrocode} +%<*hypertex> \providecommand*{\XR@ext}{dvi} \def\PDF@FinishDoc{} \def\PDF@SetupDoc{% @@ -11908,7 +11936,8 @@ % \end{macrocode} % \begin{macrocode} \AtBeginShipoutFirst{% - \ifx\special@paper\@empty\else + \ifx\special@paper\@empty + \else \ifHy@setpagesize \special{papersize=\special@paper}% \fi |