forked from quarto-dev/quarto-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocument-numbering.yml
More file actions
112 lines (101 loc) · 4.1 KB
/
document-numbering.yml
File metadata and controls
112 lines (101 loc) · 4.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
- name: number-sections
schema: boolean
default: false
description:
short: "Number section headings"
long: |
Number section headings rendered output. By default, sections are not numbered.
Sections with class `.unnumbered` will never be numbered, even if `number-sections`
is specified.
- name: number-depth
schema: number
tags:
formats: [$html-all, $pdf-all, docx]
description:
short: The depth to which sections should be numbered.
long: |
By default, all headings in your document create a
numbered section. You customize numbering depth using
the `number-depth` option.
For example, to only number sections immediately below
the chapter level, use this:
```yaml
number-depth: 1
```
- name: secnumdepth
schema: number
hidden: true
tags:
formats: [$pdf-all]
description: The numbering depth for sections. (Use `number-depth` instead).
- name: number-offset
tags:
formats: [$html-all]
schema:
maybeArrayOf: number
default: [0, 0, 0, 0, 0, 0]
description:
short: Offset for section headings in output (offsets are 0 by default)
long: |
Offset for section headings in output (offsets are 0 by default)
The first number is added to the section number for
top-level headings, the second for second-level headings, and so on.
So, for example, if you want the first top-level heading in your
document to be numbered "6", specify `number-offset: 5`. If your
document starts with a level-2 heading which you want to be numbered
"1.5", specify `number-offset: [1,4]`. Implies `number-sections`
- name: section-numbering
tags:
formats: [typst]
schema: string
description: "Schema to use for numbering sections, e.g. `1.A.1`"
- name: shift-heading-level-by
schema: number
description:
short: |
Shift heading levels by a positive or negative integer. For example, with
`shift-heading-level-by: -1`, level 2 headings become level 1 headings.
long: |
Shift heading levels by a positive or negative integer.
For example, with `shift-heading-level-by: -1`, level 2
headings become level 1 headings, and level 3 headings
become level 2 headings. Headings cannot have a level
less than 1, so a heading that would be shifted below level 1
becomes a regular paragraph. Exception: with a shift of -N,
a level-N heading at the beginning of the document
replaces the metadata title.
- name: pagenumbering
schema:
maybeArrayOf: string
tags:
formats: [context]
description:
short: Sets the page numbering style and location for the document.
long: |
Sets the page numbering style and location for the document using the
`\setuppagenumbering` command.
See [ConTeXt Page Numbering](https://wiki.contextgarden.net/Command/setuppagenumbering)
for additional information.
- name: top-level-division
tags:
formats: [$pdf-all, context, $docbook-all, tei]
schema:
enum: [default, section, chapter, part]
description:
short: |
Treat top-level headings as the given division type (`default`, `section`, `chapter`, or `part`). The hierarchy
order is part, chapter, then section; all headings are shifted such
that the top-level heading becomes the specified type.
long: |
Treat top-level headings as the given division type (`default`, `section`, `chapter`, or `part`). The hierarchy
order is part, chapter, then section; all headings are shifted such
that the top-level heading becomes the specified type.
The default behavior is to determine the
best division type via heuristics: unless other conditions
apply, `section` is chosen. When the `documentclass`
variable is set to `report`, `book`, or `memoir` (unless the
`article` option is specified), `chapter` is implied as the
setting for this option. If `beamer` is the output format,
specifying either `chapter` or `part` will cause top-level
headings to become `\part{..}`, while second-level headings
remain as their default type.