Add Macro: Table of Contents ("toc")

Add Macro: Table of Contents ("toc")

The macro name for Table of Contents is toc.
If the Macro parameters field is left empty, the macro will use its default settings.

Example: Setting Parameters for the TOC Macro

Field

Value

Field

Value

Macro name

toc

Macro parameters

<ac:parameter ac:name="minLevel">1</ac:parameter> <ac:parameter ac:name="maxLevel">2</ac:parameter> <ac:parameter ac:name="include" /> <ac:parameter ac:name="outline">true</ac:parameter> <ac:parameter ac:name="indent">5px</ac:parameter> <ac:parameter ac:name="exclude" /> <ac:parameter ac:name="type">flat</ac:parameter> <ac:parameter ac:name="separator">brackets</ac:parameter> <ac:parameter ac:name="class" /> <ac:parameter ac:name="printable">false</ac:parameter>

Screenshot of the example:

image-20250518-041705.png

Tip: To check which parameters a macro supports—and the values used for each—open a page that already contains the macro, then click “...” → Advanced details → View Storage Format.