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
{{ message }}
Repository navigation
Primes on symbols lead to misaligned superscripts: they are pushed upward #3043
Update (2024-07-02): a more obvious example in #3043 (comment).
Typst:
$ A A^2 A'^2 A''^2 $
LaTeX:
$$ A A^2 A'^2 A''^2$$
The LaTeX version looks better, because math expressions often mix symbols with and without primes, and having the misaligned superscripts up and down along the line looks a bit unpleasant.
Related (at the time of writing): #539 (fixed): misaligned superscripts with "naked" symbols. #1672/#2324 (open): accents on symbols lead to misaligned superscripts.
I'm having a similar annoyance where the prime symbol is displayed above a mathematical symbol. Specifically, when I use $R^{\succsim'}$ in LaTeX I get the following.
Apart from the obvious $R^(succ.tilde')$, I've tried some variations to get it to render the way I want. Alas, I've not been successful yet.
UPDATE: I just realized that this has nothing to do with superscript. $succ'$ renders just as strangely. This might be more related to #2860.
UPDATE': Turns out this is intended behavior. The way to get around this is using scripts(>) (the opposite would be limits(>).
UPDATE'': According to Enivex on Discord, this isn't intended behavior.
Activity
emilyyyylime commentedon Dec 22, 2023
Honestly I prefer the Typst output here. It's misaligned but the spacing is much more pleasing
max397574 commentedon Dec 22, 2023
I'd prefer the LaTeX way but with a little bit more spacing between the
'and the2jassler commentedon Jan 29, 2024
I'm having a similar annoyance where the prime symbol is displayed above a mathematical symbol. Specifically, when I use
$R^{\succsim'}$in LaTeX I get the following.Apart from the obvious
$R^(succ.tilde')$, I've tried some variations to get it to render the way I want. Alas, I've not been successful yet.UPDATE: I just realized that this has nothing to do with superscript.
$succ'$renders just as strangely. This might be more related to #2860.UPDATE': Turns out this is intended behavior. The way to get around this is using
scripts(>)(the opposite would belimits(>).UPDATE'': According to Enivex on Discord, this isn't intended behavior.
Leedehai commentedon Jul 2, 2024
This issue leads to more unpleasant rendering when there's a square root or a fraction bar that makes the misalignment more obvious: