From bb35bf0864f4020fcb8ed5511762637fe5b94de5 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 20 Oct 2009 20:51:57 +0000 Subject: hyperref update (20oct09) git-svn-id: svn://tug.org/texlive/trunk@15850 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def') diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def b/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def index 66c6e09a982..1d2018c7530 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def +++ b/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def @@ -24,7 +24,7 @@ %% given in the file `manifest.txt'. %% \ProvidesFile{hdvipdfm.def} - [2009/10/09 v6.79a + [2009/10/19 v6.79b^^a0 Hyperref driver for dvipdfm] \def\Hy@PutCatalog#1{\@pdfm@mark{docview << #1 >>}} \ifHy@pagelabels @@ -526,11 +526,21 @@ \fi } \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}% } -- cgit v1.2.3