Search code examples
mathjax

Mathjax : exponent too close from term


I don't know how to fix the following issue : when I insert MathJax in a page with different equations, the exponent is too close from the variable or the term which has this component.

It is clear to me that the exponent "j" is too close from parenthesis and various terms: it is difficult to distinguish it.

How can I circumvent this issue? Am I obliged to insert a latex "," character or more generally put a space between the exponent and the term?

Update 1

As suggested by Peter Krautzberger, below a capture of equation given in my link above.

"j" exponent issue

You can see that "j" exponent touches the parenthesis for the first left terms.


Solution

  • This is due to the font metrics of the STIX fonts. The italic "j" extends to the left of its bounding box by .124em (which amounts to a pixel or two at usual sizes), while the MathJax TeX font's italic "j" only extends to the left by .012em (1/10 as much). So when the superscript "j" is placed next to the base "v" in the STIX fonts, the bottom of the "j" extends to the left of its bounding box by a few pixels, and bumps the "v". This is inherent in the metrics of the STIX fonts.

    One solution would be to switch to using the MathJax TeX fonts. If you control the configuration of the page you are using, you could configure MathJax to not use the STIX fonts. Otherwise, if you don't have control over the configuration, you could install the MathJax fonts locally, so at least your own view of the situation would be better.