[tex4ht-commits] [SCM] tex4ht updated: r1038 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Sat Dec 25 20:26:07 CET 2021
Author: michal_h21
Date: 2021-12-25 19:26:07 +0000 (Sat, 25 Dec 2021)
New Revision: 1038
Modified:
trunk/lit/ChangeLog
trunk/lit/mktex4ht-cnf.tex
trunk/lit/tex4ht-4ht.tex
Log:
fixed support fot the xifthen package
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2021-12-20 22:36:14 UTC (rev 1037)
+++ trunk/lit/ChangeLog 2021-12-25 19:26:07 UTC (rev 1038)
@@ -1,3 +1,8 @@
+2021-12-25 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (xifthen.4ht): fixed support for the Xifthen package.
+ https://tex.stackexchange.com/a/628068/2891
+
2021-12-20 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (biblatex.4ht): added support for back links.
Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex 2021-12-20 22:36:14 UTC (rev 1037)
+++ trunk/lit/mktex4ht-cnf.tex 2021-12-25 19:26:07 UTC (rev 1038)
@@ -67,6 +67,7 @@
\AddFile{9}{srcltx}
\AddFile{9}{emulateapj}
\AddFile{7}{ifthen}
+\AddFile{7}{xifthen}
\AddFile{9}{picins}
\AddFile{9}{nomencl}
\AddFile{2}{fontmath}
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2021-12-20 22:36:14 UTC (rev 1037)
+++ trunk/lit/tex4ht-4ht.tex 2021-12-25 19:26:07 UTC (rev 1038)
@@ -13299,6 +13299,46 @@
Fixed for caseses like \`'\ifthenelse{\isodd{\pageref{abc}}}'.
+\<xifthen.4ht\><<<
+% xifthen.4ht (|version), generated from |jobname.tex
+% Copyright 2021 TeX Users Group
+|<TeX4ht license text|>
+|<fix xifthen|>
+\Hinput{xifthen}
+\endinput
+>>> \AddFile{7}{xifthen}
+
+The \`'\TE at repl' command is executed by \`'\ifthenelse',
+where \`'\begingroup' is redefined to insert TeX4ht hooks.
+We need to prevent execution of this code here, so we use
+\`'\sv:begingroup', saved version of \`'\begingroup' from
+ifthen.4ht.
+\Link[https://tex.stackexchange.com/a/628068/2891]{}{}%
+More details\EndLink.
+
+\<fix xifthen\><<<
+\def \TE at repl #1#2{%
+ \long \def \@tempc ##1#1##2{%
+ \def \@tempb{\@tempc}%
+ \sv:begingroup % Thanks MPG
+ \toks@ {##2}%
+ \edef \@tempa {\the \toks@}% <- UF v1.3
+ \expandafter \endgroup
+ \ifx \@tempa \@tempb
+ \toks@ \expandafter {\the \toks@ ##1}%
+ \expandafter \@gobble
+ \else
+ \toks@ \expandafter {\the \toks@ ##1#2}%
+ \expandafter \@tempc
+ \fi
+ ##2%
+ }%
+ \toks@ \expandafter {\expandafter}%
+ \expandafter \@tempc \the \toks@ #1\@tempc
+}
+>>>
+
+
\<non classified latex\><<<
|<early latex util|>
|<more latex math|>
More information about the tex4ht-commits
mailing list.