GeneralDifferent kind of \listoffigures problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
f3rmi
Posts: 1
Joined: Fri Aug 29, 2008 5:51 am

Different kind of \listoffigures problem

Post by f3rmi »

I have looked everywhere for this and all my LaTeX source friends are on opposite schedules.

I am working on my dissertation with a specific .cls file for my school. I have a LARGE list of figures (200-300) and when the table of contents is generated with the list of figures it comes out like this:

Image

This is what's in my .cls file for the list of figures section:

\renewcommand\listoffigures{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\listfigurename}%
\addcontentsline{toc}{chapter}{\listfigurename}
\@mkboth{\MakeUppercase\listfigurename}%
{\MakeUppercase\listfigurename}%
\begin{singlespacing}
\@starttoc{lof}%
\end{singlespacing}
\if@restonecol\twocolumn\fi}

So my question is, what is it that I need to do to make the figures in the list above 100 not overlap the figure caption?

Chris

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Different kind of \listoffigures problem

Post by Juanjo »

The relevant code is not that you included, but that related to the definition of \l@figure. By default, in the book class, it is

Code: Select all

\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
The space left to write numbers in the LOF is the third mandatory argument of \@dottedtocline. So, adding this to the preamble of your document may do the trick:

Code: Select all

\makeatletter
\renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{3.3em}}
\makeatother
You may change 3.3 em by any other suitable length. See this related thread, where the tocloft package is also mentioned as a good way to solve this problem. A different alternative is the titletoc package.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Post Reply