[tex4ht-commits] [SCM] tex4ht updated: r1183 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Wed Aug 17 12:03:42 CEST 2022
Author: michal_h21
Date: 2022-08-17 10:03:42 +0000 (Wed, 17 Aug 2022)
New Revision: 1183
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-mathml.tex
Log:
fixed \mathop inside amsmath equations
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2022-08-11 19:21:27 UTC (rev 1182)
+++ trunk/lit/ChangeLog 2022-08-17 10:03:42 UTC (rev 1183)
@@ -1,3 +1,9 @@
+2022-08-17 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-mathml.tex (html-mml.4ht): test argument of \mathopen in
+ Amsmath equation.
+ https://tex.stackexchange.com/q/654236/2891
+
2022-08-11 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-html5.tex (html5.4ht): fixed support for the figure*
Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex 2022-08-11 19:21:27 UTC (rev 1182)
+++ trunk/lit/tex4ht-mathml.tex 2022-08-17 10:03:42 UTC (rev 1183)
@@ -102,6 +102,7 @@
\<amsmath html-mml pre 2000\><<<
+% pre 2000
\Configure{equation}
{\ifvmode \IgnorePar\fi \EndP
\HCode{<table class="equation"><tr><td>}%
@@ -123,6 +124,7 @@
\<amsmath html-mml jan 2000\><<<
+% jan 2000
\Configure{equation}
{\ifvmode \IgnorePar\fi \EndP
\HCode{<table class="equation"><tr><td>}%
@@ -148,11 +150,14 @@
\<amsmath html-mml july 2000\><<<
+% and here it should be
+|<alt mathopen for eq|>
\Configure{equation}
{\ifvmode \IgnorePar\fi\EndP
\HCode{<table class="equation"><tr><td>}%
|<amsmath equation july 2000|>%
|<math display in equation|>%
+ |<mathopen in equation|>
}
{\ifvmode \IgnorePar\fi\EndP
\HCode{</td><td class="eq-no">}%
@@ -176,16 +181,28 @@
+
\<amsmath equation jan 2000\><<<
|<amsmath equation july 2000|>%
>>>
+Current AMSMath uses empty mathopen at the beginning of an equation,
+which results in missing markup for subsequent numbers and characters.
+We check for empty parameter, and don't execute configurations when it is empty.
+\<alt mathopen for eq\><<<
+\def\eq:mathopen#1{\ifx\relax#1\relax\else\a:mathopen\fi\o:mathopen:{#1}}
+>>>
+\<mathopen in equation\><<<
+\let\mathopen\eq:mathopen%
+>>>
+
+
\<amsmath equation july 2000\><<<
\Configure{gather}
{\HCode{<\a:mathml mtable\Hnewline
More information about the tex4ht-commits
mailing list.