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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10330
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: 10330
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