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:
Open our current example. Add these lines to your preamble:
\renewcommand{\figurename}{Diagram} \renewcommand{\listfigurename}{List of Diagrams}
Right after
\tableofcontents
, add:\listoffigures
Add a diagram somewhere in Chapter 1:
\begin{figure} \centering \fbox{Diagram placeholder} \caption{Enterprize Organizational Chart} \end{figure}
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} \begin{figure} \centering \fbox{Diagram placeholder} \caption{WLAN Design} \end{figure}
Typeset twice to get the document and the list:
What just happened?
We renamed the figures and the list heading by redefining LaTeX macros. At the end of...