Table of Contents Category Keys
toc
The keys in the toc
category control the arrangement and style of the table of contents.
Key | Value Type | Example |
---|---|---|
font-color |
Color |
|
font-family |
Font family name |
|
font-kerning |
|
|
font-size |
Number |
|
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 |
|
toc-h<n>
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 |
Number |
|
font-style |
Font style |
|
text-transform |
Text transform |
|
toc-title
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 |
Number |
|
font-style |
Font style |
|
text-align |
Text alignment |
|
text-transform |
Text transform |
|
toc-dot-leader
The keys in the toc-dot-leader
category control the arrangement and style of the dot leader in the table of contents.
Key | Value Type | Example |
---|---|---|
content |
Quoted string |
|
Color |
|
|
Number |
|
|
Font style |
|
|
|
|
font-*
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.