summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-02-25 03:01:09 +0000
committerNorbert Preining <norbert@preining.info>2023-02-25 03:01:09 +0000
commit81a9d839224eef4c2bd9bf68410b4049c61cdb14 (patch)
tree813b5a34a2548b16dbbcd271697c7bcf29342bde /support/TeX4ht/source
parentc283f3a6970d2bc9de3501415f5701277da68693 (diff)
CTAN sync 202302250301
Diffstat (limited to 'support/TeX4ht/source')
-rw-r--r--support/TeX4ht/source/ChangeLog6
-rw-r--r--support/TeX4ht/source/tex4ht-mathjax.tex7
2 files changed, 11 insertions, 2 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index 85478b3d87..4a734b08d1 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,9 @@
+2023-02-22 Michal Hoftich <michal.h21@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@gmail.com>
* tex4ht-4ht.tex (url.4ht): remove spaces before \url command.
diff --git a/support/TeX4ht/source/tex4ht-mathjax.tex b/support/TeX4ht/source/tex4ht-mathjax.tex
index bd1723c82f..2a4c60f362 100644
--- a/support/TeX4ht/source/tex4ht-mathjax.tex
+++ b/support/TeX4ht/source/tex4ht-mathjax.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-mathjax.tex 1279 2022-12-27 20:16:12Z michal_h21 $
+% $Id: tex4ht-mathjax.tex 1299 2023-02-22 14:26:08Z michal_h21 $
% compile: latex tex4ht-mathjax
%
% Copyright 2018-2022 TeX Users Group
@@ -130,6 +130,9 @@ the \verb'\RestoreMathJaxEnvironments' command.
\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 @@ inside TikZ etc.
\<restore environments\><<<
\@ifpackageloaded{tikz}{%
-\tikzset{every picture/.append code={\RestoreMathJaxEnvironments}}
+\tikzset{every picture/.append code={\:ignoretikzmatrix\RestoreMathJaxEnvironments}}
}{}
>>>