I have figures in my Appendix which include captions and thus are automatically collected and entered into the list of figures. I do not want the figures in the appendix to be listed (everywhere else is fine) and I can't seem to find a way to suppress content/figures from appearing in the list of figures. Is there anyone who knows how to do this?
Thanks,
-Ryan
General ⇒ Remove Entries From lot and lof
NEW: TikZ book now 40% off at Amazon.com for a short time.

Remove Entries From lot and lof
Hi drswsh,
Load the caption package and use the optional argument of the \caption command:
Load the caption package and use the optional argument of the \caption command:
Code: Select all
\caption[Entry in corresponding list]{Actual caption}
Code: Select all
\documentclass{report}
\usepackage{caption}
\begin{document}
\listoffigures
\begin{figure}
\rule{5cm}{2cm}
\caption{test figure 1.}
\label{fig:test1}
\end{figure}
\begin{figure}
\rule{5cm}{2cm}
\caption[]{test figure 2.}
\label{fig:test2}
\end{figure}
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Remove Entries From lot and lof
You could use the starred version of the \caption command (\caption*) if you also don't want the mentioned figures to be numbered. But the caption package offers another way to stop list entries globally.drswsh wrote:[...] I do not want the figures in the appendix to be listed (everywhere else is fine) and I can't seem to find a way to suppress content/figures from appearing in the list of figures. [...]
Code: Select all
\captionsetup{list=no}
Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Remove Entries From lot and lof
Wow, quick response. Thanks. I ended up using the \captionsetup{list=no} command before the \appendix---that's exactly what I need. It allows me to keep referencing/referring to those figures in the appendix but not have them listed in the lof. Again thanks to both of you.