Numbering
Documentation for the `numbering` function.
Applies a numbering to a sequence of numbers.
A numbering defines how a sequence of numbers should be displayed as content. It is defined either through a pattern string or an arbitrary function.
A numbering pattern consists of counting symbols, for which the actual number is substituted, their prefixes, and one suffix. The prefixes and the suffix are displayed as-is.
Example
Numbering patterns and numbering functions
There are multiple instances where you can provide a numbering pattern or function in Typst. For example, when defining how to number headings or figures. Every time, the expected format is the same as the one described below for the numbering parameter.
The following example illustrates that a numbering function is just a regular function that accepts numbers and returns content.
#numbering(
numbering,
numbers
) -> anyParameters
Prop
Type