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.def21
1 files changed, 18 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/graphics-def/luatex.def b/Master/texmf-dist/tex/latex/graphics-def/luatex.def
index e063fefd082..f0072d0a18b 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/06/24 v1.0f Graphics/color driver for luatex]
+ [2017/11/22 v1.0g Graphics/color driver for luatex]
\def\GPT@space{ }
\def\c@lor@arg#1{%
\dimen@#1\p@
@@ -126,7 +126,17 @@
\global\GPT@pagecolorfalse
}
\def\Gread@pdftex#1{%
- \IfFileExists{#1}
+% Use low level test here not \IfFileExists to match \Gread@pdftex in
+% pdftex.def and \Gread@eps test in graphics.
+% (IfFileExists might be modified by packages and
+% #1 has already been "processed" by \input@path.)
+ \openin\@inputcheck"#1" %
+ \ifeof\@inputcheck
+ \closein\@inputcheck
+ \expandafter\@secondoftwo
+ \else
+ \expandafter\@firstoftwo
+ \fi
{\Gread@@pdftex{#1}}%
{%
\def\Gin@llx{0}%
@@ -482,7 +492,7 @@
\fi
\def\Gin@extensions{%
.pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,%
- .PDF,.PNG,.JPG,.JPEG,.JBIG2,.JB2
+ .PDF,.PNG,.JPG,.JPEG,.JBIG2,.JB2%
}
\@namedef{Gin@rule@.jpg}#1{{jpg}{.jpg}{#1}}
\@namedef{Gin@rule@.jpeg}#1{{jpg}{.jpeg}{#1}}
@@ -504,7 +514,12 @@
\catcode`\noexpand\>\the\catcode`\>\relax
}%
\@makeother\<\@makeother\<%
+ % supp-pdf.mkii tests against \undefined:
+ % just in case someone has defined it ...
+ \let\GPT@orig@undefined\undefined
+ \let\undefinded\@undefined
\InputIfFileExists{supp-pdf.mkii}{}{}%
+ \let\undefined\GPT@orig@undefined
\@tempa
}{%
% supp-pdf is probably already loaded.