Chapter 70
Table of Contents and Export Defaults
Contents & Labels#
These settings apply to every export format: PDF, Word, HTML and the rest.
| Control | What it does |
|---|---|
| Add a table of contents to every export | Puts a contents list at the top of each export. |
| Replace a [TOC] line with the list | A 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. |
| Title | What the list is called, for example "Contents" or "Instructions". Empty uses "Table of Contents". |
| List headings down to level | Depth, 1 to 6. Level 1 lists only the top headings; level 6 lists them all. |
| Indentation | The indent in points for each level. |
| Link each heading back to its contents entry | Adds back-links from headings to their entries. |
| List only headings below the [TOC] line | Leaves 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#
| Control | What it does |
|---|---|
| Render Theme | The default theme for Preview and exports. |
| Format, File extension, Converter | Information about each export format. All are produced by a built-in converter. |
| Page | The paper size, orientation and margins used for printing and for every PDF, PDF Archive and Word export (Chapter 64). |
| Header template, Footer template | Text for the top and bottom of each page. Variables: ${title}, ${author}, ${pageNo}, ${pageCount} and ${today}. For example, the footer Page ${pageNo}. |
| Author | The author name used by ${author} and in the document's metadata. |
| Page break between top-level headings | Starts each top-level heading on a new page. |