iftex: testing the Prote engine

Thierry LARONDE <[email protected]> Thu, 12 Dec 2024 13:57:24 +0100
Newsgroups gmane.comp.tex.latex.latex3
Message-ID <[email protected]>
--ayIINupVz5Z80fEm
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline

iftex is currently testing all the engines, but not Prote (while HiTeX
(HINT) is using Prote...)

The tests need to be available since, for example beamer / pgf, are
testing the engines for the shadows (and the defaults used does not
work correctly).

Here are two diffs against iftex.sty and iftex.tex providing the tests
and the basic explanations.

TIA,
-- 
        Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
                     http://www.kergis.com/
                    http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C

--ayIINupVz5Z80fEm
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="iftex.sty.diff"

--- /usr/pkg/share/kertex/latex/pkg-misc/iftex.sty	2022-02-04 18:51:48.000000000 +0100
+++ iftex.sty	2024-12-12 13:40:12.602625503 +0100
@@ -93,6 +93,9 @@
 % HiTeX/HINT
 \IFTEX@protected\def\RequireHINT{\IFTEX@Require\ifhint{HINT}\fi}
 
+% Prote
+\IFTEX@protected\def\RequireProte{\IFTEX@Require\ifprote{Prote}\fi}
+
 % As a matter of policy over-write any existing \if*tex macro and set
 % by the tests here.
 
@@ -237,6 +240,14 @@
 \fi
 \IFTEX@let{HINT}{hint}
 
+% Prote
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname Proteversion\endcsname\relax
+  \IFTEX@let{prote}{false}
+\else
+  \IFTEX@let{prote}{true}
+\fi
+\IFTEX@let{Prote}{prote}
 
 % Output mode
 % declare as if with \newif

--ayIINupVz5Z80fEm
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="iftex.tex.diff"

--- /usr/pkg/share/kertex/latex/pkg-misc/iftex.tex	2022-02-04 18:51:48.000000000 +0100
+++ iftex.tex	2024-12-12 13:46:14.767079872 +0100
@@ -126,6 +126,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}
@@ -147,6 +151,7 @@
 \item[\cs{RequireTUTeX}]
 \item[\cs{RequireTexpadTeX}]
 \item[\cs{RequireHINT}]
+\item[\cs{RequireProte}]
 \end{description}
 
 

--ayIINupVz5Z80fEm--