diff options
author | Karl Berry <karl@freefriends.org> | 2023-12-20 21:47:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-12-20 21:47:48 +0000 |
commit | c06672dfa6bd993694fe59d7142d71231071ff39 (patch) | |
tree | 84958de506aeb8b2047278d24176eb641200e9b9 /Master/texmf-dist/source/generic | |
parent | 684fb7084b94ba164f39c6d4f431bcd82c9e30ed (diff) |
avoid spurious <mo> in ooffice, tex4ht r1426
git-svn-id: svn://tug.org/texlive/trunk@69177 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/generic')
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/ChangeLog | 6 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex | 22 |
2 files changed, 27 insertions, 1 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index fb58c85cb62..4e725c9ef92 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,9 @@ +2023-12-20 Michal Hoftich <michal.h21@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@gmail.com> * tex4ht-4ht.tex (enumitem.4ht): prevent errors with redefined diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex index 8db74a7ac6e..5952e4534cf 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex +++ b/Master/texmf-dist/source/generic/tex4ht/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|>% |