Skip to main content
Index elements automatically generate structured lists from your document content: a table of contents from headings, a list of figures from captioned images/charts, a list of tables from captioned tables, and a list of code listings from captioned code blocks.
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

Example usage

The TOC will list “Introduction”, “Background”, and “Methods” with page numbers.

List of Figures

Generates an automatic list of all images and charts that have a caption property.

Properties

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 a caption property.

Properties

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 a caption property.

Properties

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.

Complete example

A typical academic document structure with all index elements: