Customizing a "List of Tables"

802 views
Skip to first unread message

joe

unread,
Apr 13, 2010, 6:10:40 PM4/13/10
to LaTeX Users Group
Hi All;
I'm using the phd thesis document class, and I've gotten down to the
very last stage before submission - and they want me to change the
formatting on the List of Tables (and List of Figures)!

The default output gives the table number, description and page
number:

"1.1 Blah blah blah ........................8"

and it should (apparently) read:
"Table 1.1 Blah blah blah ......................8"

Where do I go digging to customize the list of table and list of
figures format? Or is there something I can put in the preamble to do
this for me?

joe

unread,
Apr 13, 2010, 11:51:18 PM4/13/10
to LaTeX Users Group
Let me edit my post after a few hours of searchig...

I've added the tocloft package and the following command:
\renewcommand{\cfttabpresnum}{Table }
and now I need to fiddle with the spacing in the list of tables so
that the text and section number don't run into the table caption.
However a new problem has appeared: the PDF output no longer has Table
of Content hyperlinks for the Table of Contents, the List of Tables,
and the List of Figures. Any suggestions are welcome.

Peter Flynn

unread,
Apr 14, 2010, 8:38:12 AM4/14/10
to latexus...@googlegroups.com
On Wed, Apr 14, 2010 at 4:51 AM, joe <jose...@gmail.com> wrote:
Let me edit my post after a few hours of searchig...

I've added the tocloft package and the following command:
\renewcommand{\cfttabpresnum}{Table }
 and now I need to fiddle with the spacing in the list of tables so
that the text and section number don't run into the table caption.
However a new problem has appeared: the PDF output no longer has Table
of Content hyperlinks for the Table of Contents, the List of Tables,
and the List of Figures.  Any suggestions are welcome.

Check the documentation. I think hyperref has to be loaded last of all (or something like that).

///Peter
 

joe

unread,
Apr 14, 2010, 1:21:09 PM4/14/10
to LaTeX Users Group
Yup. Hyperref has to be loaded last, and to get the Table of Contents
in the pdf I also had to make sure the [titles] option was used with
tocloft. Here's the final code (with the proper spacing):

\usepackage[titles]{tocloft}
\renewcommand{\cfttabpresnum}{Table }
\renewcommand{\cftfigpresnum}{Figure }
\setlength{\cfttabnumwidth}{60pt}
\setlength{\cftfignumwidth}{60pt}

Hope this thread helps anyone with a similar problem...Good news is
that the thesis is in!


On Apr 14, 5:38 am, Peter Flynn <anglebrac...@gmail.com> wrote:

Kien Nguyen

unread,
Aug 3, 2013, 10:51:35 AM8/3/13
to latexus...@googlegroups.com
Hello,
Could you do the same with the List of Algorithms as well, i.e.,
I am looking for something like:
Algorithm 1. "Name of alg1"
Algorithm 2. "Name of alg2"
Instead of:
1. "Name of alg1"
2. "Name of alg2"
Thank you

Werner Grundlingh

unread,
Aug 3, 2013, 2:46:53 PM8/3/13
to latexus...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages