How can I get a footnote on the same page as its reference in a multipage numbered-list enum?

Here’s a (mostly) minimal case:

#set page(
    paper: "a5",
)

10. I like traffic lights,
    #footnote[not stop signs]
    but only when they're green.

11. #lorem(500)

This generates a two-page PDF. I’d hoped that the “not stop signs” footnote text would be on the first page (with its item), but it gets pushed to the second page (after the list enum).

Is there a way to keep the footnote on the same page as its reference even in multipage enums?

Thanks!

Hello,
I can reproduce this issue on the latest Typst master. This is a known limitation of the layout engine.

Last I heard about this was from 2023-11-19T00:00:00Z at Footnote in block renders at the page where the block ends · Issue #2449 · typst/typst · GitHub.

Unfortunately no [updates on this]. Tackling this will require larger changes to the layout engine, which will only happen in a longer timeframe.

I am not aware if anything has changed yet, but maybe @laurmaedje can chime in on this question!

Will be fixed in the next version. The relevant change is here: New flow layout, with multi-column floats by laurmaedje · Pull Request #5017 · typst/typst · GitHub

2 Likes

Sounds like the answer is “just wait a bit and it’ll work without me changing anything”. Thanks!