Contents Previous Next

## %%toc

The `%%toc` macro expands to the document's Table of Contents. It is useful for you to specify exactly where you want the TOC to be placed. You can even use the macro more than one time and place the TOC at the end of the document also, for example. This Guide is using %%toc to position the TOC.

Different from the other macros, this one does not accept a format string and has its own special rules:

- Valid at the document Body Area only
- Must be alone on the line (leading and trailing spaces are allowed)
- Must be used together with --toc command line option, or it will be ignored
- The default automatic TOC positioning/formatting is disabled when a %%toc is found

Contents Previous Next