[tex4ht-commits] [SCM] tex4ht updated: r1621 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Wed Jan 8 12:21:23 CET 2025
Author: michal_h21
Date: 2025-01-08 11:21:23 +0000 (Wed, 08 Jan 2025)
New Revision: 1621
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
fixed optional argument handling for aligned and alignedat environments
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2025-01-05 21:36:18 UTC (rev 1620)
+++ trunk/lit/ChangeLog 2025-01-08 11:21:23 UTC (rev 1621)
@@ -1,3 +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.
+
2025-01-05 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-mathml.tex (mathml.4ht): don't configure tilde accents in
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2025-01-05 21:36:18 UTC (rev 1620)
+++ trunk/lit/tex4ht-4ht.tex 2025-01-08 11:21:23 UTC (rev 1621)
@@ -21918,9 +21918,8 @@
\HLet\endaligned|=\:tempc
\def\:temp{%
\let\@testopt\alignsafe at testopt
- \futurelet\:temp\aligned:a}
-\def\aligned:a{\ifx [\:temp \expandafter\aligned:b
- \else \def\:temp{\aligned:b[c]}\expandafter\:temp \fi}
+ \aligned:a}
+ \providecommand\aligned:a[1][c]{\aligned:b[#1]}
\def\aligned:b[#1]{%
\al:gned{aligned}{#1}\m at ne}
\HLet\aligned|=\:temp
@@ -21929,10 +21928,9 @@
>>>
\<equations of amsmath.sty\><<<
-\def\:temp{\futurelet\:temp\alignedat:a}
-\def\alignedat:a{\ifx [\:temp \expandafter\alignedat:b
- \else \def\:temp{\alignedat:b[c]}\expandafter\:temp \fi}
-\def\alignedat:b[#1]{%
+\def\:temp{\alignedat:a}
+\providecommand\alignedat:a[1][c]{\alignedat:b[#1]}
+\def\alignedat:b[#1]#2{%
\let\@testopt\alignsafe at testopt
\al:gned{alignedat}{#1}\m at ne}
\HLet\alignedat|=\:temp
More information about the tex4ht-commits
mailing list.