Header and footer
The content
key in header
or footer
can be used to add text to running header or footer content. Content can include static text, or reference variables using curly braces.
The following variable fields are currently supported:
title
: Map titlechapter
: Map chapter titlefolio
: current page numberfolio-with-total
: current page number with total number of pagespage-number
: current page numberpage-count
: total number of pagesyear
: current year
header:
content: '{title} — {chapter}'
border-after: solid 1pt black
To define separate headers or footers for recto (right) and verso (left) pages, use the odd
and even
keys.
header:
border-after: solid 1pt black
odd:
content: '{title}'
text-align: end
even:
content: '{chapter}'
text-align: start
Last modified: 13 February 2024