diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/graphics/drivers.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/graphics/drivers.dtx | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/graphics/drivers.dtx b/Master/texmf-dist/source/latex/graphics/drivers.dtx index e50aa55d6fd..31c3f1c5507 100644 --- a/Master/texmf-dist/source/latex/graphics/drivers.dtx +++ b/Master/texmf-dist/source/latex/graphics/drivers.dtx @@ -3,7 +3,7 @@ % %% drivers.dtx Copyright (C) 1994 David Carlisle Sebastian Rahtz %% Copyright (C) 1995 1996 1997 1998 1999 David Carlisle -%% Copyright (C) 2000--2015 David Carlisle, LaTeX3 Project +%% Copyright (C) 2000--2016 David Carlisle, LaTeX3 Project %% %% This file is part of the Standard LaTeX `Graphics Bundle'. %% It may be distributed under the terms of the LaTeX Project Public @@ -37,7 +37,7 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesFile{drivers.dtx} %</driver> - [2015/12/30 v3.0k Driver-dependent file (DPC,SPQR)] + [2016/06/02 v3.0l Driver-dependent file (DPC,SPQR)] % %<*driver> \documentclass{ltxdoc} @@ -548,6 +548,26 @@ \def\Gin@PS@file@header#1{\AtBeginDvi{\special{header=#1}}} % \end{macrocode} % +% \section{Page Size} +% +% \changes{v3.0l}{2016/06/02}{page size special added to patch pdftex.def} +% \begin{macrocode} +\ifGin@setpagesize + \AtBeginDocument{\AtBeginDvi{% + \begingroup + \ifx\stockwidth\@undefined\else + \paperwidth\stockwidth + \paperheight\stockheight + \fi + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \special{papersize=\the\paperwidth,\the\paperheight}% + \fi + \fi + \endgroup}} +\fi +% \end{macrocode} +% % \begin{macrocode} %</dvips> % \end{macrocode} |