GeneralAppendix and Table of content

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
MikeBieb
Posts: 4
Joined: Thu May 26, 2011 2:40 pm

Appendix and Table of content

Post by MikeBieb »

Hello,

I would like that the sections of my appendix do not appears in the TOC.
But I would like that the toc shows all the others items (chapter, sections, subsections) of the document.

What do I have to do ?

thank you !!
Last edited by MikeBieb on Thu May 26, 2011 7:15 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Appendix and Table of content

Post by Stefan Kottwitz »

Hi,

you could use starred versions of sectioning commands:

Code: Select all

\section*{An appendix section}
This way there's no table of contents entry for the section. There's also no section number, however it's common not to number sections if they are not in the table of contents. So, references resp. bibliography, index etc. are usually not numbered. Numbering isn't done just because numbers look nice or showing progress in the text, but for referencing in an index such as the table of contents is, therefore numbering is not very necessary if they are not listed for look-up in the TOC.

Stefan
LaTeX.org admin
MikeBieb
Posts: 4
Joined: Thu May 26, 2011 2:40 pm

Re: Appendix and Table of content

Post by MikeBieb »

Thank you Stephan,
But the problem is that I want to have the numbers of the sections.
Actually, I would like to make a toc for the appendix at the beginning of this one (using minitoc for example).
I don't want it in the toc of the doc because the appendix is very big.

does it exist a command that do not include the section in the toc ?

thank you !
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Appendix and Table of content

Post by Stefan Kottwitz »

You could modify the tocdepth counter, such as by

Code: Select all

\addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
The tocvsec2 provides better ways for such customizations.

Stefan
LaTeX.org admin
Post Reply