The
listOfAbbreviations and bibliography elements are documented on their own pages: Abbreviations and Citations.Table of Contents
Generates an automatic table of contents from headings in the document.Properties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
type | string | Yes | — | Must be "toc" |
id | string | No | — | Unique identifier. Max: 100 chars. |
title | string | No | — | Title displayed above the TOC (e.g., "Table of Contents", "Inhaltsverzeichnis"). Max: 200 chars. |
maxLevel | number | No | 3 | Maximum heading level to include (1–6). E.g., 3 includes h1, h2, h3. |
hyperlink | boolean | No | true | Make TOC entries clickable links to the corresponding headings. |
fontFamily | string | No | — | Font family for the title. Max: 100 chars. |
fontSize | number | No | — | Font size for the title in pt (6–72). |
spacing | object | No | — | Spacing override with before and after in pt (0–100). |
Example usage
List of Figures
Generates an automatic list of all images and charts that have acaption property.
Properties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
type | string | Yes | — | Must be "listOfFigures" |
id | string | No | — | Unique identifier. Max: 100 chars. |
title | string | No | — | Title displayed above the list (e.g., "List of Figures", "Abbildungsverzeichnis"). Max: 200 chars. |
tabStyle | string | No | "dot" | Leader style between caption and page number: "dot", "hyphen", "underscore", "none" |
fontFamily | string | No | — | Font family for the title. Max: 100 chars. |
fontSize | number | No | — | Font size for the title in pt (6–72). |
spacing | object | No | — | Spacing override with before and after in pt (0–100). |
Only images and charts with a
caption property appear in the list of figures. The figure numbering prefix (e.g., “Figure”, “Fig.”, “Abb.”) is controlled by defaults.styles.figureCaption.prefix.Example usage
List of Tables
Generates an automatic list of all tables that have acaption property.
Properties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
type | string | Yes | — | Must be "listOfTables" |
id | string | No | — | Unique identifier. Max: 100 chars. |
title | string | No | — | Title displayed above the list (e.g., "List of Tables", "Tabellenverzeichnis"). Max: 200 chars. |
tabStyle | string | No | "dot" | Leader style between caption and page number: "dot", "hyphen", "underscore", "none" |
fontFamily | string | No | — | Font family for the title. Max: 100 chars. |
fontSize | number | No | — | Font size for the title in pt (6–72). |
spacing | object | No | — | Spacing override with before and after in pt (0–100). |
Only tables with a
caption property appear in the list of tables. The table numbering prefix (e.g., “Table”, “Tab.”, “Tabelle”) is controlled by defaults.styles.tableCaption.prefix.List of Code Listings
Generates an automatic list of all code blocks that have acaption property.
Properties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
type | string | Yes | — | Must be "listOfCodeListings" |
id | string | No | — | Unique identifier. Max: 100 chars. |
title | string | No | — | Title displayed above the list (e.g., "List of Code Listings", "Quellcodeverzeichnis"). Max: 200 chars. |
tabStyle | string | No | "dot" | Leader style between caption and page number: "dot", "hyphen", "underscore", "none" |
fontFamily | string | No | — | Font family for the title. Max: 100 chars. |
fontSize | number | No | — | Font size for the title in pt (6–72). |
spacing | object | No | — | Spacing override with before and after in pt (0–100). |
Only code blocks with a
caption property appear in the list. The listing numbering prefix (e.g., “Listing”, “Code”, “Quellcode”) is controlled by defaults.styles.codeCaption.prefix. Diagram code blocks (e.g., mermaid, plantuml) with captions appear in the List of Figures instead — unless renderAsImage is false. See Diagrams.