typst / typst

A new markup-based typesetting system that is powerful and easy to learn.
https://typst.app
Apache License 2.0
32.65k stars 875 forks source link

Wrong footnote numbering #4667

Closed laurmaedje closed 1 month ago

laurmaedje commented 1 month ago

Discussed in https://github.com/typst/typst/discussions/4611

Originally posted by **arnold-c** July 24, 2024 I'm very new to Typst and enjoying the relative ease as creating and editing templates, but I'm stuck trying to get footnotes to work correctly for an article template I'm creating. I've been modifying [this template](https://github.com/typst/typst/discussions/1504) to add things like equal contribution footnotes and noticed that the numbering in the footnotes don't match numbering in the text. I suspect it's a scoping issue related to the for loop that cycles through all authors , but I'm not sure how to fix that issue. This issue persists in the rest of the document as well (see page 2) One thought I had was to try and create a footnote numbering system that only provides one option, but while I could get that to work outside of a footnote call, it seems like the `footnote` function has some restrictions on the `numbering` system that can be implemented (see the end of page 2) The document can be [found here](https://typst.app/project/rbtMsyRZKgn5LrXVWzMcCq) Thanks!
laurmaedje commented 1 month ago

See https://github.com/typst/typst/discussions/4611#discussioncomment-10246089