[latex3-commits] [git/LaTeX3-latex3-iftex] luametatex: Add LuaMetaTeX test (9a3ea83)
Marcel Fabian Krüger
tex at 2krueger.de
Mon Nov 7 20:15:15 CET 2022
Repository : https://github.com/latex3/iftex
On branch : luametatex
Link : https://github.com/latex3/iftex/commit/9a3ea83bb72f33bc686a0ca57f1203974fbdafa2
>---------------------------------------------------------------
commit 9a3ea83bb72f33bc686a0ca57f1203974fbdafa2
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Mon Nov 7 20:15:15 2022 +0100
Add LuaMetaTeX test
>---------------------------------------------------------------
9a3ea83bb72f33bc686a0ca57f1203974fbdafa2
README.md | 2 +-
iftex.sty | 17 ++++++++++++++++-
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index eef6975..33fbfe6 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ The package (which works with plain TeX as well as LaTeX) has tests
for:
eTeX, PDFTeX, XeTeX, LuaTeX, LuaHBTeX, pTeX, upTeX, pTeX-ng, VTeX, Aleph,
-TexpadTeX, HiTeX.
+TexpadTeX, HiTeX, LuaMetaTeX.
In addition, an \iftutex test is true for XeTeX and LuaTeX, and
diff --git a/iftex.sty b/iftex.sty
index 02b3d13..b07d846 100644
--- a/iftex.sty
+++ b/iftex.sty
@@ -80,6 +80,7 @@
\IFTEX at protected\def\RequireXeTeX{\IFTEX at Require\ifxetex{XeTeX}\fi}
\IFTEX at protected\def\RequireLuaTeX{\IFTEX at Require\ifluatex{LuaTeX}\fi}
\IFTEX at protected\def\RequireLuaHBTeX{\IFTEX at Require\ifluahbtex{LuaHBTeX}\fi}
+\IFTEX at protected\def\RequireLuaMetaTeX{\IFTEX at Require\ifluahbtex{LuaMetaTeX}\fi}
\IFTEX at protected\def\RequirepTeX{\IFTEX at Require\ifptex{pTeX}\fi}
\IFTEX at protected\def\RequireupTeX{\IFTEX at Require\ifuptex{upTeX}\fi}
\IFTEX at protected\def\RequirepTeXng{\IFTEX at Require\ifptexng{pTeX-ng}\fi}
@@ -130,7 +131,7 @@
\IFTEX at let{XeTeX}{xetex}
-% luatex (including luahbtex)
+% luatex (including luahbtex and luametatex)
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname directlua\endcsname\relax
\IFTEX at let{luatex}{false}
@@ -157,6 +158,20 @@
\IFTEX at let{LuaHBTeX}{luahbtex}
+% luametatex
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname directlua\endcsname\relax
+ \IFTEX at let{luametatex}{false}
+\else
+ \ifnum\luatexversion<200
+ \IFTEX at let{luametatex}{false}
+ \else
+ \IFTEX at let{luametatex}{true}
+ \fi
+\fi
+\IFTEX at let{LuaMetaTeX}{luametatex}
+
+
% ptex (including all variants)
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname kanjiskip\endcsname\relax
More information about the latex3-commits
mailing list.