GeneralHow do I generate table of contents?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

How do I generate table of contents?

Post by bazman »

Hi there,

I have been using the structure section{},subsection{},subsubsection{}.

I now want to generate a table of contents based on these.

How can I do this.

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
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

How do I generate table of contents?

Post by gmedina »

Hi,

in the body of your document, use

Code: Select all

\tableofcontents
to produce the ToC, and, in the preamble, change the value of the tocdepth counter (if necessary) to control the level down to which the heading information will be ncluded in the ToC:

Code: Select all

\setcounter{tocdepth}{3}
Compile your document twice.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

Re: How do I generate table of contents?

Post by bazman »

wow that is factastic!

the more I use latex the more I love it!
Post Reply