texlive[61910] Master/texmf-dist: iftex (5feb22)

commits+karl at tug.org commits+karl at tug.org
Sun Feb 6 02:47:22 CET 2022


Revision: 61910
          http://tug.org/svn/texlive?view=revision&revision=61910
Author:   karl
Date:     2022-02-06 02:47:22 +0100 (Sun, 06 Feb 2022)
Log Message:
-----------
iftex (5feb22)

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	2022-02-06 00:49:05 UTC (rev 61909)
+++ trunk/Master/texmf-dist/doc/generic/iftex/README.md	2022-02-06 01:47:22 UTC (rev 61910)
@@ -13,7 +13,8 @@
 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

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	2022-02-06 00:49:05 UTC (rev 61909)
+++ trunk/Master/texmf-dist/doc/generic/iftex/iftex.tex	2022-02-06 01:47:22 UTC (rev 61910)
@@ -22,7 +22,7 @@
 
 \section{Introduction}
 This original \textsf{iftex} was written as part of the \textsf{bidi}
-collection (by the Persian TeX Group / Vafa Khalighi) 
+collection (by the Persian TeX Group / Vafa Khalighi)
 and provided checks for whether a document was being
 processed with PDF\TeX, or Xe\TeX, or Lua\TeX. This version recodes
 the package and incorporates similar tests from the \textsf{ifetex}
@@ -33,7 +33,7 @@
 
 For each \TeX\ variant engine supported two commands are provided:
 \begin{itemize}
-\item 
+\item
  a conditional, \verb|\iffootex| that is true if the \textsf(footex)
 engine (or a compatible extension) is being used.
 
@@ -119,7 +119,13 @@
   \usepackage{newtxtext,newtxmath}
 \fi
 \end{verbatim}
-
+\item[\cs{iftexpadtex}, \cs{ifTexpadTeX}]
+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{ifhint}, \cs{ifHINT}]
+True if Hi\TeX\ (HINT output format) is in use.
 \end{description}
 
 \section{Requiring specific engines}
@@ -139,6 +145,8 @@
 \item[\cs{RequireVTeX}]
 \item[\cs{RequireAlephTeX}]
 \item[\cs{RequireTUTeX}]
+\item[\cs{RequireTexpadTeX}]
+\item[\cs{RequireHINT}]
 \end{description}
 
 

Modified: trunk/Master/texmf-dist/tex/generic/iftex/iftex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/iftex/iftex.sty	2022-02-06 00:49:05 UTC (rev 61909)
+++ trunk/Master/texmf-dist/tex/generic/iftex/iftex.sty	2022-02-06 01:47:22 UTC (rev 61910)
@@ -30,7 +30,7 @@
 % ProvidesPackage declaration in LaTeX
 \begingroup\expandafter\expandafter\expandafter\endgroup
 \expandafter\ifx\csname ProvidesPackage\endcsname\relax\else
-  \ProvidesPackage{iftex}[2020/03/06 v1.0d 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,8 +88,11 @@
 \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/HINT
+\IFTEX at protected\def\RequireHINT{\IFTEX at Require\ifhint{HINT}\fi}
 
-
 % As a matter of policy over-write any existing \if*tex macro and set
 % by the tests here.
 
@@ -210,7 +213,32 @@
 \fi
 \IFTEX at let{TUTeX}{tutex}
 
-% Output mode 
+
+% texpadtex
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname TexpadTeXMode\endcsname\relax
+  \IFTEX at let{texpadtex}{false}
+\else
+  \IFTEX at let{texpadtex}{true}
+  \ifcase\TexpadTeXMode\relax
+    % This is 8 bit mode
+  \or
+    \IFTEX at let{tutex}{true}
+  \fi
+\fi
+\IFTEX at let{TexpadTeX}{texpadtex}
+
+% HiTeX
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname HINTversion\endcsname\relax
+  \IFTEX at let{hint}{false}
+\else
+  \IFTEX at let{hint}{true}
+\fi
+\IFTEX at let{HINT}{hint}
+
+
+% Output mode
 % declare as if with \newif
 \def\pdftrue{\let\ifpdf\iftrue}
 \def\pdffalse{\let\ifpdf\iffalse}
@@ -228,6 +256,10 @@
   \ifnum\OpMode=3 %
     \pdftrue
   \fi
+\else
+  \iftexpadtex
+    \pdftrue
+  \fi
 \fi
 \else
   \ifnum\pdfoutput>0 %



More information about the tex-live-commits mailing list.