Next: , Up: Tables of contents


23.1.1 \addcontentsline

The \addcontentsline{ext}{unit}{text} command adds an entry to the specified list or table where:

ext
The extension of the file on which information is to be written, typically one of: toc (table of contents), lof (list of figures), or lot (list of tables).
unit
The name of the sectional unit being added, typically one of the following, matching the value of the ext argument:
toc
The name of the sectional unit: part, chapter, section, subsection, subsubsection.
lof
For the list of figures.
lot
For the list of tables.

entry
The actual text of the entry.

What is written to the .ext file is the command \contentsline{unit}{name}.