- Defining Styles
- Using Style Settings
- Class Reference
-
Settings Reference
-
Document Settings
- baseline-grid-size
- column-count
- column-spacing-width
- footnote-enumeration
- footnote-placement
- footnote-style
- locale
- page-binding
- page-height
- page-inset-bottom
- page-inset-inner
- page-inset-outer
- page-inset-top
- page-number-format
- page-number-reset
- page-number-style
- page-orientation
- page-width
- section-break
- two-sided
- Headers and Footers
- Footnotes Area
- Inline
- Media
- Footnotes
- Paragraph
- Divider
- List
- Table
- Table Cell
- Table of Contents
- Table of Contents Item
-
Document Settings
- Editor Plugins
page-number-format
The format string that should be used for page numbers. Page numbers can be placed on area-header or area-footer depending on their content setting. Use ‘%p’ as placeholder for page numbers. The actual placeholder content depend on the page-number-style. Use ‘%%’ to generate a single % character.
Availability
Available in: Document Settings
Type
Default value
%p
Inherited
Yes.
Example
// Show "- 1 -", "- 2 -" in the footer area of a page.
document-settings {
page-number-format: "- %p -"
page-number-style: decimal
}
area-footer {
content: page-number
text-alignment: center
}