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",
|
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 ----------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue