reset footnote counter each pages and prevent breaking footnote over pages

This commit is contained in:
Jean-Marie Mineau 2025-08-13 00:03:27 +02:00
parent 663f587f77
commit 8ed887823c
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2

View file

@ -82,6 +82,8 @@
numbering: "1",
number-align: center,
header: context {
// reset footnote numbering at each pages
counter(footnote).update(0)
// disable linebreaks in header
show linebreak: none
// get the current page number
@ -216,11 +218,13 @@
show footnote.entry: it => {
let loc = it.note.location()
numbering(
"1. ",
..counter(footnote).at(loc),
)
it.note.body
block(breakable: false, {
numbering(
"1. ",
..counter(footnote).at(loc),
)
it.note.body
})
}
// ---------- BIBLIOGRAPHY ----------