I use article
document class. I would like to set the indent of the second line in TOC, LOF, LOT, and Bibliography.
\documentclass{article}
\usepackage{graphicx}
\begin{document}
{
\let\oldnumberline\numberline
\renewcommand{\numberline}{\figurename~\oldnumberline}
\listoffigures
}
\newpage
\begin{figure}[!ht]
\includegraphics{example-image-a}
\caption{Blablabla bla blabla blablabla bla blabla blablabla bla blabla blablabla bla blabla blablabla bla blabla blablabla bla blabla}
\end{figure}
\end{document}
But I can't set the second line indent or hanging indent whatever you called.
For example:
LIST OF FIGURES Figure 2.1. BlaBla BlaBla BlaBla BlaBla BlaBla BlaBla BlaBla BlaBla BlaBla BlaBla BlaBla Figure 2.1. BlaBla BlaBla BlaBla BlaBla BlaBla BlaBla BlaBla BlaBla BlaBla BlaBla BlaBla
Best Answer
Screwing up
\numberline
is no good idea -- rather use thetocloft
package and change the macro\cftfigpresnum
and the\cftfignumwidth
length.\cftfigpresnum
holds any content that should be printed before the 'section number', i.e. the figure number here, whereas\cftfignumwidth
is increased in this case to give enough width to add the figure name, which is stored in `\figurename.The relevant macros for the ToC and LoT are
\cftchappresnum
, (chapter, etc. for more see thetocloft
manual) and\cfttabpresnum
and the\cftchapnumwidth
and\cfttabnumwidth