[tex4ht-commits] [SCM] tex4ht updated: r1273 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Wed Dec 21 18:00:19 CET 2022


Author: michal_h21
Date: 2022-12-21 17:00:19 +0000 (Wed, 21 Dec 2022)
New Revision: 1273

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-mathml.tex
Log:
use mstyle instead of mrow

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-12-20 14:01:40 UTC (rev 1272)
+++ trunk/lit/ChangeLog	2022-12-21 17:00:19 UTC (rev 1273)
@@ -1,3 +1,9 @@
+2022-12-21  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-mathml.tex (mathml.4ht): use <mstyle> instead of <mrow> for
+	\dfrac and \dbinom, because MathJax had issues with <mrow>
+	https://tex.stackexchange.com/a/669031/2891
+	
 2022-12-20  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-mathml.tex (mathml.4ht): use correct displayformat for

Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex	2022-12-20 14:01:40 UTC (rev 1272)
+++ trunk/lit/tex4ht-mathml.tex	2022-12-21 17:00:19 UTC (rev 1273)
@@ -1598,10 +1598,10 @@
 Use correct math style for Amsmath's variants of inline fractions.
 
 \<configure mathml amsmath\><<<
-\pend:def\dfrac{\Configure{genfrac}{\HCode{<\a:mathml mrow \mathchoice{\a:mathml displaystyle="true"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mrow>}}}
-\pend:def\tfrac{\Configure{genfrac}{\HCode{<\a:mathml mrow \mathchoice{\a:mathml displaystyle="false"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mrow>}}}
-\pend:def\dbinom{\Configure{genfrac}{\HCode{<\a:mathml mrow \mathchoice{\a:mathml displaystyle="true"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mrow>}}}
-\pend:def\tbinom{\Configure{genfrac}{\HCode{<\a:mathml mrow \mathchoice{\a:mathml displaystyle="false"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mrow>}}}
+\pend:def\dfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="true"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
+\pend:def\tfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="false"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
+\pend:def\dbinom{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="true"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
+\pend:def\tbinom{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="false"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
 >>>
 
 \<mathml latex\><<<



More information about the tex4ht-commits mailing list.