[tex4ht-commits] [SCM] tex4ht updated: r1190 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Mon Aug 29 12:21:19 CEST 2022
Author: michal_h21
Date: 2022-08-29 10:21:19 +0000 (Mon, 29 Aug 2022)
New Revision: 1190
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-html4.tex
trunk/lit/tex4ht-mathjax.tex
Log:
Added support for display math in MathJax
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2022-08-25 11:20:43 UTC (rev 1189)
+++ trunk/lit/ChangeLog 2022-08-29 10:21:19 UTC (rev 1190)
@@ -1,3 +1,9 @@
+2022-08-29 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-html4.tex (html4-math.4ht),
+ * tex4ht-mathjax.tex (mathjax-latex-4ht.4ht): added support for
+ display math environments delimited by $$.
+
2022-08-25 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (latex.4ht): make \left and \right commands robust.
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2022-08-25 11:20:43 UTC (rev 1189)
+++ trunk/lit/tex4ht-html4.tex 2022-08-29 10:21:19 UTC (rev 1190)
@@ -8651,6 +8651,7 @@
\edef\:RestoreMathjaxCatcodes{\catcode`\noexpand \&=\the\catcode`\&}
\def\:HandleMathjaxCatcodes{\edef\:RestoreMathjaxCatcodes{\catcode`\noexpand \&=\the\catcode`\&}\catcode`\&=11}
\Configure{$}{\:HandleMathjaxCatcodes}{\:RestoreMathjaxCatcodes}{\expandafter\AltMathOne}
+\Configure{$$}{\:HandleMathjaxCatcodes}{\:RestoreMathjaxCatcodes}{\expandafter\AltlDisplayDollars}
% for some reason, it is necessary to specify the catcode change directly in the configuration
\Configure{()}{\:HandleMathjaxCatcodes\catcode`\&=11\AltlMath}{\:RestoreMathjaxCatcodes}
\Configure{[]}{\:HandleMathjaxCatcodes\catcode`\&=11\AltlDisplay}{\:RestoreMathjaxCatcodes}
Modified: trunk/lit/tex4ht-mathjax.tex
===================================================================
--- trunk/lit/tex4ht-mathjax.tex 2022-08-25 11:20:43 UTC (rev 1189)
+++ trunk/lit/tex4ht-mathjax.tex 2022-08-29 10:21:19 UTC (rev 1190)
@@ -87,7 +87,7 @@
\long\def\AltMathOne#1${\alteqtoks{\(#1\)}$}
% this seems a bit hacky -- we need to skip some code inserted at the
% beginning of each display math
-\long\def\AltlDisplayDollars\fi#1$${\alteqtoks{\[#1\]}$$}
+\long\def\AltlDisplayDollars#1$${\alteqtoks{\[#1\]}$$}
\newcommand\VerbMathToks[2]{%
\alteqtoks{\begin{#2}
More information about the tex4ht-commits
mailing list.