Skip to content

Note alignment creates overlaps where there shouldn't be any #41

@Personwithhat

Description

@Personwithhat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions