summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-02-23 22:58:14 +0000
committerKarl Berry <karl@freefriends.org>2023-02-23 22:58:14 +0000
commita1caaa0fd5a09328f65ae5e65c2ce067f2c68d0d (patch)
treea8766f090968c573592a3bcfaef88f062584c3da /Master/texmf-dist/source
parent420396a60f6b9ee700c579b259f304c988920f71 (diff)
tex4ht r1299 to branch
git-svn-id: svn://tug.org/texlive/branches/branch2022.final@66109 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/ChangeLog6
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/tex4ht-mathjax.tex7
2 files changed, 11 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog
index 85478b3d879..4a734b08d1b 100644
--- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog
+++ b/Master/texmf-dist/source/generic/tex4ht/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/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathjax.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathjax.tex
index bd1723c82fc..2a4c60f3627 100644
--- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathjax.tex
+++ b/Master/texmf-dist/source/generic/tex4ht/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}}
}{}
>>>