Toc Macro
Generates a Table Of Content for titles (headings) in a document. Each title has an anchor associated to it. It also shows the TOC in PDF output with working links to the corresponding destinations of the PDF document.Usage
#toc("init" "max" "numbered")Parameters definition
| Name | Optional | Allowed values | Default value | Description |
|---|---|---|---|---|
| init | yes | 1 - 6 | 2 | an initial level where the TOC generation should start at (the default is level 2 because level 1 is considered as a document title) |
| max | yes | 1 - 6 | 6 | maximum level the TOC is generated for |
| numbered | yes | true/false | false | if should generate numbering (1.2.3 format) for titles (see also Note 2) |
Example
#toc("" "" "") \1 Level 1 \1.1 Level 2
Result
Version 6.1 last modified by VincentMassol on 19/06/2008 at 22:13
Comments: 0