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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Sat Apr 4 21:03:06 CEST 2020


Author: michal_h21
Date: 2020-04-04 22:03:06 +0300 (Sat, 04 Apr 2020)
New Revision: 681

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-mathjax.tex
Log:
Fixed \left and \right commands in sections in the MathJax mode

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-03-16 17:42:41 UTC (rev 680)
+++ trunk/lit/ChangeLog	2020-04-04 19:03:06 UTC (rev 681)
@@ -1,3 +1,9 @@
+2020-04-04 Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-mathjax.tex (mathjax-latex-4ht.4ht): added \fixtmathjaxsec command,
+	prevented \left and \right from expansion.
+	https://puszcza.gnu.org.ua/bugs/?453
+
 2020-03-16  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-docbook.tex,

Modified: trunk/lit/tex4ht-mathjax.tex
===================================================================
--- trunk/lit/tex4ht-mathjax.tex	2020-03-16 17:42:41 UTC (rev 680)
+++ trunk/lit/tex4ht-mathjax.tex	2020-04-04 19:03:06 UTC (rev 681)
@@ -88,7 +88,12 @@
 \def\fixmathjaxtoc#1{\Configure{writetoc}{\def#1{\detokenize{#1}}}}
 >>>
 
+Some math commands cause issues when used in sections, so we will deactivate them.
 
+\<defined commands\><<<
+\def\fixmathjaxsec#1{\def#1{\detokenize{#1}}}
+>>>
+
 Require verbatim math environments.
 
 \<configurations\><<<
@@ -137,8 +142,8 @@
 Fixes for tables of contents.
 
 \<configurations\><<<
-\fixmathjaxtoc\left
-\fixmathjaxtoc\right
+\fixmathjaxsec\left
+\fixmathjaxsec\right
 \fixmathjaxtoc\int
 \fixmathjaxtoc\,
 \fixmathjaxtoc\sin



More information about the tex4ht-commits mailing list.