summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/graphics-def/xetex.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-06-16 22:09:24 +0000
committerKarl Berry <karl@freefriends.org>2017-06-16 22:09:24 +0000
commit968bcb877a682e7f64b012f9255d622b1b78caf3 (patch)
tree073893c7703a23da7e64e64355e76c0fd2138336 /Master/texmf-dist/tex/latex/graphics-def/xetex.def
parent69064adb2c2586ea61da9dc8d907081f7a084651 (diff)
graphics-def (16jun17)
git-svn-id: svn://tug.org/texlive/trunk@44619 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/graphics-def/xetex.def')
-rw-r--r--Master/texmf-dist/tex/latex/graphics-def/xetex.def36
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