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

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


Author: michal_h21
Date: 2022-11-28 15:50:18 +0000 (Mon, 28 Nov 2022)
New Revision: 1256

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-mathjax.tex
Log:
restore math environments automatically at the beginning of tikz environments

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-11-28 15:21:55 UTC (rev 1255)
+++ trunk/lit/ChangeLog	2022-11-28 15:50:18 UTC (rev 1256)
@@ -1,4 +1,8 @@
 2022-11-28  Michal Hoftich  <michal.h21 at gmail.com>
+	
+	* tex4ht-mathjax.tex (mathjax-latex-4ht.4ht): restore math
+	environments automatically at the beginning of TikZ environments.
+	https://tex.stackexchange.com/a/666771/2891
 
 	* tex4ht-mathjax.tex (mathjax-latex-4ht.4ht): provided the
 	\RestoreMathJaxEnvironments command.

Modified: trunk/lit/tex4ht-mathjax.tex
===================================================================
--- trunk/lit/tex4ht-mathjax.tex	2022-11-28 15:21:55 UTC (rev 1255)
+++ trunk/lit/tex4ht-mathjax.tex	2022-11-28 15:50:18 UTC (rev 1256)
@@ -26,6 +26,7 @@
 \AtBeginDocument{%
 |<configurations|>
 |<mhchem configurations|>
+|<restore environments|>
 }
 \endinput
 >>>
@@ -269,4 +270,14 @@
 }{}
 >>>
 
+Restore environments redefined to produce verbatim output to their
+original meaning in the picture mode. Otherwise math cannot work
+inside TikZ etc.
+
+\<restore environments\><<<
+\@ifpackageloaded{tikz}{%
+\tikzset{every picture/.append code={\RestoreMathJaxEnvironments}} 
+}{}
+>>>
+
 \endinput



More information about the tex4ht-commits mailing list.