General ⇒ \listoffigures
\listoffigures
The number of the figure and the beginning of the caption overlap a bit for numbers larger than ten.
This doesn't happen with the \tableofcontents, however.
I'm a bit at loss. Is there a special package I need?
is there a way to change the distance between numbers and captions?
- Attachments
-
- Picture 1.png (5.15 KiB) Viewed 8996 times
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
\listoffigures
Code: Select all
\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
Code: Select all
\makeatletter
\renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{3.3em}}
\makeatother
Re: \listoffigures
Phew! Thank you very much, this saved my day!!!!
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
\listoffigures
Code: Select all
\cftsetpnumwidth{2em}
\setlength{\cftsubsecnumwidth}{4em}
\setlength{\cftfignumwidth}{3em}
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
\listoffigures
\setlength{\cftfignumwidth}{3em}. This can also be done with the titletoc package and the command \dottedcontents{figure}[4.5em]{}{3em}{0.75em}. I think it is a better choice if the sectioning commands are redefined with the titlesec package, since both packages cooperate perfectly. Anyway, since the direct approach is so simple, I wonder if it is really worthy to load a package.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: \listoffigures
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10