Links

TeXShop:
A TeX previewer for Mac OS X
TeX-Soft:
An archive of TeX software
CTAN Archive
A host of the Comprehensive TeX Archive Network
/pub/tex
.

LaTeX: Table of Contents

Table of Contents

All auto-numbered headings get entered into the Table of Contents (ToC) automatically. You don't have to print the ToC, but if you want to, just include the ToC command where you want the ToC printed (generally after the \maketitle command and before the Abstract or Summary). The Table of Contents command is:
\tableofcontents

To set the depth for numbering for the Table of Contents, use the command:
\setcounter{tocdepth}{2}

With the command above, substitute the depth you desire for the 2. For more on section numbering, please see the information on sections and numbering here.

Note: Entries for the ToC are recorded each time you process your document, and reproduced the next time you process it, so make sure to run LaTeX twice to make sure that all page numbers and headings are listed correctly.

To include the references/works cited/bibliography in your Table of Contents, right before the bibliography command, use the command:
\addcontentsline{toc}{section}{References}

To automatically list all of your tables in the Table of Contents, after the \tableofcontents command, use the command:
\listoftables

To automatically list all of your figures in the Table of Contents, after the \tableofcontents command, use the command:
\listoffigures

You can also add extra lines to the ToC or to force extra unnumbered section headings to be included. For example, if you wanted to add an entry called Preface, and you didn't want the Preface to be numbered, you'd use these commands:
\subsection*{Preface}
\addcontentsline{toc}{subsection}{Preface}

This command will format an unnumbered ToC entry for `Preface' in the `subsection' font style. You can use the same mechanism to add lines to the List of Figures or List of Tables by substituting lof or lot for toc.

 
C. Sean Bohun