Menu

HowTo_addlistof

How to create a list of figures or a list of tables

If a list of tables and a list of figures are desired, you insert—usually after tableofcontents—the appropriate instructions:

\listoffigures% List of figures
\listoftables% List of tables

Of course, in order for the lists to be filled, appropriate \caption commands are also needed in the figure or table environments, for example:

\begin{figure}
  \centering
  \rule{1cm}{1cm}
  \caption{a black square}
  \label{fig:square}
\end{figure}
\begin{table}
  \centering
  \begin{tabular}{lcr}
  \hline
  left & center & right \\
  one & two & three \\
  three & columns & table \\
  \hline
  \end{tabular}
  \caption{an example table}
  \label{tab:example}
\end{table}

It should be noted that after changes that affect the lists, two or three LaTeX runs are necessary until all cross-references and all lists are correct.

By the way, using the \captionof statement of the KOMA-Script classes, even not floating figures or tables can be captioned. If headings instead of signatures should be used, not only the \caption statement has to be set accordingly above the figure or table, but the formatting has to be adjusted with the help of option captions. See the KOMA-Script manual for more details.


Related

Wiki (English): HowTo_Template

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.