Numbering
The document's numbering configuration, defaulting to numbered headings.
Numbering is a document's numbering configuration. By default it numbers headings h1 through h6 hierarchically, and each NumberingRule or CounterDef inside it adds to that scheme. To number headings your own way, turn the default scheme off with defaultHeadings and write rules for the headings you want numbered.
Fields
counterStyleType stringThe default counter style for every counter the document numbers. Per-rule, per-Counter, and per-Footnotes styles override it. Defaults to decimal.defaultHeadingsType booleanWhether Format numbers headings h1 through h6 with its built-in hierarchical scheme. On by default. Set it to false when your own rules number the headings; that removes the built-in restarts between heading levels as well as the built-in numbers.Example
An empty <Numbering> numbers headings h1 through h6 hierarchically. Add <NumberingRule> children to number other elements, and the headings keep their default numbers.
<Document title="Report" lang="en">
<Numbering>
<NumberingRule match="figure" counter="figure" format="Figure {figure}: " />
</Numbering>
{/* ...layout and sections... */}
</Document><template>
<Document title="Report" lang="en">
<Numbering>
<NumberingRule match="figure" counter="figure" format="Figure {figure}: " />
</Numbering>
<!-- ...layout and sections... -->
</Document>
</template><template data-type="document" data-title="Report" data-lang="en">
<template data-type="numbering">
<template data-type="numbering-rule" data-match="figure" data-counter="figure" data-format="Figure {figure}: "></template>
</template>
<!-- ...layout and sections... -->
</template>Usage
Place one <Numbering> at the top of the document. On its own it numbers headings h1 through h6. Each NumberingRule or CounterDef you add extends that scheme, so a figure rule numbers figures while the headings keep their default numbers.
To number headings your own way, set defaultHeadings to false and write rules for the headings you want numbered. Turning the default scheme off removes its heading numbers and its restarts between heading levels. Your rules and CounterDefs then make up the whole scheme, and a heading no rule matches stays unnumbered. The Numbering guide walks through the full picture.