You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MathJax v2 renders like this:
Whereas MathJax v3.0.5 renders the formula almost with no spacing between the base and the power:
Also there is a difference in vertical alignment of the power, arguably MJv2 does a better job here, making the formula vertically tighter.
Otherwise using MJv3 with pleasure, thank you!
Steps to Reproduce:
$\beta^{p^k\cdot(p-1)}$
Technical details:
MathJax Version: 2.7.4 vs 3.0.5
Client OS: Windows 10
Browser: Chrome 81.0.4044.92
The text was updated successfully, but these errors were encountered:
There are several heights used in TeX depending on the style (e.g., display versus text), and whether the style should be further "cramped" (like inside a square root or fraction). It looks like the display height is being used where text height should be used. I will need to look into that, as well as the horizontal distances.
I have finally gotten the chance to work on this (as I was working on other super- and subscript issues), and it turns out that the vertical positioning in v2 was wrong, and the v3 heights are correct. The horizontal positioning is wrong, however, and that is due to the fact that MathJax doesn't have all the italic correction information that TeX does. MathJax "fakes" that data, but that doesn't always work well. In v2, the layout put the scriptspace tex font parameter spacing in the wrong place, which accounts for the extra spacing there, but v3 corrected that error. In order to compensate for the missing italic correction information, I've made a pull request that adds a small space between the base and the exponent. It is not exactly like in TeX, but is an improvement.
Issue Summary
MathJax v2 renders like this:


Whereas MathJax v3.0.5 renders the formula almost with no spacing between the base and the power:
Also there is a difference in vertical alignment of the power, arguably MJv2 does a better job here, making the formula vertically tighter.
Otherwise using MJv3 with pleasure, thank you!
Steps to Reproduce:
Technical details:
The text was updated successfully, but these errors were encountered: