Access Keys:

If you have a section that you don't want placed in your table of contents AND you don't want that section actually numbered in your document, you can simply use an asterik in your section heading. Here is an example:

```\section*{Title here}
```

This will produce a section heading called "Title here", except that it won't be numbered, and it will not appear in the table of contents. The next use of \section will produce the following number correctly, i.e. it will not "skip over" whatever this section would have been numbered. The same thing can be done for any sectioning command, such as \chapter, \subsection, or \paragraph.

If you wish to add a line to your table of contents (for example, your References section, if you've written one manually), you can use the \addcontentsline command described on page 159 of the LaTeX manual. In short, its syntax is as follows:

```    \addcontentsline{file}{section_unit}{entry}
```

This command can be used to edit files for table of contents, list of figures, or list of tables. To add a line to the table of contents, use "toc" for file, and "chapter" for section_unit, and place the command in your document immediately after the section heading. For example:

```    \chapter*{References}
```

adds a line at the current position of your .toc file labelled "References", with the current page number. If you want the section to be numbered, you would do:

```    \addcontentsline{toc}{chapter}{\protect\numberline{8}{References}}
```

This would label it as "Chapter 8", so the line in the contents would read like any other normal entry.

If you want to simply have a section that is not numbered, but still appears in your table of contents, just combine the use of the asterik in the sectioning command and the \addcontentsline command.

## IS&T Contributions

October 02, 2012

### Get Help

Request help
from the Help Desk
Report a security incident
to the Security Team
Labels:
olc-latex olc-latex Delete