0

I need to add a couple of pages at the front of my report that should not appear in the table of contents.

What is the best way to do this?

I thought that maybe I could write the section normally using \section etc and then remove it from the TOC manually? If so how can I remove it.

Another option would be to dispense with the \section command so that TOC has nothing to find. But the problem then is how to I ensure the header used on that page is consistent with the rest of the document?

Baz

  • 2
    You want those \sections to be numbered or numberless? – U.Martinez-Corral Sep 21 '14 at 14:46
  • 1
    \section*{This should not appear} will not appear – user31729 Sep 21 '14 at 14:46
  • Yes those sections should be numberless and I don't want the section name to appear in the TOC – Bazman Sep 21 '14 at 14:47
  • @Bazman: Then always use the starred version of the corresponding structuring command, i.e. \section*{Your section title} but this will lead to unnumbered sections in the text too! – user31729 Sep 21 '14 at 14:49
  • 1
    Which document class do you use? – Mico Sep 21 '14 at 14:58
2

As the comments mention, use the starred version of \section:

\documentclass{article}

\begin{document}
\tableofcontents
\section{Appears!}
\section*{Won't Appear}
\section{Appears!}
\end{document}

output

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.