j Ulysses Style Sheet Reference

page-number-reset

Specifies whether page numbers should be reset on each section.

Availability

Available in: Document Settings

Type

Symbol

Available values

Value Description
none Continuous page numbering in the entire document.
per-section Reset page numbers on each section.

Default value

none

Inherited

No.

Example

// Show "- 1 -", "- 2 -" in the footer area of a page. Numbers will be reset on each section.
document-settings {
	page-number-format:      "- %p -"
	page-number-style:       decimal
	page-number-reset:       per-section
	section-break:           heading-2
}

area-footer {
	content:         page-number
	text-alignment:  center
}