diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref/hyperref.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/hyperref/hyperref.dtx | 45 |
1 files changed, 33 insertions, 12 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx index a8b8e4023c3..1a6465f86c1 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/10/09 v6.79a +%<!none> [2009/10/19 v6.79b %<package> Hypertext links for LaTeX] %<nohyperref> Dummy hyperref (SR)] %<driver> Hyperref documentation driver file] @@ -114,7 +114,7 @@ \end{document} %</driver> % \fi -% \CheckSum{24653} +% \CheckSum{24689} % % \MakeShortVerb{|} % \StopEventually{} @@ -12061,11 +12061,21 @@ % \end{macrocode} % \begin{macrocode} \AtBeginShipoutFirst{% - \ifx\special@paper\@empty - \else - \ifHy@setpagesize - \special{papersize=\special@paper}% - \fi + \ifHy@setpagesize + \begingroup + \@ifundefined{stockwidth}{% + \ifx\special@paper\@empty + \special{papersize=\the\paperwidth,\the\paperheight}% + \else + \special{papersize=\special@paper}% + \fi + }{% + \ifdim\stockwidth=\z@ + \else + \special{papersize=\the\stockwidth,\the\stockheight}% + \fi + }% + \endgroup \fi \Hy@DisableOption{setpagesize}% } @@ -13682,11 +13692,22 @@ } def% }% } -\AfterBeginDocument{% - \ifx\special@paper\@empty\else - \ifHy@setpagesize - \special{papersize=\special@paper}% - \fi +\AtBeginShipoutFirst{% + \ifHy@setpagesize + \begingroup + \@ifundefined{stockwidth}{% + \ifx\special@paper\@empty + \special{papersize=\the\paperwidth,\the\paperheight}% + \else + \special{papersize=\special@paper}% + \fi + }{% + \ifdim\stockwidth=\z@ + \else + \special{papersize=\the\stockwidth,\the\stockheight}% + \fi + }% + \endgroup \fi \Hy@DisableOption{setpagesize}% } |