[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: guard against detokenize use for plain tex (9d916fb0)

David Carlisle d.p.carlisle at gmail.com
Mon Jul 22 10:14:10 CEST 2019


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/9d916fb0790ccbede57b99b37ad1331c7a5448a3

>---------------------------------------------------------------

commit 9d916fb0790ccbede57b99b37ad1331c7a5448a3
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Mon Jul 22 09:14:10 2019 +0100

    guard against detokenize use for plain tex


>---------------------------------------------------------------

9d916fb0790ccbede57b99b37ad1331c7a5448a3
 required/graphics/graphics.dtx | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/required/graphics/graphics.dtx b/required/graphics/graphics.dtx
index af6cbf94..f2471e94 100644
--- a/required/graphics/graphics.dtx
+++ b/required/graphics/graphics.dtx
@@ -1054,13 +1054,17 @@
 %     {remove \cs{Gin at sepdefault}}
 % \changes{v1.3a}{2019/07/01} {Support UTF-8 and spaces}
 %    The quoting business for graphic files needs further sorting
-%    out. This should be handled different, right now we quote and
+%    out. This should be handled differently, right now we quote and
 %    unquote all over the place as we still use the old code base.
 %
 %    This also makes the file name displays weird!
+%
+%    Guard |\detokenize| use for plain classic tex.
 %    \begin{macrocode}
 \def\Ginclude at graphics#1{%
-  \edef\Gin at extensions{\detokenize\expandafter{\Gin at extensions}}%
+  \ifx\detokenize\@undefined\else
+    \edef\Gin at extensions{\detokenize\expandafter{\Gin at extensions}}%
+  \fi
   \begingroup
   \let\input at path\Ginput at path
 %    \end{macrocode}





More information about the latex3-commits mailing list