-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spacing in scripts seems too large #2241
Comments
It does look like there is a bug there. I will check into it. In the meantime, perhaps you can just set the
in order to have MathJax use MathML spacing rules rather than TeX spacing rules. |
OK, it turns out that this is due to a bug in the handling of tex classes of the elements, which is being handled by another PR (not yet in place). So it will be fixed in the next release. Thanks for the report. |
Thanks for checking on this. FYI: The MathML refresh group is formalizing all the layout rules, and one of the ones currently being decided upon is spacing in scripts. I encourage you and anyone else who sees this to take a look at the issue/samples on github, and add a comment to the issue with your preference. |
…han requiring both). This means that mspace wrapped in mstyle with scriptstyle=0 (as used for the fixed-size spaces in TeX) won't include extra spaces. Resolves issue mathjax/MathJax#2241
I was wrong, there was another issue at play, so I've made a new pull request for the fix. |
Fix spacing problems in superscripts. mathjax/MathJax#2241
The following is an attempt to simulate the MathML spacing rules in scripts:
In v2.7, it looks like the spacing amounts are interpreted correctly, but in v3.0, they are too big, perhaps been taken from the displaystyle font, not the scriptstyle font.
2.7 (as rendered in Firefox):
3.0 (as rendered in Firefox):
In the first line, the difference seems particularly obvious around the n+1 and n-1.
For reference, the script tags are:
and
The text was updated successfully, but these errors were encountered: