[latex3-commits] [git/LaTeX3-latex3-iftex] master: guard against invalid characters if skipping the luatex block (efae2c8)

David Carlisle d.p.carlisle at gmail.com
Sun Oct 27 17:29:10 CET 2019


Repository : https://github.com/latex3/iftex
On branch  : master
Link       : https://github.com/latex3/iftex/commit/efae2c8c2e87533d93e080aa7958a859c1b54af9

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

commit efae2c8c2e87533d93e080aa7958a859c1b54af9
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sun Oct 27 16:29:10 2019 +0000

    guard against invalid characters if skipping the luatex block


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

efae2c8c2e87533d93e080aa7958a859c1b54af9
 iftex.sty | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/iftex.sty b/iftex.sty
index caff9b5..feb5a75 100644
--- a/iftex.sty
+++ b/iftex.sty
@@ -63,16 +63,16 @@
 
 % make sure \detokenize and \protected are available in lualatex,
 % but avoid defining them after the package if not already defined.
-\ifx\directlua\@undefined\else
   {
   \catcode34 12 % "
   \catcode40 12 % (
   \catcode41 12 % )
   \catcode44 12 % ,
   \catcode46 12 % .
-  \directlua{tex.enableprimitives("IFTEX@", {"detokenize","protected"})}
+  \ifx\directlua\@undefined\else
+    \directlua{tex.enableprimitives("IFTEX@", {"detokenize","protected"})}
+  \fi
   }
-\fi
 
 % \Require... commands that stop if the wrong engine detected.
 \IFTEX at protected\def\RequireeTeX{\IFTEX at Require\ifetex{eTeX}\fi}





More information about the latex3-commits mailing list