ronkok / Temml

TeX-to-MathML conversion library in JavaScript
https://temml.org/
MIT License
162 stars 12 forks source link

horizontal position of superscript/subscript in `\int_\limits` #44

Closed hbghlyj closed 11 months ago

hbghlyj commented 11 months ago

Example

\int\limits_1^1

In LaTeX:

In MathJax: $$\int\limits_1^1$$ In Temml: image the superscript/subscript seems to be misaligned with $\int$ Is this related to italic correction value of $\int$ in the font?


Another minor issue: in LaTeX \textstyle\int_0^1 f(x)

In MathJax $$\Large\textstyle\int_0^1 f(x)$$ In Temml

the subscript 0 seems to be slightly far from $\int$

ronkok commented 11 months ago

The more general problem is that the browsers do a poor job at italic correction in general. Sometimes they ignore italic correction altogether. What's worse is that each browser has a different italic correction problem than the others.

That's makes any workaround very difficult. A workaround would have to be customized for:

That's more than I signed up to do. I recognize the problem, but I do not intend to take any action.