[latex3-commits] [git/LaTeX3-latex3-iftex] master: undo last commit (a087470)
David Carlisle
d.p.carlisle at gmail.com
Sun Oct 27 14:44:56 CET 2019
Repository : https://github.com/latex3/iftex
On branch : master
Link : https://github.com/latex3/iftex/commit/a08747016fe831c54ecddb369abde2c3fb2aab89
>---------------------------------------------------------------
commit a08747016fe831c54ecddb369abde2c3fb2aab89
Author: David Carlisle <d.p.carlisle at gmail.com>
Date: Sun Oct 27 13:44:56 2019 +0000
undo last commit
>---------------------------------------------------------------
a08747016fe831c54ecddb369abde2c3fb2aab89
iftex.sty | 23 +++++++++--------------
1 file changed, 9 insertions(+), 14 deletions(-)
diff --git a/iftex.sty b/iftex.sty
index 767a5b5..453b088 100644
--- a/iftex.sty
+++ b/iftex.sty
@@ -54,14 +54,6 @@
}
-% make sure \detokenize and \protected are available in lualatex,
-% but avoid defining them after the package if not already defined.
-\ifx\directlua\@undefined\else
- \let\IFTEX at detokenize\detokenize
- \let\IFTEX at protected\protected
- \directlua{tex\string .enableprimitives\string (\string"\string ", {\string "detokenize\string ",\string "protected\string "}\string )}
-\fi
-
% eTeX \protected if available.
\ifx\protected\@undefined
\let\IFTEX at protected\relax
@@ -70,6 +62,13 @@
\fi
+% make sure \detokenize and \protected are available in lualatex,
+% but avoid defining them after the package if not already defined.
+\ifx\directlua\@undefined\else
+ \directlua{tex.enableprimitives("IFTEX@", {"detokenize","protected"})}
+\fi
+
+
% \Require... commands that stop if the wrong engine detected.
\IFTEX at protected\def\RequireeTeX{\IFTEX at Require\ifetex{eTeX}\fi}
\IFTEX at protected\def\RequirePDFTeX{\IFTEX at Require\ifpdftex{pdfTeX}\fi}
@@ -134,7 +133,7 @@
\IFTEX at let{luahbtex}{false}
\ifx\directlua\@undefined
\else
- \directlua{\detokenize{
+ \directlua{\IFTEX at detokenize{
if(pcall(require, 'luaharfbuzz')) then
tex.print("\\let\\ifluahbtex\\iftrue ")
end
@@ -216,7 +215,7 @@
\fi
\fi
\else
-\directlua{\detokenize{
+\directlua{\IFTEX at detokenize{
if (tex.outputmode or tex.pdfoutput or 0) > 0 then
tex.print('\\pdftrue')
end
@@ -224,8 +223,4 @@ end
\fi
% restore things
-\ifx\directlua\@undefined\else
- \let\detokenize\IFTEX at detokenize
- \let\protected\IFTEX at protected
-\fi
\catcode64 \IFTEX at atcatcode
More information about the latex3-commits
mailing list