diff options
author | Karl Berry <karl@freefriends.org> | 2023-02-23 22:55:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-02-23 22:55:55 +0000 |
commit | ea8911e32da68f3d2d64e650e495b40e9c3fde24 (patch) | |
tree | 29373bf358e9671527308a92b71efccf73de69f0 /Master/texmf-dist/source/generic | |
parent | c97860ed4a94c781c7e2cf3107dc0841bc1e5d26 (diff) |
mathjax+matrix+tikz fix, tex4ht r1299
git-svn-id: svn://tug.org/texlive/trunk@66108 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/generic')
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/ChangeLog | 6 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-mathjax.tex | 7 |
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}} }{} >>> |