texlive[65320] Master/texmf-dist: \dfrac and \dbinom support, tex4ht

commits+karl at tug.org commits+karl at tug.org
Tue Dec 20 23:18:14 CET 2022


Revision: 65320
          http://tug.org/svn/texlive?view=revision&revision=65320
Author:   karl
Date:     2022-12-20 23:18:14 +0100 (Tue, 20 Dec 2022)
Log Message:
-----------
\dfrac and \dbinom support, tex4ht r1272

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

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	2022-12-20 20:57:33 UTC (rev 65319)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2022-12-20 22:18:14 UTC (rev 65320)
@@ -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/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex	2022-12-20 20:57:33 UTC (rev 65319)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex	2022-12-20 22:18:14 UTC (rev 65320)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-mathml.tex 1267 2022-12-15 21:43:11Z michal_h21 $$
+% $Id: tex4ht-mathml.tex 1272 2022-12-20 14:01:40Z michal_h21 $$
 % compile 3 times: latex tex4ht-mathltx
 %           or   xhlatex tex4ht-mathltx "html,3,sections+"
 %
@@ -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}

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht	2022-12-20 20:57:33 UTC (rev 65319)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht	2022-12-20 22:18:14 UTC (rev 65320)
@@ -1,4 +1,4 @@
-% mathml.4ht (2022-12-15-13:46), generated from tex4ht-mathml.tex
+% mathml.4ht (2022-12-20-13:20), generated from tex4ht-mathml.tex
 % Copyright 2009-2022 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 2022-12-15-13:46}
+\immediate\write-1{version 2022-12-20-13:20}
 
 \exit:ifnot{Preamble,% 
 accents,% 
@@ -2075,6 +2075,10 @@
                                  mrow></\a:mathml mfrac></\a:mathml mfenced>}
    \fi
  }
+\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>}}}
 \def\:tempc{\ifDisplayMath\mathop:prefix{}\fi\o:n:iint::}
 \HLet\n:iint:\:tempc
 \def\:tempc{\ifDisplayMath\mathop:prefix{}\fi\o:n:iiint::}



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