Time for action – creating a list of diagrams

Suppose all of our figures are diagrams. We shall avoid the term figure and we will typeset a list of diagrams:

  1. Open our current example. Add these lines to your preamble:
    \renewcommand{\figurename}{Diagram}
    \renewcommand{\listfigurename}{List of Diagrams}
  2. Right after \tableofcontents, add:
    \listoffigures
  3. Add a diagram somewhere in Chapter 1:
    \begin{figure}
    \centering
    \fbox{Diagram placeholder}
    \caption{Enterprize Organizational Chart}
    \end{figure}
  4. In the second part, in the third chapter, we'd like to add network design diagrams. Let's mark that in the LOF and let the diagrams follow:
    \addtocontents{lof}{Network Diagrams:} \begin{figure} \centering \fbox{Diagram placeholder} \caption{Network overview} \end{figure} ...

Get LaTeX Beginners Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.