summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hdvips.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-11-16 01:43:15 +0000
committerKarl Berry <karl@freefriends.org>2009-11-16 01:43:15 +0000
commitfaaa36262649a67fb85d27b3e605d94da0b75fa4 (patch)
treef12854652616632c4733ad854294bb580f8f2365 /Master/texmf-dist/tex/latex/hyperref/hdvips.def
parent860f96fed59d8da7fe4422b5a8c0c1dcea518d90 (diff)
hyperref update (15nov09)
git-svn-id: svn://tug.org/texlive/trunk@16022 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hdvips.def')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hdvips.def23
1 files changed, 17 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvips.def b/Master/texmf-dist/tex/latex/hyperref/hdvips.def
index 97fd0d1e531..37e0588c752 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hdvips.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hdvips.def
@@ -24,7 +24,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hdvips.def}
- [2009/10/09 v6.79a
+ [2009/11/14 v6.79e
Hyperref driver for dvips]
\providecommand*{\XR@ext}{pdf}
\def\Hy@raisedlink{}
@@ -83,11 +83,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}%
}