O'Reilly logo

LaTeX Beginners Guide by Stefan Kottwitz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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} ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required