texlive[66108] Master/texmf-dist: mathjax+matrix+tikz fix, tex4ht
commits+karl at tug.org
commits+karl at tug.org
Thu Feb 23 23:55:55 CET 2023
Revision: 66108
http://tug.org/svn/texlive?view=revision&revision=66108
Author: karl
Date: 2023-02-23 23:55:55 +0100 (Thu, 23 Feb 2023)
Log Message:
-----------
mathjax+matrix+tikz fix, tex4ht r1299
Revision Links:
--------------
http://tug.org/svn/texlive?view=revision&revision=1299
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathjax.tex
trunk/Master/texmf-dist/tex/generic/tex4ht/mathjax-latex-4ht.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-02-23 22:51:40 UTC (rev 66107)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-02-23 22:55:55 UTC (rev 66108)
@@ -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/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathjax.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathjax.tex 2023-02-23 22:51:40 UTC (rev 66107)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathjax.tex 2023-02-23 22:55:55 UTC (rev 66108)
@@ -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 @@
\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}}
}{}
>>>
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/mathjax-latex-4ht.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/mathjax-latex-4ht.4ht 2023-02-23 22:51:40 UTC (rev 66107)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/mathjax-latex-4ht.4ht 2023-02-23 22:55:55 UTC (rev 66108)
@@ -1,4 +1,4 @@
-% mathjax-latex-4ht.4ht (2022-12-27-13:30), generated from tex4ht-mathjax.tex
+% mathjax-latex-4ht.4ht (2023-02-23-09:56), generated from tex4ht-mathjax.tex
% Copyright 2018-2022 TeX Users Group
%
% This work may be distributed and/or modified under the
@@ -16,7 +16,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2022-12-27-13:30}
+\immediate\write-1{version 2023-02-23-09:56}
\ExplSyntaxOn
@@ -62,6 +62,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%
@@ -158,7 +161,7 @@
}{}
\@ifpackageloaded{tikz}{%
-\tikzset{every picture/.append code={\RestoreMathJaxEnvironments}}
+\tikzset{every picture/.append code={\:ignoretikzmatrix\RestoreMathJaxEnvironments}}
}{}
}
@@ -213,6 +216,8 @@
+
+
More information about the tex-live-commits
mailing list.