summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/graphics-def/luatex.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/graphics-def/luatex.def')
-rw-r--r--Master/texmf-dist/tex/latex/graphics-def/luatex.def14
1 files changed, 8 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/graphics-def/luatex.def b/Master/texmf-dist/tex/latex/graphics-def/luatex.def
index f0072d0a18b..4ef9c6b4ab6 100644
--- a/Master/texmf-dist/tex/latex/graphics-def/luatex.def
+++ b/Master/texmf-dist/tex/latex/graphics-def/luatex.def
@@ -18,7 +18,7 @@
%% https://github.com/latex3/graphics-def/issues
%%
\ProvidesFile{luatex.def}
- [2017/11/22 v1.0g Graphics/color driver for luatex]
+ [2017/12/07 v1.0i Graphics/color driver for luatex]
\def\GPT@space{ }
\def\c@lor@arg#1{%
\dimen@#1\p@
@@ -95,7 +95,7 @@
}%
\gdef\GPT@@shipout{%
\ifvoid\GPT@outputbox\relax
- \PackageInfo{pdftex.def}{Ignoring void output box}%
+ \PackageInfo{luatex.def}{Ignoring void output box}%
\else
\setbox\GPT@outputbox=\vbox{%
\GPT@pageliteral
@@ -164,6 +164,7 @@
\@ifundefined{Gin@pagebox}
{\def\Gin@pagebox{cropbox}}
{}
+\def\GPT@cropbox{cropbox}
\@ifundefined{Gin@interpolate}
{\csname newif\endcsname\ifGin@interpolate}
{}
@@ -213,7 +214,8 @@
<#1, %
id=\the\lastsavedimageresourceindex, %
\ifx\Gin@page\@empty\else page=\Gin@page , \fi
- \ifx\Gin@pagebox\@empty\else pagebox=\Gin@pagebox , \fi
+ \ifx\Gin@pagebox\@empty\else\ifx\Gin@pagebox\GPT@cropbox\else
+ pagebox=\Gin@pagebox , \fi\fi
\ifx\Gin@decode\@empty\else decode=[\Gin@decode], \fi
\ifGin@interpolate interpolate=true, \fi
\the\wd\@tempboxa\GPT@space x \the\ht\@tempboxa
@@ -254,10 +256,10 @@
}%
\PackageInfo{luatex.def}{%
#1 \ifx\Gin@page\@empty\else, page\Gin@page\fi
- \GPT@space used\ifx\on@line\@undefined\else\on@line\fi.}%
- \PackageInfo{luatex.def}{%
+ \GPT@space used\on@line.\MessageBreak
Requested size: %
\the\Gin@req@width\GPT@space x \the\Gin@req@height
+ \ifx\documentclass\@undefined\else\expandafter\@gobble\fi
}%
\Ginclude@@pdftex{\@nameuse{#1 image\Gin@attr@hash}}%
}
@@ -517,7 +519,7 @@
% supp-pdf.mkii tests against \undefined:
% just in case someone has defined it ...
\let\GPT@orig@undefined\undefined
- \let\undefinded\@undefined
+ \let\undefined\@undefined
\InputIfFileExists{supp-pdf.mkii}{}{}%
\let\undefined\GPT@orig@undefined
\@tempa