Next: Include Files, Previous: Export Settings, Up: Exporting [Contents]
The table of contents includes all headlines in the document. Its
depth is therefore the same as the headline levels in the file. If
you need to use a different depth, or turn it off entirely, set the
org-export-with-toc variable accordingly. You can achieve the same
on a per file basis, using the following ‘toc’ item in ‘OPTIONS’
#+OPTIONS: toc:2 (only include two levels in TOC) #+OPTIONS: toc:nil (no default TOC at all)
Org normally inserts the table of contents directly before the first headline of the file.