0

How can I change the style of list of figure to make it equal to table of contents as shown in the picture below ? I'm using \documentclass{article} and creating list of figure with code \listoffigure .

enter image description here

lockstep
  • 250,273
Freitas
  • 393

1 Answers1

4

The look of a lof like the toc can be achieved via the \cftfig.... macros from tocloft package. Basically this requires only two of those commands:

  • \cftfigindent -- the indentation of figure entries
  • \cftfigfont -- the font specification

If the lof should be splitted in sections, please have a look on this answer of mine: List of tables (or figures) by section - LaTeX

\documentclass[12pt]{article}
\usepackage{caption}%
\usepackage{tocloft}


\renewcommand{\cftfigindent}{0pt}
\renewcommand{\cftfigfont}{\bfseries}


\begin{document}

\tableofcontents

\listoffigures

\section{First -- with no pagebreak}

\begin{figure}
\caption{Dummyfigure 1}
\end{figure}

\section{Second with pagebreak}%

\begin{figure}
\caption{Dummyfigure 2}
\end{figure}


\end{document}

enter image description here

  • It is work friend but after I used \usepackage{tocloft} the size and type of font of my title have changed too. The name 'Sumário' and 'lista de figuras' are so big now. What can I do to solve this ? – Freitas Dec 27 '14 at 20:10
  • 1
    @Freitas: You did not provide any document to work with ... It's hard to guess where I should set the fontsize change –  Dec 27 '14 at 20:14
  • And one more question. You use \renewcommand{\cftfigindent}{0pt} to config the list of figure, so how can I do the same thing to config the list of tables ? Thx for your help =) – Freitas Dec 27 '14 at 20:15
  • \renewcommand{\cfttabindent}{0pt}, see the corresponding section 2.3 of the tocloft manual please –  Dec 27 '14 at 20:17
  • I'm learning now how to work with Latex, so my code is very messy and confusing. But I will try to identify where I am setting the size of the table of contents font and I will study the manual. Thx for your help =) – Freitas Dec 27 '14 at 20:22