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