LaTex, How to include "List of Tables" and "List of Figures" in the "Table of Contents"

24,338 views
Skip to first unread message

Biru Zhou

unread,
Feb 7, 2010, 10:13:55 PM2/7/10
to LaTeX Users Group
Hello,

I am a beginner user of LaTex. I am writing my thesis using the
{report} document class.

Does anyone know how to INCLUDE the "List of Tables" and "List of
Figures" in the "Table of Contents"?

Thank you!!

Cheers,

Biru

Werner Grundlingh

unread,
Feb 8, 2010, 12:12:00 AM2/8/10
to LaTeX Users Group

Biru,

Consider reading the following posts on comp.text.tex:
http://groups.google.com/group/comp.text.tex/browse_thread/thread/46d445edafacaf8a?hl=en
http://groups.google.com/group/comp.text.tex/browse_thread/thread/db2a0395518ea548?hl=en

There are many others, but they all suggest the same solution:
...
\tableofcontents
\cleardoublepage
\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures
\cleardoublepage
\addcontentsline{toc}{chapter{\listtablename}
\listoftables
...

Alternatively, there is the tocloft package, available online via CTAN
from:
http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=tocloft
Read the package documentation for more information on its
functionality and use.

Werner

Manuel Castro Avila

unread,
Feb 8, 2010, 1:11:01 PM2/8/10
to latexus...@googlegroups.com
Hello Biru,

You try to use the command \listoffigures to generate the "List of figures" and \listoftables to generate  tables..???

Manuel


2010/2/8 Biru Zhou <biru...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.


Biru Zhou

unread,
Feb 8, 2010, 5:05:46 PM2/8/10
to latexus...@googlegroups.com
Hello, everyone

I do try the package{tocloft}.

WhAT I WANT TO DO WITH MY ToC is:

Table of Contents
List of Tables.......................................(some roman number)
List of Figures......................................(some roman number)
Introduction..........................................(some arabic number)
Method................................................(some arabic number).

Now, in my report.cls file, I managed to put "List of Tables" and
"List of Figures" at the end of my ToC using the following codes:

\setcounter{tocdepth}{3}
\tableofcontents
\contentsline{section}{List of Tables}{vi}
\contentsline{section}{List of Figures}{vii}
\listoftables
\listoffigures

I also tried to move the third and the fouth lines around to make them
go to the beginning of the table, but I haven't had any luck doing it
yet.

I would much appreciated if anyone could help me moving "List of
Tables" and "List of Figures" to the beginning of the Table!

Thanks!!

Cheers,

Biru

> --
> You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
> To post to this group, send email to latexus...@googlegroups.com.
> To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.
>
>

--
Biru loves La vie en rose

Gildas Cotomale

unread,
Feb 9, 2010, 3:23:11 AM2/9/10
to latexus...@googlegroups.com
>                                 Table of Contents
> List of Tables.......................................(some roman number)
> List of Figures......................................(some roman number)
> Introduction..........................................(some arabic number)
> Method................................................(some arabic number).
>

Why don't you simply use:
\listoffigures
\listoftables
\tableofcontents

But, it's better when it comes after:
\tableofcontents
\listoffigures
\listoftables

Trust LaTex: i'm not sure LoT and LoF can be candidates of the ToC
like sections and subsection...
However, if you really need to do things that way (i can't and don't
want to understand why) i think that it's better to put those lists at
the end of your document (and also in your ToC)

Table of Contents


Introduction..........................................(some arabic number)
Method................................................(some arabic number).

...


List of Tables.......................................(some roman number)
List of Figures......................................(some roman number)

And guess what? you may simply use sections for that purpose (but not
sure it will give roman numbers in the ToC, i didn't try my
suggestion):
\appendix
\section*{List of Tables}
\addcontentsline{toc}{section}{List of Tables}
\listoftables
\section{List of Figures}
\addcontentsline{toc}{section}{List of Figures}
\listoffigures

Beware the appendix command: when you switch, you cannot back to
ordinary sections... But for funnier appendices, there is a same named
package:
\usepackage[toc,page]{appendix} % option toc let you add it to ToC not
in the usual separate way
...
\begin{appendices}
\section{List of Tables}
\listoftables
\section{List of Figures}
\listoffigures
\end{appendices}

Hope that helps :-/

--
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=appendix

Donald Arseneau

unread,
Feb 9, 2010, 5:59:14 AM2/9/10
to LaTeX Users Group
On Feb 8, 2:05 pm, Biru Zhou <biru.z...@gmail.com> wrote:
>
>                                  Table of Contents
> List of Tables.......................................(some roman number)
> List of Figures......................................(some roman number)

I don't know why people are having trouble reading your question.

See http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tocbibind

Thus, for list of tables

\cleardoublepage
%optional for hyperref:
\phantomsection
\addcontentsline{toc}{chapter}{List of Tables}
\listoftables

Biru Zhou

unread,
Feb 9, 2010, 8:32:11 AM2/9/10
to latexus...@googlegroups.com
Thanks, Donald. It works. Thanks a lot!

Biru Zhou

unread,
Feb 9, 2010, 8:35:45 AM2/9/10
to latexus...@googlegroups.com
Hi, Gildas

There is no better way to do this. There is only the way to do it
because there is a guideline I have to follow for my submission. The
LoT and LoF have to be at the beginning of the ToC. Anyway, Donald
Arseneau's solution works.

Thank you for your comments on the appendix though, that was something
I want to do too.

Thanks!

Sincerely,

Biru

Reply all
Reply to author
Forward
0 new messages