## Friday, May 29, 2009

LaTeX has an ability to produce table of contents automatically for the whole document. Table of contents contain the section numbers and corresponding headings, together with the page numbers on which they begin. This article gives some introduction on generating and printing the table of content, as well as list of figures and tables in LaTeX.

\tableofcontents
\setcounter{tocdepth}{the number of depth}
\subsection*{Preface}
To include reference or bibliography entry in table of contents, use the following command right before the bibliography command.
To produce roman style page number for the table of contents and arabic style page number for the rest of the documents, use the following command.
\pagenumbering{roman}
\tableofcontents
\newpage
\pagenumbering{arabic}
\tableofcontents
The entries in these lists use the entries from the `\caption` command in the figure and table environments.