[latex3-commits] [git/LaTeX3-latex3-iftex] master: Fixes for TexpadTeX checks (d394469)

Duncan Steele (Valletta Ventures) duncan at vallettaventures.com
Thu May 14 18:01:54 CEST 2020


Repository : https://github.com/latex3/iftex
On branch  : master
Link       : https://github.com/latex3/iftex/commit/d394469b96c214d3ada5e3172d2d495700736110

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

commit d394469b96c214d3ada5e3172d2d495700736110
Author: Duncan Steele (Valletta Ventures) <duncan at vallettaventures.com>
Date:   Thu May 14 17:01:54 2020 +0100

    Fixes for TexpadTeX checks
    
    - Removed unnecessary tests for TexpadTeX Unicode mode
    - Updated `iftutex` to detect TexpadTeX's Unicode mode


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

d394469b96c214d3ada5e3172d2d495700736110
 iftex.sty | 12 ++----------
 iftex.tex | 20 +-------------------
 2 files changed, 3 insertions(+), 29 deletions(-)

diff --git a/iftex.sty b/iftex.sty
index 3ba7430..c306921 100644
--- a/iftex.sty
+++ b/iftex.sty
@@ -89,8 +89,6 @@
 % tutex == has \Umathchardef == XeTeX or Lua(HB)TeX currently
 \IFTEX at protected\def\RequireTUTeX{\IFTEX at Require\iftutex{LuaTeX or XeTeX}\fi}
 \IFTEX at protected\def\RequireTexpadTeX{\IFTEX at Require\iftexpadtex{TexpadTeX}\fi}
-\IFTEX at protected\def\RequireTexpadTeXUnicode{\IFTEX at Require\iftexpadtexunicode{TexpadTeXUnicode}\fi}
-\IFTEX at protected\def\RequireTexpadTeXEightBit{\IFTEX at Require\iftexpadtexeightbit{TexpadTeXEightBit}\fi}
 
 % As a matter of policy over-write any existing \if*tex macro and set
 % by the tests here.
@@ -216,21 +214,15 @@
 \begingroup\expandafter\expandafter\expandafter\endgroup
 \expandafter\ifx\csname TexpadTeXMode\endcsname\relax
   \IFTEX at let{texpadtex}{false}
-  \IFTEX at let{texpadtexunicode}{false}
-  \IFTEX at let{texpadtexeightbit}{false}
 \else
   \IFTEX at let{texpadtex}{true}
   \ifcase\TexpadTeXMode\relax
-    \IFTEX at let{texpadtexunicode}{false}
-    \IFTEX at let{texpadtexeightbit}{true}
+    % This is 8 bit mode
   \or
-    \IFTEX at let{texpadtexunicode}{true}
-    \IFTEX at let{texpadtexeightbit}{false}
+    \IFTEX at let{tutex}{true}
   \fi
 \fi
 \IFTEX at let{TexpadTeX}{texpadtex}
-\IFTEX at let{TexpadTeXUnicode}{texpadtexunicode}
-\IFTEX at let{TexpadTeXEightBit}{texpadtexeightbit}
 
 % Output mode
 % declare as if with \newif
diff --git a/iftex.tex b/iftex.tex
index 79c7f35..c1b8bc1 100644
--- a/iftex.tex
+++ b/iftex.tex
@@ -123,23 +123,7 @@ true for Lua\TeX\ and Xe\TeX, allowing constructs such as
 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). These modes can be further distinguished with
-\cs{iftexpadtexunicode} and \cs{iftexpadtexeightbit} respectively, allowing for
-constructs such as
-\begin{verbatim}
-\iftexpadtexunicode
-  \usepackage{fontspec}
-  \setmainfont{Times}
-\else
-  \usepackage{times}
-\fi
-\end{verbatim}
-\begin{description}
-\item[\cs{iftexpadtexunicode}, \cs{ifTexpadTeXUnicode}]
-True if Texpad\TeX\ is running in Unicode mode.
-\item[\cs{iftexpadtexeightbit}, \cs{ifTexpadTeXEightBit}]
-True if Texpad\TeX\ is running in 8-bit mode.
-\end{description}
+PDF\TeX). This can be determined using \cs{iftutex}.
 
 \end{description}
 
@@ -161,8 +145,6 @@ with a suitable engine, and stops with an error message if not.
 \item[\cs{RequireAlephTeX}]
 \item[\cs{RequireTUTeX}]
 \item[\cs{RequireTexpadTeX}]
-\item[\cs{RequireTexpadTeXUnicode}]
-\item[\cs{RequireTexpadTeXEightBit}]
 \end{description}
 
 





More information about the latex3-commits mailing list.