texlive[45904] Master/texmf-dist: graphics-def (25nov17)

commits+karl at tug.org commits+karl at tug.org
Sat Nov 25 21:58:34 CET 2017


Revision: 45904
          http://tug.org/svn/texlive?view=revision&revision=45904
Author:   karl
Date:     2017-11-25 21:58:34 +0100 (Sat, 25 Nov 2017)
Log Message:
-----------
graphics-def (25nov17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/graphics-def/README.md
    trunk/Master/texmf-dist/tex/latex/graphics-def/luatex.def
    trunk/Master/texmf-dist/tex/latex/graphics-def/pdftex.def

Modified: trunk/Master/texmf-dist/doc/latex/graphics-def/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/graphics-def/README.md	2017-11-25 20:58:14 UTC (rev 45903)
+++ trunk/Master/texmf-dist/doc/latex/graphics-def/README.md	2017-11-25 20:58:34 UTC (rev 45904)
@@ -1,7 +1,7 @@
 LaTeX support for color and graphics
 ====================================
 
-Release 2017-06-25
+Release 2017-11-22
 
 This bundle contains the 'engine-dependent' part of support for
 color and graphics in LaTeX2e (the code here will also function

Modified: trunk/Master/texmf-dist/tex/latex/graphics-def/luatex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/graphics-def/luatex.def	2017-11-25 20:58:14 UTC (rev 45903)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/luatex.def	2017-11-25 20:58:34 UTC (rev 45904)
@@ -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 at space{ }
 \def\c at lor@arg#1{%
   \dimen@#1\p@
@@ -126,7 +126,17 @@
   \global\GPT at pagecolorfalse
 }
 \def\Gread at pdftex#1{%
-  \IfFileExists{#1}
+% Use low level test here not \IfFileExists to match \Gread at pdftex in
+% pdftex.def  and \Gread at eps test in graphics.
+% (IfFileExists might be modified by packages and
+% #1 has already been "processed" by \input at path.)
+  \openin\@inputcheck"#1" %
+  \ifeof\@inputcheck
+   \closein\@inputcheck
+   \expandafter\@secondoftwo
+  \else
+   \expandafter\@firstoftwo
+  \fi
     {\Gread@@pdftex{#1}}%
     {%
       \def\Gin at llx{0}%
@@ -482,7 +492,7 @@
 \fi
 \def\Gin at extensions{%
   .pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,%
-  .PDF,.PNG,.JPG,.JPEG,.JBIG2,.JB2
+  .PDF,.PNG,.JPG,.JPEG,.JBIG2,.JB2%
 }
 \@namedef{Gin at rule@.jpg}#1{{jpg}{.jpg}{#1}}
 \@namedef{Gin at 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 at orig@undefined\undefined
+    \let\undefinded\@undefined
     \InputIfFileExists{supp-pdf.mkii}{}{}%
+    \let\undefined\GPT at orig@undefined
     \@tempa
   }{%
     % supp-pdf is probably already loaded.

Modified: trunk/Master/texmf-dist/tex/latex/graphics-def/pdftex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/graphics-def/pdftex.def	2017-11-25 20:58:14 UTC (rev 45903)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/pdftex.def	2017-11-25 20:58:34 UTC (rev 45904)
@@ -524,7 +524,12 @@
       \catcode`\noexpand\>\the\catcode`\>\relax
       }%
     \@makeother\<\@makeother\<%
+    % supp-pdf.mkii tests against \undefined:
+    % just in case someone has defined it ...
+    \let\GPT at orig@undefined\undefined
+    \let\undefinded\@undefined
     \InputIfFileExists{supp-pdf.mkii}{}{}%
+    \let\undefined\GPT at orig@undefined
     \@tempa
   }{%
     % supp-pdf is probably already loaded.



More information about the tex-live-commits mailing list