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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Sun Aug 13 20:48:02 CEST 2023


Author: michal_h21
Date: 2023-08-13 18:48:02 +0000 (Sun, 13 Aug 2023)
New Revision: 1356

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-mathml.tex
Log:
fixed use of \dfrac inside of \frac in mathml

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-08-13 18:09:47 UTC (rev 1355)
+++ trunk/lit/ChangeLog	2023-08-13 18:48:02 UTC (rev 1356)
@@ -1,5 +1,9 @@
 2023-08-13  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-mathml.tex (mathml.4ht): fixed handling of \tfrac and
+	\dfrac inside of \frac.
+	https://github.com/michal-h21/make4ht/issues/129
+
 	* tex4ht-mathml.tex (mathml.4ht): fixed wrong markup for primes.
 	https://github.com/michal-h21/make4ht/issues/130
 

Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex	2023-08-13 18:09:47 UTC (rev 1355)
+++ trunk/lit/tex4ht-mathml.tex	2023-08-13 18:48:02 UTC (rev 1356)
@@ -1599,11 +1599,16 @@
  }
 >>>
 
-Use correct math style for Amsmath's variants of inline fractions.
+Use correct math style for Amsmath's variants of inline fractions. We also need to add fractions markup in tfrac and dfrac to 
+support their use \Link[https://github.com/michal-h21/make4ht/issues/129]{}{}inside of fractions\EndLink.
 
 \<configure mathml amsmath\><<<
-\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\dfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="true"}{}{}{}><mfrac><mrow>}
+  \Configure{over}{}{}}{}{}{\HCode{</mrow><mrow>}
+} {}{\HCode{</mrow></mfrac></\a:mathml mstyle>}}}
+\pend:def\tfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="false"}{}{}{}><mfrac><mrow>}
+  \Configure{over}{}{}}{}{}{\HCode{</mrow><mrow>}
+}{}{\HCode{</mrow></mfrac></\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>}}}
 >>>



More information about the tex4ht-commits mailing list.