[tex4ht-commits] [SCM] tex4ht updated: r1623 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Wed Jan 8 22:13:08 CET 2025
Author: michal_h21
Date: 2025-01-08 21:13:08 +0000 (Wed, 08 Jan 2025)
New Revision: 1623
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-mathml.tex
Log:
added align attribute for aligned and friends
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2025-01-08 15:24:04 UTC (rev 1622)
+++ trunk/lit/ChangeLog 2025-01-08 21:13:08 UTC (rev 1623)
@@ -1,8 +1,9 @@
2025-01-08 Michal Hoftich <michal.h21 at gmail.com>
- * tex4ht-4ht.tex (amsmath.4ht): use LaTeX optional argument parsing
- instead of \futurelet for handling of optional arguments in aligned
- and alignedat environments. Thanks to Linas Stonys.
+ * tex4ht-mathml.tex (mathml.4ht),
+ * tex4ht-4ht.tex (amsmath.4ht): fixed handling of optional arguments
+ and empty first columns in aligned, alignedat and gathered
+ environments. Thanks to Linas Stonys.
2025-01-05 Michal Hoftich <michal.h21 at gmail.com>
Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex 2025-01-08 15:24:04 UTC (rev 1622)
+++ trunk/lit/tex4ht-mathml.tex 2025-01-08 21:13:08 UTC (rev 1623)
@@ -2419,7 +2419,7 @@
\<amsmath mathml\><<<
\Configure{gathered}
- {\HCode{<\a:mathml mtable\Hnewline \mml:class="gathered">}}
+ {\HCode{<\a:mathml mtable\Hnewline \mml:class="gathered" \mtable:align:attribute>}}
{\HCode{</\a:mathml mtable>}}
{\HCode{<\a:mathml mtr>}} {\HCode{</\a:mathml mtr>}}
{\HCode{\Hnewline<\a:mathml mtd>}} {\HCode{</\a:mathml mtd>}}
@@ -4402,8 +4402,14 @@
\<configure mathml amsmath\><<<
+% thanks to Linas Stonys for this code
+\def\mtable:align:attribute{%
+ \if t\Hlcr\space\a:mathml align="axis 1"\fi
+ \if b\Hlcr\space\a:mathml align="axis -1"\fi
+ }
+
\Configure{aligned}
- {\HCode{<\a:mathml mtable\Hnewline \mml:class="aligned">}}
+ {\HCode{<\a:mathml mtable\Hnewline \mml:class="aligned" \mtable:align:attribute>}}
{\HCode{</\a:mathml mtable>}}
{\HCode{<\a:mathml mtr\Hnewline>}} {\HCode{</\a:mathml mtr>}}
{\HCode{<\a:mathml mtd
@@ -4410,7 +4416,7 @@
\a:mathml columnalign="\ifodd\HCol right\else left\fi" >}}
{\HCode{</\a:mathml mtd>}}
\Configure{alignedat}
- {\HCode{<\a:mathml mtable\Hnewline \mml:class="alignedat">}}
+ {\HCode{<\a:mathml mtable\Hnewline \mml:class="alignedat" \mtable:align:attribute>}}
{\HCode{</\a:mathml mtable>}}
{\HCode{<\a:mathml mtr\Hnewline>}} {\HCode{</\a:mathml mtr>}}
{\HCode{<\a:mathml mtd
More information about the tex4ht-commits
mailing list.