diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/graphics-def/xetex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/graphics-def/xetex.def | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/latex/graphics-def/xetex.def b/Master/texmf-dist/tex/latex/graphics-def/xetex.def index 3db4fb07f67..33dded2ddac 100644 --- a/Master/texmf-dist/tex/latex/graphics-def/xetex.def +++ b/Master/texmf-dist/tex/latex/graphics-def/xetex.def @@ -16,7 +16,7 @@ %% https://github.com/latex3/graphics-def/issues %% \ProvidesFile{xetex.def} - [2017/06/14 v5.0c Graphics/color driver for xetex] + [2017/06/14 v5.0d Graphics/color driver for xetex] \def\c@lor@arg#1{% \dimen@#1\p@ \ifdim\dimen@<\z@\dimen@\maxdimen\fi @@ -387,13 +387,6 @@ \@namedef{Gin@rule@.eps.gz}#1{{eps}{.eps.xbb}{`gunzip -c #1}} % \@namedef{Gin@rule@*}#1{{eps}{\Gin@ext}{#1}} - - -% v4.10 -% Support new (no)setpagesize option of graphics and color. -% v4.11 -% Use \special{pdf:pagesize ...} instead of \special{papersize=...} -% to support \mag (xetex only) \@ifundefined{ifGin@setpagesize} {\expandafter\let\csname ifGin@setpagesize\expandafter\endcsname \csname iftrue\endcsname} @@ -404,19 +397,24 @@ % If a package has changed \mag, assume it knows what it is doing % and leave page size alone \ifnum\mag=\@m -\AtBeginDvi{% -\begingroup - \@ifundefined{stockwidth}{} - {% - \paperwidth\stockwidth - \paperheight\stockheight - }% -\ifdim\paperwidth>\z@ -\ifdim\paperheight>\z@ -\special{pdf:pagesize width \the\paperwidth\space height \the\paperheight}% +\@ifundefined{stockwidth}{% +\@ifundefined{paperwidth}{% +}{% +\ifdim\paperwidth>0pt\relax +\ifdim\paperheight>0pt\relax +\pdfpagewidth=\paperwidth +\pdfpageheight=\paperheight +\fi +\fi +}% +}{% +\ifdim\stockwidth>0pt\relax +\ifdim\stockheight>0pt\relax +\pdfpagewidth=\stockwidth +\pdfpageheight=\stockheight \fi \fi -\endgroup}% +}% \fi } \fi |