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
Wrong sub-/superscript alignment with accents #1672
Sure, the right one looks mostly as I would expect. I was only surprised that the superscript was moved down slightly, but I guess that's on purpose to make room for the hat.
The placement of scripts is a tricky balance between many things.
I don't think that the LaTeX one here is intended nor perfect behaviour, it just is not implemented for the LaTeX package amsfonts. If you compare
$e_1^1\,\hat{\hat{e}}_1^1$
I wouldn't say it is intended behaviour either, but obviously one can not handle every case the desired way, as users may write arbitrary complex expressions.
I think that commonly used symbols which take accents should have commen sub-/ superscripts, as demonstrated here, but also for e.g. double stroke letters. It would be nice to have these common symbols look similar in this respect, when writing (mathematical) function definitions or in inline formulae.
Activity
Enivex commentedon Jul 6, 2023
Only the middle one is what I would consider a bug
EpicEricEE commentedon Jul 6, 2023
Sure, the right one looks mostly as I would expect. I was only surprised that the superscript was moved down slightly, but I guess that's on purpose to make room for the hat.
astrale-sharp commentedon Jul 7, 2023
this might help
#let y = 0.2em $f_a^a != hat(f)_a^a != hat(f_a^a)$ #place[#line(stroke: 0.2pt, start: (0pt,y), end: (90pt,y))]Enivex commentedon Oct 14, 2023
Here's an example of LaTeX doing this
The placement of scripts is a tricky balance between many things.
ludwig-austermann commentedon Oct 15, 2023
I don't think that the LaTeX one here is intended nor perfect behaviour, it just is not implemented for the LaTeX package
amsfonts. If you compare$e_1^1 \, \hat{\hat{e}}_1^1$I wouldn't say it is intended behaviour either, but obviously one can not handle every case the desired way, as users may write arbitrary complex expressions.
I think that commonly used symbols which take accents should have commen sub-/ superscripts, as demonstrated here, but also for e.g. double stroke letters. It would be nice to have these common symbols look similar in this respect, when writing (mathematical) function definitions or in inline formulae.