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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Tue Dec 20 15:01:40 CET 2022


Author: michal_h21
Date: 2022-12-20 14:01:40 +0000 (Tue, 20 Dec 2022)
New Revision: 1272

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-mathml.tex
Log:
support for \dfrac and \dbinom in MathML

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-12-17 20:43:46 UTC (rev 1271)
+++ trunk/lit/ChangeLog	2022-12-20 14:01:40 UTC (rev 1272)
@@ -1,3 +1,9 @@
+2022-12-20  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-mathml.tex (mathml.4ht): use correct displayformat for
+	\dfrac and \dbinom.
+	https://tex.stackexchange.com/a/669031/2891
+
 2022-12-17  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html4.tex (html4.4ht): removed large left margin from

Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex	2022-12-17 20:43:46 UTC (rev 1271)
+++ trunk/lit/tex4ht-mathml.tex	2022-12-20 14:01:40 UTC (rev 1272)
@@ -1595,7 +1595,14 @@
  }
 >>>
 
+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>}}}
+>>>
 
 \<mathml latex\><<<
 \Configure{frac}



More information about the tex4ht-commits mailing list.