[tex4ht] [bug #278] Wrong mathml with $\langle$

Michal Hoftich puszcza-hackers at gnu.org.ua
Wed Jul 1 13:02:51 CEST 2020

Follow-up Comment #1, bug #278 (project tex4ht):

The mathml- option doesn't insert extra <mrow> elements, so it produces valid
MathML code. Semantically, <mrow> should be used to enclose the operator and
the fenced code. The MathML code in this case is inserted using ht-fonts
mechanism in tex4ht DVI processor. It would be best if it was possible to
insert some code in the DVI post-processing in the case when there is unclosed

This is the relevant code from tex4ht-mathml.tex:

\:CheckOption{mathml-}     \if:Option 
   \Configure{MathClass}{4}{*}{<\a:mathml mo\Hnewline
                           {</\a:mathml mo>}{}
   \Configure{MathClass}{5}{*}{<\a:mathml mo\Hnewline
                           {</\a:mathml mo>}{}
   \Log:Note{for sources failing to produce
       clean mathml code, try the command line option `mathml-'}%
   \Configure{MathClass}{4}{*}{<\a:mathml mrow
                                     ><\a:mathml mo\Hnewline
                           {</\a:mathml mo><\a:mathml mrow>}{}
   \Configure{MathClass}{5}{*}{</\a:mathml mrow><\a:mathml mo\Hnewline
                           {</\a:mathml mo></\a:mathml mrow>}{}


Reply to this item at:


  Message sent via/by Puszcza

More information about the tex4ht mailing list.