typst-drafting icon indicating copy to clipboard operation
typst-drafting copied to clipboard

Note alignment creates overlaps where there shouldn't be any

Open Personwithhat opened this issue 2 months ago • 0 comments

The issue: Image

Basic typst file to reproduce the issue main (2).txt

For some reason all the notes overlap consistently if e.g. you use superscripts. There are other ways of simply manipulating text to achieve the same result using varying setups

I mean, for now, I guess I can just do the (dy: em) hack to hardcode note positions as I go but it's strange that even 1 liners end up overlapping for some reason.

What's even more bizzare is if I put #note(dy: 0.1em)[note]

This generates a shorter spacing than 'auto' does, but the notes no longer overlap? Seems to me that 'dy: auto' is calculating note spacing wrong.

Afaik has nothing to do w the 'Context' note there (in fact, removing it does not clean up the error, just makes the note counter start from 0 rather than 1)

Overlaps: Image

Does not overlap: Image

Personwithhat avatar Oct 20 '25 14:10 Personwithhat