texlive[68203] Master/texmf-dist: dcases* inline math, tex4ht r1366

commits+karl at tug.org commits+karl at tug.org
Fri Sep 8 00:15:40 CEST 2023


Revision: 68203
          http://tug.org/svn/texlive?view=revision&revision=68203
Author:   karl
Date:     2023-09-08 00:15:40 +0200 (Fri, 08 Sep 2023)
Log Message:
-----------
dcases* inline math, tex4ht r1366

Revision Links:
--------------
    http://tug.org/svn/texlive?view=revision&revision=1366

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex
    trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2023-09-07 20:16:42 UTC (rev 68202)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2023-09-07 22:15:40 UTC (rev 68203)
@@ -1,3 +1,9 @@
+2023-09-07  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-mathml.tex (mathml.4ht): fixed handling of inline math
+	inside the dcases* environment.
+	https://github.com/michal-h21/make4ht/issues/135
+
 2023-09-04  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-mathml.tex (mathml.4ht): fixed spacing in \limsup,

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex	2023-09-07 20:16:42 UTC (rev 68202)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex	2023-09-07 22:15:40 UTC (rev 68203)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-mathml.tex 1365 2023-09-04 14:49:39Z michal_h21 $$
+% $Id: tex4ht-mathml.tex 1366 2023-09-07 10:32:15Z michal_h21 $$
 % compile 3 times: latex tex4ht-mathltx
 %           or   xhlatex tex4ht-mathltx "html,3,sections+"
 %
@@ -2578,6 +2578,10 @@
     \ifnum\HCol=2
        \PauseMathClass
        \HCode{<\a:mathml mtext>}%
+       % the content of this environment is displayed as text, we must switch back to the normal math processing
+       % in inline math
+       \Configure{$}{\EndPauseMathClass\HCode{</\a:mathml mtext>}}{\PauseMathClass\HCode{<\a:mathml mtext>}}{}%
+       \Configure{()}{\HCode{</\a:mathml mtext>}\EndPauseMathClass$}{$\PauseMathClass\HCode{<\a:mathml mtext>}}{}%
     \fi
    }
    {\ifnum\HCol=2 

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht	2023-09-07 20:16:42 UTC (rev 68202)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht	2023-09-07 22:15:40 UTC (rev 68203)
@@ -1,4 +1,4 @@
-% mathml.4ht (2023-09-04-12:56), generated from tex4ht-mathml.tex
+% mathml.4ht (2023-09-07-13:26), generated from tex4ht-mathml.tex
 % Copyright 2009-2023 TeX Users Group
 % Copyright 1999-2009 Eitan M. Gurari
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2023-09-04-12:56}
+\immediate\write-1{version 2023-09-07-13:26}
 
 \exit:ifnot{Preamble,% 
 accents,% 
@@ -3931,6 +3931,10 @@
     \ifnum\HCol=2
        \PauseMathClass
        \HCode{<\a:mathml mtext>}%
+       % the content of this environment is displayed as text, we must switch back to the normal math processing
+       % in inline math
+       \Configure{$}{\EndPauseMathClass\HCode{</\a:mathml mtext>}}{\PauseMathClass\HCode{<\a:mathml mtext>}}{}%
+       \Configure{()}{\HCode{</\a:mathml mtext>}\EndPauseMathClass$}{$\PauseMathClass\HCode{<\a:mathml mtext>}}{}%
     \fi
    }
    {\ifnum\HCol=2



More information about the tex-live-commits mailing list.