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
I find this surprising enough to think that maybe I'm doing something wrong (and I didn't find an issue about this)...
TeX has a notion of "cramped" which causes superscripts to be lower in a number of cases such as in accents, overlines, fractions (denominators), and subscripts. Here's a latex rendering:
The position of the '2' in x^2 is lowered in first instance except for the fraction, where it is the second instance (the denominator).
However, MathJax doesn't reduce the superscript position. Here's a codepen that shows that. Here's a screen shot of that:
[To be honest, my sons happened to be looking at what I was doing and liked the MathJax rendering better...]
Thanks for the report. MathJax is supposed to handle the cramped styles (what is listed as "prime" styles in appendix G of the TeXBook). In version 2, properties like "primestyle" where stored in the same place as the MathML attributes, and that caused difficulty in distinguishing the two, so in version 3, they are stored in two separate places. Unfortunately, when translating the code that determines the superscript offsets to version 3, I neglected to switch the location, so was looking for the prime style in the wrong place. So it never appeared to be set.
I will make a pull request to fix the problem. It also turns out that there was a problem handling the prime style in display mode, which I will also fix.
dpvc
added a commit
to mathjax/MathJax-src
that referenced
this issue
Apr 4, 2020
Issue Summary
I find this surprising enough to think that maybe I'm doing something wrong (and I didn't find an issue about this)...
TeX has a notion of "cramped" which causes superscripts to be lower in a number of cases such as in accents, overlines, fractions (denominators), and subscripts. Here's a latex rendering:
The position of the '2' in x^2 is lowered in first instance except for the fraction, where it is the second instance (the denominator).
However, MathJax doesn't reduce the superscript position. Here's a codepen that shows that. Here's a screen shot of that:
[To be honest, my sons happened to be looking at what I was doing and liked the MathJax rendering better...]
Steps to Reproduce:
This is the header
and this is the input
The text was updated successfully, but these errors were encountered: