summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source/tex4ht-ooffice.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-12-22 03:02:07 +0000
committerNorbert Preining <norbert@preining.info>2023-12-22 03:02:07 +0000
commit49150e453072cff2c2ecaba1d1a55d8333d191d3 (patch)
treebd7e16e55839f6baf784320bb751d2892bcb88cc /support/TeX4ht/source/tex4ht-ooffice.tex
parent838a56d5436e7e7e526d6dffe2461cf050643168 (diff)
CTAN sync 202312220302
Diffstat (limited to 'support/TeX4ht/source/tex4ht-ooffice.tex')
-rw-r--r--support/TeX4ht/source/tex4ht-ooffice.tex22
1 files changed, 21 insertions, 1 deletions
diff --git a/support/TeX4ht/source/tex4ht-ooffice.tex b/support/TeX4ht/source/tex4ht-ooffice.tex
index 8db74a7ac6..5952e4534c 100644
--- a/support/TeX4ht/source/tex4ht-ooffice.tex
+++ b/support/TeX4ht/source/tex4ht-ooffice.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-ooffice.tex 1405 2023-11-03 10:47:49Z michal_h21 $
+% $Id: tex4ht-ooffice.tex 1426 2023-12-20 10:13:58Z michal_h21 $
% compile 3 times: latex tex4ht-ooffice
% htlatex tex4ht-ooffice "xhtml,4,sections+"
%
@@ -7741,6 +7741,7 @@ It seems that it is a best method how to come with solutions that work in the OD
>>>
+
\<tab-based display equation\><<<
\Configure{equation}
{\IgnorePar\ifvmode\else \HCode{<!--tex4ht:inline-->}\fi
@@ -7876,6 +7877,7 @@ It seems that it is a best method how to come with solutions that work in the OD
\<configure ooffice-mml amsmath\><<<
+|<alt mathopen for eq|>
\:CheckOption{tab-eq}\if:Option
|<tab-based ams display equation|>
\else
@@ -7886,6 +7888,22 @@ It seems that it is a best method how to come with solutions that work in the OD
>>>
+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%
+>>>
+
@@ -7896,6 +7914,7 @@ It seems that it is a best method how to come with solutions that work in the OD
|<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 @@ It seems that it is a best method how to come with solutions that work in the OD
\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|>%