Chapter 70

Table of Contents and Export Defaults

Contents & Labels#

These settings apply to every export format: PDF, Word, HTML and the rest.

ControlWhat it does
Add a table of contents to every exportPuts a contents list at the top of each export.
Replace a [TOC] line with the listA line that is only [TOC] becomes the list of headings in Preview and every export.
Number headings (1., 1.1.)Numbers headings in the output. Heading labels, below, replace plain numbering.
TitleWhat the list is called, for example "Contents" or "Instructions". Empty uses "Table of Contents".
List headings down to levelDepth, 1 to 6. Level 1 lists only the top headings; level 6 lists them all.
IndentationThe indent in points for each level.
Link each heading back to its contents entryAdds back-links from headings to their entries.
List only headings below the [TOC] lineLeaves out headings above the [TOC] line.

Heading labels#

Label headings gives each level its own label, for example "Part I -" or "Chapter 3:". Each level has a template. In a template, # is the next number and @ the next capital letter; a label can use one of them, not both. Write \# or \@ to start counting again each time a shallower heading appears; bare, it keeps counting through the document. Letters and Digits 0 to 9 set the characters used for lettering and numbering. After the last letter, letters double: Y, Z, AA, AB.

Export Defaults#

ControlWhat it does
Render ThemeThe default theme for Preview and exports.
Format, File extension, ConverterInformation about each export format. All are produced by a built-in converter.
PageThe paper size, orientation and margins used for printing and for every PDF, PDF Archive and Word export (Chapter 64).
Header template, Footer templateText for the top and bottom of each page. Variables: ${title}, ${author}, ${pageNo}, ${pageCount} and ${today}. For example, the footer Page ${pageNo}.
AuthorThe author name used by ${author} and in the document's metadata.
Page break between top-level headingsStarts each top-level heading on a new page.