Page LayoutNumber Width Adjustment in LoF

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
ChrisDanger
Posts: 13
Joined: Tue Dec 07, 2010 5:25 pm

Number Width Adjustment in LoF

Post by ChrisDanger »

Hi all,

I'm having trouble with not being able to adjust the left-hand margin in the list of figures. Here's a working example of why I want to do this:

Code: Select all

\documentclass{thesis}

\begin{document}

  \listoffigures

  \addtocounter{chapter}{10}
  \addtocounter{figure}{39}

  \begin{figure}
    \centering
    \rule{5cm}{3cm}
    \caption{Help! I need more space}
  \end{figure}

\end{document}
Clearly I need to make the chapter/section number margin wider. As far as I can see the tocloft package specifies adjustments for all the margins except this one. I've done all the searching I can handle and found no help. :| A solution would be greatly appreciated.

Kind Regards,
Chris
Last edited by ChrisDanger on Wed Sep 07, 2011 5:37 pm, edited 1 time in total.

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Number Width Adjustment in LoF

Post by localghost »

ChrisDanger wrote:[…] As far as I can see the tocloft package specifies adjustments for all the margins except this one. I've done all the searching I can handle and found no help. […]
Actually Section 2.3 of the tocloft manual has all the information you need.

Code: Select all

\documentclass{report}
\usepackage{tocloft}

\setlength{\cftfignumwidth}{3em}
\setlength{\cfttabnumwidth}{3em}

\begin{document}
  \listoffigures

  \addtocounter{chapter}{10}
  \addtocounter{figure}{39}

  \begin{figure}[!ht]
    \centering
    \rule{5cm}{3cm}
    \caption{Help! I need more space}
  \end{figure}
\end{document}

Thorsten
ChrisDanger
Posts: 13
Joined: Tue Dec 07, 2010 5:25 pm

Re: Number Width Adjustment in LoF

Post by ChrisDanger »

Thanks Thorsten. To the rescue again. Not sure how I missed that. :oops:
Post Reply