-
-
Notifications
You must be signed in to change notification settings - Fork 12
Numbering
The .numbering
function sets the global numbering format of the document. When a numbering format is set, counters are displayed next to:
- Headings and table of contents entries
- Figures
- Tables
- Custom elements (
.numbered
)
The configuration is represented by a Dictionary:
.numbering
- headings: <format>
- figures: <format>
- tables: <format>
If a key is missing, its numbering is disabled.
Each format parameter accepts either none
or a string where each character represents either a counter or a fixed symbol:
-
1
for decimal (1, 2, 3, ...
) -
a
for lowercase latin alphabet (a, b, c, ...
) -
A
for uppercase latin alphabet (A, B, C, ...
) -
i
for lowercase roman numerals (i, ii, iii, ...
) -
I
for uppercase roman numerals (I, II, III, ...
) - Any other character is a fixed symbol
The default numbering format, if unspecified, is:
-
For
paged
documents (can be disabled via.nonumbering
):-
1.1.1
for headings; -
1.1
for figures and tables.
-
-
None for other documents
.numbering
- headings: 1.A.a
# Title <!-- 1 -->
## Title <!-- 1.A -->
### Title <!-- 1.A.a -->
### Title <!-- 1.A.b -->
#### Title <!-- None -->
## Title <!-- 1.B -->
# Title <!-- 2 -->
## Title <!-- 2.A -->


Figures are numbered only if they feature a caption, which may also be empty.
.numbering
- headings: 1.A.a
- figures: 1.1
# Title

## Title

# Title


When numbering figures and tables, the amount of symbols in the format dictates the rules which cause the counters to reset.
The previous example, run with figures:{1}
, results in the following:

Tables are numbered only if they feature a caption, which may also be empty.
.numbering
- headings: 1.A.a
- tables: 1.1
# Title
| | Age | Favorite food |
|-----------|-----|---------------|
| **Anne** | 24 | Hamburger |
| **Lucas** | 19 | Pizza |
| **Joe** | 32 | Sushi |
"Study results."
## Title
| | Age | Favorite food |
|-----------|-----|---------------|
| **Anne** | 24 | Hamburger |
| **Lucas** | 19 | Pizza |
| **Joe** | 32 | Sushi |
""
# Title
| | Age | Favorite food |
|-----------|-----|---------------|
| **Anne** | 24 | Hamburger |
| **Lucas** | 19 | Pizza |
| **Joe** | 32 | Sushi |
""

Via .numbered
. to do...
The localized name of the labeled element appear in captions if .doclang
is set and the locale is supported.
For instance Figure and Table for the English locale, Figura and Tabella for Italian.
Layout themes affect the way numbers are displayed:


minimal
theme
- Figures
- Image size
- TeX formulas
- Table caption
- Decorative headings
- Alerts (quote types)
- Quotation source
- Page breaks
- Text symbols (text replacement)
- Syntax of a function call
- Declaring functions
- Dynamic typing
- Including other Quarkdown files
- Importing external libraries
- Localization
- Document metadata
- Theme
- Page format
- Page margin content
- Page counter
- Automatic page break
- Numbering
- Table of contents
- Stacks (row, column, grid)
- Container
- Align
- Float
- Clip
- Box
- Collapsible
- Whitespace
- Variables
- Optionality
- Math
- Conditional statements
- Loops
- Let
- Destructuring
- String manipulation
- Table manipulation: sorting, computing, and more
- Generators
- String
- Number
- Markdown content
- Boolean
- None
- Enumeration entry
- Iterable
- Dictionary
- Range
- Lambda
- Size(s)
- Color
- Dynamic
- Paper: abstract, definitions, theorems, and more