Follow Endnotes In The Header
The header reads complete body spans on its physical page, then gathers all original and reused mark pages. Querying never renders an explanation again. These source page numbers are physical; native page-label formatting is a separate step.
Setup Required
Source
#let header = context {
let notes = deixis-query-notes(
include-types: "endnote",
page: here().page())
if notes.len() > 0 {
let pages = notes.map(n =>
n.marks.map(m => m.dest.page())
).flatten().dedup().sorted()
text(size: 9pt)[
Notes For Pages
#pages.map(str).join([, ])
]
}
}
#set page(header: header)
Our #deixis-endnote(
id: <method>,
)[
method
][An explanation of the method.]
needs context.
#pagebreak()
Use the #deixis-mark(
of: <method>,
)[
method again
].
#deixis-print-endnotes()