#5314·typst

Footnote precedes a reference to it

Author: johnmapesonCreated Oct 28, 2024Updated Sep 17, 2026
Labelsbuglayoutregression

Description

Sometimes a footnote precedes a reference to it. For example:

= Lorem
#lorem(580)

== Ipsum
#lorem(10)#footnote[#lorem(20)] #lorem(2000)

Here, the reference to a footnote is located at Page 2, but the footnote itself is located at Page 1. As far as I know, a footnote should never precedes a reference to it. And so, if I understand correctly, this is a bug.

Reproduction URL

No response

Operating system

macOS

Typst version

  • I am using the latest version of Typst