MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

[v4-beta.4] placement of supescript when accents are present

Open pkra opened this issue 2 years ago • 3 comments

For the last item in

    ${A_1}^\top$
    $A_1^\top$
    ${\bar A_1}^\top$

the superscript is a bit far away from the base.

Here's v4-beta.4

image

Here "real" LaTeX.

image

Is this considered a bug or an expected difference?

pkra avatar Oct 26 '23 08:10 pkra

I mean TeX isn't very consistent here either...

pkra avatar Oct 26 '23 08:10 pkra

TeX has some special heuristics for handling characters with math accents like \bar, and this seems to be one that I wasn't aware of. I will look into how hard it would be to accommodate it. We do now have markers for math accents, so probably can check for that.

dpvc avatar Oct 27 '23 21:10 dpvc

Thanks, Davide. We fixed this in our source so this was just meant FYI.

pkra avatar Oct 28 '23 15:10 pkra