bugtex4ht - Bugs: bug #278, Wrong mathml with $\langle$

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #278: Wrong mathml with $\langle$

Submitted by:  Michal Hoftich <michal_h21>
Submitted on:  Thu 31 Mar 2016 02:34:24 PM EEST  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Wed 01 Jul 2020 02:02:51 PM EEST, comment #1:

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 delimiter.

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

Michal Hoftich <michal_h21>
Project Member
Thu 31 Mar 2016 02:34:24 PM EEST, original submission:

This sample document:



hello $\langle$

generates wrong mathml:

display="inline" ><mrow ><mo

note the second `<mrow>` tag, there should be closing tag instead. tex4ht expects that there is some more math content following and it is then closed using `\rangle`, which correctly insert closing `</mrow>`.

Michal Hoftich <michal_h21>
Project Member


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by michal_h21 (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray