GeneralRemoving indents in the List of Figures descriptions...

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Number_6
Posts: 5
Joined: Tue Nov 25, 2008 5:35 pm

Removing indents in the List of Figures descriptions...

Post by Number_6 »

Hello good people!

I am working on my thesis using a "custom" document class; I thought that since someone else went through the trouble of creating a template that fits the university's formatting standards, it would make my life much easier... While I'm happy with most of it, I found myself having to make quite a few changes to bring it to what I want. At first I wasn't too big on doing that, since I'm learning as I go, but now that I'm into it, I'd like to get to the end! One of the things I can't seem to be able to fix is that in the "List of Figures", when the caption/description occupies more than one line of text, the second (and subsequent) line(s) is (are) indented. Is there an easy way to fix this? Here is the section of the .cls file I'm using that deals with the List of Figures:

% \listoffigures generates the "List of Figures" page
\newcommand\listoffigures{
\clearpage
\addcontentsline{toc}{preface}{\protect\listfigurename}
\begin{center}
{\chaptersize\chapterfont \listfigurename}
\end{center}
% {\normalsize Figure \hfill Description \hfill Page \par}
\@starttoc{lof}
\clearpage
}
% The next command tells how each entry should look in the List of Figures
\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}


I tried to compare it with other "standard" document class files (e.g. "book.cls"), but I quickly find myself lost... I attached a picture that illustrates the results obtained.

Any help on the topic would be much appreciated!

Thanks,

Martin
Attachments
Illustration of the indentation in the LoF.
Illustration of the indentation in the LoF.
Sample_LoF_with_indent.jpg (10.24 KiB) Viewed 3134 times

Recommended reading 2024:

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

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

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

Re: Removing indents in the List of Figures descriptions...

Post by Juanjo »

Add \par right before \@starttoc{lof}.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Number_6
Posts: 5
Joined: Tue Nov 25, 2008 5:35 pm

Re: Removing indents in the List of Figures descriptions...

Post by Number_6 »

Thank you so much Juanjo! Worked perfectly!
Post Reply