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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Mon Nov 28 13:01:50 CET 2022


Author: michal_h21
Date: 2022-11-28 12:01:50 +0000 (Mon, 28 Nov 2022)
New Revision: 1254

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-mathjax.tex
Log:
removed \fixmathjaxsec

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-11-28 09:54:31 UTC (rev 1253)
+++ trunk/lit/ChangeLog	2022-11-28 12:01:50 UTC (rev 1254)
@@ -1,5 +1,9 @@
 2022-11-28  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-mathjax.tex (mathjax-latex-4ht.4ht): removed the
+	\fixmathjaxsec command, robust commands should be used instead.
+	https://tex.stackexchange.com/q/666705/2891
+
 	* tex4ht-4ht.tex (musicography.4ht): added support for the
 	Musicography package.
 

Modified: trunk/lit/tex4ht-mathjax.tex
===================================================================
--- trunk/lit/tex4ht-mathjax.tex	2022-11-28 09:54:31 UTC (rev 1253)
+++ trunk/lit/tex4ht-mathjax.tex	2022-11-28 12:01:50 UTC (rev 1254)
@@ -148,10 +148,13 @@
 \def\fixmathjaxtoc#1{\Configure{writetoc}{\def#1{\detokenize{#1}}}}
 >>>
 
-Some math commands cause issues when used in sections, so we will deactivate them.
+This was meant to fix some commands in sectioning commands, but it is not
+a good solution. Better is to define the problematic commands as robust.
 
-\<defined commands\><<<
+\<not defined commands\><<<
 \def\fixmathjaxsec#1{\def#1{\detokenize{#1}}}
+\fixmathjaxsec\right
+\fixmathjaxsec\left
 >>>
 
 Require verbatim math environments.
@@ -207,8 +210,6 @@
 Fixes for tables of contents.
 
 \<configurations\><<<
-\fixmathjaxsec\left
-\fixmathjaxsec\right
 \fixmathjaxtoc\int
 \fixmathjaxtoc\,
 \fixmathjaxtoc\sin



More information about the tex4ht-commits mailing list.