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'm aware that the built in mathtext rendered is not expected to be perfectly identical to tex, but I'm seeing some egregious behavior with spacing that I cannot seem to explain. With:
In that example, I would wonder if the kerning is being turned off for
exponents, somehow.
On Apr 24, 2015 6:26 PM, "Jason Sachs" [email protected] wrote:
That's an awful-looking example also - spacing screwed up next to the K and the contraction of the spacing in front of the q_0, along with the same spacing before the close bracket.
@ndevenish , @jason-sachs , @u55 : I have been finetuning the super/subscript spacing in mathtext in PR #4873, and applied a fix suggested by @mdboom to the symbol spacing in PR #4872. Applying these two PRs, the examples mention in this thread render like this:
The strings are:
Activity
tacaswell commentedon Apr 14, 2015
attn @mdboom Could this be related to the recent spacing changes?
u55 commentedon Apr 18, 2015
I get slightly more-reasonable whitespace after the exponent if I enclose the exponent in curly brackets.
jason-sachs commentedon Apr 24, 2015
another example:
vs. MathJax
$d^2 \leq K^2(q^2 - q_0^2)$WeatherGod commentedon Apr 25, 2015
In that example, I would wonder if the kerning is being turned off for
exponents, somehow.
On Apr 24, 2015 6:26 PM, "Jason Sachs" [email protected] wrote:
ndevenish commentedon May 3, 2015
That's an awful-looking example also - spacing screwed up next to the K and the contraction of the spacing in front of the q_0, along with the same spacing before the close bracket.
Fix matplotlib#4333 whitespace after sub/super bug.
Fix matplotlib#4333: Whitespace after sub/super cluster
Merge pull request #4401 from mdboom/whitespace-mathtext
zblz commentedon Aug 7, 2015
@ndevenish , @jason-sachs , @u55 : I have been finetuning the super/subscript spacing in mathtext in PR #4873, and applied a fix suggested by @mdboom to the symbol spacing in PR #4872. Applying these two PRs, the examples mention in this thread render like this:

The strings are:
It would be great if you could take a look at PR #4873 and make any comments you have on how the new script kerning works before it is merged. Thanks!
jason-s commentedon Aug 14, 2015
Scanned it briefly. You've gone much more in depth than I have -- thanks, I trust your judgment!