1

How can I align the content in the list of figures? When I use \listoffigures, some characters are overlapped.

enter image description here

Milan Tenk
  • 113
  • 4

1 Answers1

1

Apparently, the A.1.1.1 labelling is too wide for the figure number width slot in the LoF

Use the tocloft package and increase the width of the figure numbers, i.e.

\addtolength{\cftfignumwidth}{10pt}

Change 10pt to an appropiate value:

Here's a small example, the \foreach loops are just for quicker setup:

\documentclass{book}

\usepackage{tocloft}
\usepackage{pgffor}

\usepackage{chngcntr}

\counterwithin{figure}{subsection}

\addtolength{\cftfignumwidth}{10pt}

\begin{document}
\listoffigures
\foreach \x in {1,...,5} {
  \chapter{Chapter \thechapter}
  \section{Section }
  \subsection{Subsection }
  \subsubsection{Subsubection }
  \foreach \y in {1,...,4} {%
  \begin{figure}
    \caption{A figure with number \y}
  \end{figure}
  }
}


\end{document}

enter image description here