Infix \vert produces wrong math output #958
Closed
Labels
Milestone
Comments
I should also attach the presentation MathML that I made a FF screenshot for: <mrow>
<mi>p</mi>
<mo></mo>
<mrow>
<mo stretchy="false">(</mo>
<mrow>
<mo rspace="5.8pt" stretchy="false">|</mo>
<mo></mo>
<mpadded width="+3.3pt">
<mi>𝐱</mi>
</mpadded>
<mi>𝜽</mi>
</mrow>
<mo stretchy="false">)</mo>
</mrow>
</mrow> |
Ah, simple problem; when I tweaked the grammar to recognize various forms of VERTBAR as infix, I forgot to update the grammatical role so postprocessing would treat it as infix. Fixed now! Thanks for the report. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have distilled a minimal example from the arxiv-vanity 1603.00788, which (besides some missing package issues, notably glossaries.sty) has some broken equations.
The core problem comes from a redefinition of
\mid
as:The problems are two-fold:
First, firefox renders the MathML with the vertical bar as prefix, as opposed to the regular probability syntax in the PDF:
Firefox:
PDF:
I haven't checked the mathjax rendering, but there comes part 2 of the issue.
Second, the tex attribute is very low-level and out of scope for renderers like MathJax, because of commands such as
\leavevmode
and\nobreak
. This may not be latexml's problem to solve, and could indeed be better addressed by solving #432 , which suggests adding a "high-level macro" math annotation attribute. My minimal example produces a slightly different string, but on arxiv-vanity it is:The text was updated successfully, but these errors were encountered: