[latex3-commits] [git/LaTeX3-latex3-iftex] main: HiTeX tests (3da8264)

David Carlisle d.p.carlisle at gmail.com
Thu Feb 3 12:10:06 CET 2022


Repository : https://github.com/latex3/iftex
On branch  : main
Link       : https://github.com/latex3/iftex/commit/3da8264f7982dffc404a0ef6a4be09581a77826f

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

commit 3da8264f7982dffc404a0ef6a4be09581a77826f
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Thu Feb 3 11:10:06 2022 +0000

    HiTeX tests


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

3da8264f7982dffc404a0ef6a4be09581a77826f
 README.md |  3 ++-
 iftex.sty | 17 +++++++++++++++--
 iftex.tex |  3 ++-
 3 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index ec8f5b7..eef6975 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,8 @@ For each supported engine, tests are provided of the form
 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.
+eTeX, PDFTeX, XeTeX, LuaTeX, LuaHBTeX, pTeX, upTeX, pTeX-ng, VTeX, Aleph,
+TexpadTeX, HiTeX.
 
 
 In addition, an \iftutex test is true for XeTeX and LuaTeX, and
diff --git a/iftex.sty b/iftex.sty
index b456d87..f5f1ec5 100644
--- a/iftex.sty
+++ b/iftex.sty
@@ -30,7 +30,7 @@
 % ProvidesPackage declaration in LaTeX
 \begingroup\expandafter\expandafter\expandafter\endgroup
 \expandafter\ifx\csname ProvidesPackage\endcsname\relax\else
-  \ProvidesPackage{iftex}[2020/05/23 v1.0e TeX engine tests]
+  \ProvidesPackage{iftex}[2022/02/03 v1.0f TeX engine tests]
 \fi
 
 % Save @ catcode, to restore at end, not needed in LaTeX.
@@ -88,7 +88,10 @@
 \IFTEX at protected\def\RequireAlephTeX{\IFTEX at Require\ifalephtex{Aleph}\fi}
 % tutex == has \Umathchardef == XeTeX or Lua(HB)TeX currently
 \IFTEX at protected\def\RequireTUTeX{\IFTEX at Require\iftutex{LuaTeX or XeTeX}\fi}
+% TeXpad TeX
 \IFTEX at protected\def\RequireTexpadTeX{\IFTEX at Require\iftexpadtex{TexpadTeX}\fi}
+% HiTeX
+\IFTEX at protected\def\RequireHiTeX{\IFTEX at Require\ifhitex{HiTeX}\fi}
 
 % As a matter of policy over-write any existing \if*tex macro and set
 % by the tests here.
@@ -208,6 +211,8 @@
 \else
   \IFTEX at let{tutex}{true}
 \fi
+\IFTEX at let{TUTeX}{tutex}
+
 
 % texpadtex
 \begingroup\expandafter\expandafter\expandafter\endgroup
@@ -222,7 +227,15 @@
   \fi
 \fi
 \IFTEX at let{TexpadTeX}{texpadtex}
-\IFTEX at let{TUTeX}{tutex}
+
+% HiTeX
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname HINTversion\endcsname\relax
+  \IFTEX at let{hitex}{false}
+\else
+  \IFTEX at let{hitex}{true}
+\fi
+\IFTEX at let{HiTeX}{hitex}
 
 
 % Output mode
diff --git a/iftex.tex b/iftex.tex
index c1b8bc1..605c6a5 100644
--- a/iftex.tex
+++ b/iftex.tex
@@ -124,7 +124,7 @@ True if Texpad\TeX\ is in use. Please note that Texpad\TeX\ can run in two
 modes, one which uses Unicode and native fonts internally (similar to
 Xe\TeX\ and Lua\TeX), and one which uses 8-bit codepages internally (similar to
 PDF\TeX). This can be determined using \cs{iftutex}.
-
+\item[\cs{ifhitex}, \cs{ifHiTeX}]
 \end{description}
 
 \section{Requiring specific engines}
@@ -145,6 +145,7 @@ with a suitable engine, and stops with an error message if not.
 \item[\cs{RequireAlephTeX}]
 \item[\cs{RequireTUTeX}]
 \item[\cs{RequireTexpadTeX}]
+\item[\cs{RequireHiTeX}]
 \end{description}
 
 





More information about the latex3-commits mailing list.