diff options
Diffstat (limited to 'Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex')
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex index 29e6292bdf1..3eb94430764 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-mathml.tex 1135 2022-05-19 15:28:47Z michal_h21 $$ +% $Id: tex4ht-mathml.tex 1163 2022-06-30 15:37:22Z michal_h21 $$ % compile 3 times: latex tex4ht-mathltx % or xhlatex tex4ht-mathltx "html,3,sections+" % @@ -3468,6 +3468,20 @@ Extra brackets are used in order to support subscripts and superscripts. \section{Sized Operations} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +This code tries to prevent discarding of math formatting inside of +mathop. See \Link{https://tug.org/pipermail/tex4ht/2016q4/001631.html}{}this bug report\EndLink. + +I use AtBeginDocument because it doesn't seem to have any effect otherwise. The code comes +from tex4ht-info.tex. + +\<configure mathml latex\><<< +\AtBeginDocument{% +\Configure{mathop*}{*}{}{} + { \Configure{mathop}{*}{<mo>}{</mo>}{} } +} +>>> + + \<plain,latex mathml\><<< \def\mathop:prefix#1{% \Configure{mathop}{*}{<\a:mathml mo #1\Hnewline>}{</\a:mathml mo>}% |