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
Hi, while working on the physics package I discovered there's an issue of misaligned superscripts and subscripts, that are too sensitive[1] on the preceding symbol's height.
Rendered by Typst:
This misalignment makes certain expressions not so pretty, e.g.
Below is the rendering done by Latex. They are aligned, and the position is not so sensitive on the preceding symbol's height, as expected and familiar with by most paper writers.
Thanks! Typst is awesome and I very much like to see it succeed.
[1] Naturally, the superscript and subscript's vertical positions should pay some attention to the preceding symbol's height (say, a very tall symbol like a fraction frac(1,2), a sum or prod, or an integral symbol), but they need not be too sensitive on the preceding symbol's height, like the letters in the example.
Reacted by Tan Long, James Lawton, Matthias Georg Mayer, Felix Gerick, Vojtěch Křižan, Duc Nguyen, R F and Ludwig Austermann
$ e zws_1 y zws_1 delta zws_1 beta zws_1, e zws_1^1 y zws_1^1 delta zws_1^1 beta zws_1^1 $
$ e zws^1 y zws^1 delta zws^1 beta zws^1, e zws_1^1 y zws_1^1 delta zws_1^1 beta zws_1^1 $
$ x zws^1 [x] zws^1 x zws_1 [x] zws_1 $
Activity
Leedehai commentedon Apr 28, 2023
A bit more examples :)
LaTeX:
Typst:
Enivex commentedon May 10, 2023
As a workaround you can do this
Leedehai commentedon May 11, 2023
Closing after PR #1129 was merged.