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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Tue Oct 4 17:40:58 CEST 2022


Author: michal_h21
Date: 2022-10-04 15:40:58 +0000 (Tue, 04 Oct 2022)
New Revision: 1208

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-mathml.tex
Log:
use displaystyle attribute for equation like environments

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-10-04 14:17:12 UTC (rev 1207)
+++ trunk/lit/ChangeLog	2022-10-04 15:40:58 UTC (rev 1208)
@@ -1,5 +1,10 @@
 2022-10-04  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-mathml.tex (mathml.4ht): use displaystyle attribute in
+	equation like environments to get correct size of fractions and
+	other elements.
+	https://tex.stackexchange.com/a/660509/2891
+
 	* tex4ht-4ht.tex (beamer.4ht): removed nonsensical SVG elements from
 	the columns environment.
 

Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex	2022-10-04 14:17:12 UTC (rev 1207)
+++ trunk/lit/tex4ht-mathml.tex	2022-10-04 15:40:58 UTC (rev 1208)
@@ -2115,7 +2115,7 @@
        \DisplayMathtrue
     \fi
     \HCode{<\a:mathml mtable\Hnewline
-                \a:mathml columnalign="left" \mml:class="#2">}}
+       \a:mathml displaystyle="true" \a:mathml columnalign="left" \mml:class="#2">}}
    {\HCode{</\a:mathml mtable>}\end:mathalign }
    {\HCode{<\a:mathml mtr>}}    {\HCode{</\a:mathml mtr>}}
    {\HCode{<\a:mathml mtd\Hnewline
@@ -2630,7 +2630,8 @@
    {\ifvmode \IgnorePar \fi \EndP \ShowPar \par}
    {}{}
 \Configure{eqnarray}
-   {\HCode{<\a:mathml mtable\Hnewline \mml:class="eqnarray\ifx 
+   {\HCode{<\a:mathml mtable\Hnewline \a:mathml displaystyle="true" 
+       \mml:class="eqnarray\ifx 
        \@seqncr\@eqncr\else-star\fi"
        \a:mathml columnalign="right center left" >}}%
    {\HCode{</\a:mathml mtable>}}



More information about the tex4ht-commits mailing list.