Page LayoutSpacing Problem in LoF

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Spacing Problem in LoF

Post by Cham »

I'm experiencing a small problem with the horizontal spacing in the list of figures, as shown on the picture below :
ToF.jpg
ToF.jpg (46.44 KiB) Viewed 2174 times
In some other cases, the figure's caption is so large that I get some heavy bloc of text (the full caption, actually) in the list of figures. I'm not sure this is appropriate.

What do you suggest to solve this ?

Here's my current preamble setup for the list of figures :

Code: Select all

\setlength{\cftfignumwidth}{1.25in}
\renewcommand{\cftfigpresnum}{\figurename\ }
\renewcommand{\cftfigaftersnum}{~:}

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Spacing Problem in LoF

Post by Stefan Kottwitz »

I would use the optional argument of \caption to get a shorter caption version for the list of figures:

Code: Select all

\caption[short version for LoF]{longer version for the text}
Stefan
LaTeX.org admin
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Re: Spacing Problem in LoF

Post by Cham »

Ahaa ! Good trick !

Thanks a lot for that one ! :)
Post Reply