reset footnote counter each pages and prevent breaking footnote over pages
This commit is contained in:
parent
663f587f77
commit
8ed887823c
1 changed files with 9 additions and 5 deletions
|
@ -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 ----------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue