texlive[73115] Master/texmf-dist: iftex (13dec24)
commits+karl at tug.org
commits+karl at tug.org
Fri Dec 13 23:37:59 CET 2024
Revision: 73115
https://tug.org/svn/texlive?view=revision&revision=73115
Author: karl
Date: 2024-12-13 23:37:59 +0100 (Fri, 13 Dec 2024)
Log Message:
-----------
iftex (13dec24)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/generic/iftex/README.md
trunk/Master/texmf-dist/doc/generic/iftex/iftex.pdf
trunk/Master/texmf-dist/doc/generic/iftex/iftex.tex
trunk/Master/texmf-dist/tex/generic/iftex/iftex.sty
Modified: trunk/Master/texmf-dist/doc/generic/iftex/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/generic/iftex/README.md 2024-12-13 22:37:46 UTC (rev 73114)
+++ trunk/Master/texmf-dist/doc/generic/iftex/README.md 2024-12-13 22:37:59 UTC (rev 73115)
@@ -14,7 +14,7 @@
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
Modified: trunk/Master/texmf-dist/doc/generic/iftex/iftex.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/generic/iftex/iftex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/generic/iftex/iftex.tex 2024-12-13 22:37:46 UTC (rev 73114)
+++ trunk/Master/texmf-dist/doc/generic/iftex/iftex.tex 2024-12-13 22:37:59 UTC (rev 73115)
@@ -87,14 +87,17 @@
\item[\cs{ifxetex}, \cs{ifXeTeX}]
True if Xe\TeX\ is in use.
\item[\cs{ifluatex}, \cs{ifLuaTeX}]
-True if Lua\TeX\ and extensions such as LuaHB\TeX\ are in use.
+True if Lua\TeX\ and extensions such as LuaHB\TeX\ or LuaMeta\TeX\ are in use.
\item[\cs{ifluahbtex}, \cs{ifLuaHBTeX}]
True if the \textsf{luaharftex} Lua module is available.
This will be true in \textsf{luahbtex} and may be true in
\textsf{luatex} if a binary Lua \textsf{luaharftex} module has been
compiled and is available in Lua's search path.
+\item[\cs{ifluametatex}, \cs{ifLuaMetaTeX}]
+True if LuaMeta\TeX\ is in use.
\item[\cs{ifptex}, \cs{ifpTeX}]
-True if any of the p\TeX\ variants are in use.
+True if any of the p\TeX\ variants are in use. (Note that the \textsf{ptex} command
+uses the \textsf{uptex} engine in current releases.)
\item[\cs{ifuptex}, \cs{ifupTeX}]
True if any of the up\TeX\ variants are in use. (\verb|\ifetex| could
be used in addition to distinguish \textsf{uptex} and \textsf{euptex}.)
@@ -126,6 +129,10 @@
PDF\TeX). This can be determined using \cs{iftutex}.
\item[\cs{ifhint}, \cs{ifHINT}]
True if Hi\TeX\ (HINT output format) is in use.
+\item[\cs{ifprote}, \cs{ifProte}]
+True if a Prote engine is in use. (This means it has \TeX\
+primitives, e\TeX\ primitives, and the additional primitives required
+by \LaTeX.)
\end{description}
\section{Requiring specific engines}
@@ -139,6 +146,7 @@
\item[\cs{RequireXeTeX}]
\item[\cs{RequireLuaTeX}]
\item[\cs{RequireLuaHBTeX}]
+\item[\cs{RequireLuaMetaTeX}]
\item[\cs{RequirepTeX}]
\item[\cs{RequireupTeX}]
\item[\cs{RequirepTeXng}]
@@ -147,6 +155,7 @@
\item[\cs{RequireTUTeX}]
\item[\cs{RequireTexpadTeX}]
\item[\cs{RequireHINT}]
+\item[\cs{RequireProte}]
\end{description}
Modified: trunk/Master/texmf-dist/tex/generic/iftex/iftex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/iftex/iftex.sty 2024-12-13 22:37:46 UTC (rev 73114)
+++ trunk/Master/texmf-dist/tex/generic/iftex/iftex.sty 2024-12-13 22:37:59 UTC (rev 73115)
@@ -30,7 +30,7 @@
% ProvidesPackage declaration in LaTeX
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname ProvidesPackage\endcsname\relax\else
- \ProvidesPackage{iftex}[2022/02/03 v1.0f TeX engine tests]
+ \ProvidesPackage{iftex}[2024/12/12 v1.0g TeX engine tests]
\fi
% Save @ catcode, to restore at end, not needed in LaTeX.
@@ -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}
@@ -92,6 +93,8 @@
\IFTEX at protected\def\RequireTexpadTeX{\IFTEX at Require\iftexpadtex{TexpadTeX}\fi}
% HiTeX/HINT
\IFTEX at protected\def\RequireHINT{\IFTEX at Require\ifhint{HINT}\fi}
+% Prote
+\IFTEX at protected\def\RequireProte{\IFTEX at Require\ifprote{Prote}\fi}
% As a matter of policy over-write any existing \if*tex macro and set
% by the tests here.
@@ -130,7 +133,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,8 +160,22 @@
\IFTEX at let{LuaHBTeX}{luahbtex}
-% ptex (including all variants)
+% 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) (note that the ptex command uses uptex in current releases)
+\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname kanjiskip\endcsname\relax
\IFTEX at let{ptex}{false}
\else
@@ -237,6 +254,15 @@
\fi
\IFTEX at let{HINT}{hint}
+% Prote
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname Proteversion\endcsname\relax
+ \IFTEX at let{prote}{false}
+\else
+ \IFTEX at let{prote}{true}
+\fi
+\IFTEX at let{Prote}{prote}
+
% Output mode
% declare as if with \newif
More information about the tex-live-commits
mailing list.