toc:
break-after: auto
The keys in the toc category control the arrangement and style of the table of contents.
| Key | Value Type | Example |
|---|---|---|
break-after |
|
|
font-color |
Color |
|
font-family |
Font family name |
|
font-kerning |
|
|
font-size |
Font size |
|
font-style |
Font style |
|
hanging-indent |
Measurement |
|
indent |
Measurement |
|
line-height |
Number |
|
margin-top |
Measurement |
|
text-decoration |
Text decoration |
|
text-decoration-color |
Color |
|
text-decoration-width |
Number |
|
text-transform |
Text transform |
|
The keys in the toc-h<n> category control the arrangement and style of each heading level displayed in the table of contents.
<n> is a number ranging from 1 to 6, representing each of the six heading levels.
| Key | Value Type | Example |
|---|---|---|
font-color |
Color |
|
font-family |
Font family name |
|
font-kerning |
|
|
font-size |
Font size |
|
font-style |
Font style |
|
text-transform |
Text transform |
|
The keys in the toc-title category control the arrangement and style of the title of the table of contents.
| Key | Value Type | Example |
|---|---|---|
font-color |
Color |
|
font-family |
Font family name |
|
font-kerning |
|
|
font-size |
Font size |
|
font-style |
Font style |
|
text-align |
Text alignment |
|
text-transform |
Text transform |
|
The keys in the toc-dot-leader category control the arrangement and style of the dot leader in the table of contents.
Any inherited values inherit from the toc category, not the toc_h2 category.
| Key | Value Type | Example |
|---|---|---|
content |
Quoted string |
|
Color |
|
|
Font size |
|
|
Font style |
|
|
|
|
The dot leader inherits all font properties except font-style from the parent toc category.
The purpose of the font-size key is to slightly increase the size of the dot leader symbol.
If the value is too large, it can impact the line height and thus throw off the alignment of the title and the page number.
The integers assigned to the levels key are based on the AsciiDoc section levels.
That is part = 0, chapter = 1, etc.
Dot leaders are only shown for the specified levels.
If a value isn’t specified, dot leaders are shown for all levels.