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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Wed Feb 22 15:26:08 CET 2023


Author: michal_h21
Date: 2023-02-22 14:26:08 +0000 (Wed, 22 Feb 2023)
New Revision: 1299

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-mathjax.tex
Log:
don't restore the matrix environment in TikZ pictures

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-02-19 13:05:01 UTC (rev 1298)
+++ trunk/lit/ChangeLog	2023-02-22 14:26:08 UTC (rev 1299)
@@ -1,3 +1,9 @@
+2023-02-22  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-mathjax.tex (mathjax-latex-4ht.4ht): don't restore the
+	matrix environment in TikZ pictures.
+	https://github.com/michal-h21/make4ht/issues/108
+
 2023-02-19  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (url.4ht): remove spaces before \url command.

Modified: trunk/lit/tex4ht-mathjax.tex
===================================================================
--- trunk/lit/tex4ht-mathjax.tex	2023-02-19 13:05:01 UTC (rev 1298)
+++ trunk/lit/tex4ht-mathjax.tex	2023-02-22 14:26:08 UTC (rev 1299)
@@ -130,6 +130,9 @@
   \expandafter\let\csname mathjax-end#1\expandafter\endcsname\csname end#1\endcsname%
 }
 
+% we must not reintroduce the matrix environmeint in TikZ, because it interferes with the \matrix command
+\newcommand\:ignoretikzmatrix{\seq_remove_all:Nn\:savedmathjaxenvs{matrix}}
+
 \newcommand\RestoreMathJaxEnvironment[1]{%
   \expandafter\let\csname #1\expandafter\endcsname\csname mathjax-#1\endcsname%
   \expandafter\let\csname end#1\expandafter\endcsname\csname mathjax-end#1\endcsname%
@@ -278,7 +281,7 @@
 
 \<restore environments\><<<
 \@ifpackageloaded{tikz}{%
-\tikzset{every picture/.append code={\RestoreMathJaxEnvironments}} 
+\tikzset{every picture/.append code={\:ignoretikzmatrix\RestoreMathJaxEnvironments}} 
 }{}
 >>>
 



More information about the tex4ht-commits mailing list.