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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Wed Dec 20 11:13:58 CET 2023


Author: michal_h21
Date: 2023-12-20 10:13:58 +0000 (Wed, 20 Dec 2023)
New Revision: 1426

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-ooffice.tex
Log:
fixed asmath equation in ooffice

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-12-17 20:54:22 UTC (rev 1425)
+++ trunk/lit/ChangeLog	2023-12-20 10:13:58 UTC (rev 1426)
@@ -1,3 +1,9 @@
+2023-12-20  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-ooffice.tex (ooffice-mml.4ht): use code from html-mml.4ht
+	to prevent spurious <mo> element in equation. It could prevent
+	displaying of equations.
+
 2023-12-17  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (enumitem.4ht): prevent errors with redefined

Modified: trunk/lit/tex4ht-ooffice.tex
===================================================================
--- trunk/lit/tex4ht-ooffice.tex	2023-12-17 20:54:22 UTC (rev 1425)
+++ trunk/lit/tex4ht-ooffice.tex	2023-12-20 10:13:58 UTC (rev 1426)
@@ -7741,6 +7741,7 @@
 >>>
 
 
+
 \<tab-based display equation\><<<
 \Configure{equation}
   {\IgnorePar\ifvmode\else \HCode{<!--tex4ht:inline-->}\fi
@@ -7876,6 +7877,7 @@
 
 
 \<configure ooffice-mml amsmath\><<<
+|<alt mathopen for eq|>
 \:CheckOption{tab-eq}\if:Option 
     |<tab-based ams display equation|>
 \else
@@ -7886,10 +7888,26 @@
 >>>
 
 
+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.
 
+This is a copy from tex4ht-mathml.tex, because here it is used only in the 
+htlm-mml.4ht output.
 
+\<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%
+>>>
+
+
+
+
+
 \<tabular-based ams display equation\><<<
 \Configure{equation}
   {\ifvmode \IgnorePar\fi\EndP
@@ -7896,6 +7914,7 @@
    |<equation start table|>% 
    |<amsmath equation july 2000|>%
    |<disp math within equation|>%
+   |<mathopen in equation|>%
   }
   {\ifvmode \IgnorePar\fi\EndP |<equation table cells separator|>}
   {\ifvmode \IgnorePar\fi\EndP |<equation end table|>%
@@ -7912,6 +7931,7 @@
    \EndP \HCode{<text:p text:style-name="equ-p-tab"><text:tab/>}%
    \Tabtrue
    |<amsmath equation july 2000|>%
+   |<mathopen in equation|>%
    \IgnorePar}
   {\Tabfalse \ifvmode \IgnorePar\fi\EndP \HCode{<text:tab/>}}
   {\HCode{</text:p>}|<try inline par|>%



More information about the tex4ht-commits mailing list.