Skip to content

LaTeXML should set explicit spacing for operators outside the MathML dictionaryΒ #789

@fred-wang

Description

@fred-wang

Simple testcase: $\int dr$

This will generate

`<math id="p1.m1" class="ltx_Math" alttext="\int dr" display="inline"><mrow><mo largeop="true" symmetric="true">∫</mo><mrow><mo>𝑑</mo><mi>r</mi></mrow></mrow></math>`

But MATHEMATICAL ITALIC SMALL D is not an operator in the Operator Dictionary (https://www.w3.org/TR/MathML3/appendixc.html) so rendering engines are likely to use the default value thickmathspace for lspace/rspace (https://www.w3.org/TR/MathML3/chapter3.html#presm.mo). This leads to too much spacing compared to what e.g. XeLaTeX does. I guess this may happen for more cases of operators outside the Operator Dictionary.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions