[tex4ht-commits] [SCM] tex4ht updated: r607 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Sun Sep 22 23:01:10 CEST 2019


Author: michal_h21
Date: 2019-09-23 00:01:10 +0300 (Mon, 23 Sep 2019)
New Revision: 607

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
Fixed tables handling inside math for the mathjax mode

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2019-09-20 11:20:23 UTC (rev 606)
+++ trunk/lit/ChangeLog	2019-09-22 21:01:10 UTC (rev 607)
@@ -1,3 +1,9 @@
+2019-09-22 Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4-math.4ht): fix for tables inside math in the
+	MathJax node.
+	https://tug.org/pipermail/tex4ht/2019q3/002349.html
+
 2019-09-18 Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (longtable.4ht): fix for the \\* commands inside longtable.

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2019-09-20 11:20:23 UTC (rev 606)
+++ trunk/lit/tex4ht-html4.tex	2019-09-22 21:01:10 UTC (rev 607)
@@ -8555,10 +8555,11 @@
 }}
 \Configure{MathjaxSource}{https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML}
 \Configure{@HEAD}{\HCode{ <script type="text/javascript" src="\a:MathjaxSource"></script> \Hnewline}}
-\Configure{$}{}{}{\expandafter\AltMathOne} 
-\Configure{()}{\AltlMath}{}
-\Configure{[]}{\AltlDisplay}{}
-\Configure{$$}{}{}{\AltlDisplayDollars}
+\def\:HandleMathjaxCatcodes{\edef\:RestoreMathjaxCatcodes{\catcode`\noexpand \&=\the\catcode`\&}\catcode`\&=11}
+\Configure{$}{\:HandleMathjaxCatcodes}{\:RestoreMathjaxCatcodes}{\expandafter\AltMathOne}
+% 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}
 \fi
 >>>
 



More information about the tex4ht-commits mailing list