I have a document where I create the footer with something similar to the following:
set page(
numbering: "1",
footer: footerComponent(
[
Page
#counter(page).display(
"1 of",
both: false
)
#last_content_page
]
)
)
content_body
let last_content_page = context(counter(page).get()).at(0)
content_body is all of the content, and I want my footer to show the last page number of the content part of the document. I can get the last_content_page number with let last_content_page = context(counter(page).get()).at(0) but I can obviously not access it where I would need it, any ideas ?