summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/graphics-def/xetex.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-06-25 21:51:33 +0000
committerKarl Berry <karl@freefriends.org>2017-06-25 21:51:33 +0000
commita32eb2dc2cb45c2d6d3713f1f17d183d9e1227a2 (patch)
treeba2e40f9366fe5c0c63e780cbd15cb1f8ff78560 /Master/texmf-dist/tex/latex/graphics-def/xetex.def
parent8c5e6770c20f20adab171742c616fea2528a3c1e (diff)
graphics-def (25jun17)
git-svn-id: svn://tug.org/texlive/trunk@44697 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.def20
1 files changed, 17 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/graphics-def/xetex.def b/Master/texmf-dist/tex/latex/graphics-def/xetex.def
index 6440f6d1944..bb2cba80d49 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/20 v5.0g Graphics/color driver for xetex]
+ [2017/06/24 v5.0h Graphics/color driver for xetex]
\def\GPT@space{ }
\def\c@lor@arg#1{%
\dimen@#1\p@
@@ -84,6 +84,9 @@
\def\define@color@named#1#2{%
\expandafter\let\csname col@#1\endcsname\@nnil}
\def\no@page@color{\special{background \string"newpath clip}}
+\@ifundefined{Gin@decode}
+ {\let\Gin@decode\@empty}
+ {}
\@ifundefined{Gin@page}
{\let\Gin@page\@empty}
{}
@@ -94,6 +97,7 @@
{\csname newif\endcsname\ifGin@interpolate}
{}
\def\Gread@pdf#1{%
+ \let\Gin@decode\@empty
\Gin@interpolatefalse
\Gread@@xetex\XeTeXpdffile
}
@@ -239,8 +243,18 @@
\ifx\Gin@scalex\@tempa\else width\GPT@space\the\Gin@req@width\GPT@space\fi
\ifx\Gin@scaley\@tempa\else height\GPT@space\the\Gin@req@height\GPT@space\fi
(#1)\GPT@space
- \ifGin@interpolate<</Interpolate\GPT@space true>>\fi}%
- \egroup}
+ \ifnum0%
+ \ifx\Gin@decode\@empty\else 1\fi
+ \ifGin@interpolate 1\fi
+ >0 %
+ <<%
+ \ifx\Gin@decode\@empty\else /Decode[\Gin@decode]\fi
+ \ifGin@interpolate /Interpolate true\fi
+ >>%
+ \fi
+ }%
+ \egroup
+}
\newif\if@trim@vport
\def\Ginclude@eps#1{%
\Gin@log{<#1>}%