GeneralRemove Entries From lot and lof

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
drswsh
Posts: 2
Joined: Tue Jul 22, 2008 4:21 am

Remove Entries From lot and lof

Post by drswsh »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Remove Entries From lot and lof

Post by gmedina »

Hi drswsh,

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,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Remove Entries From lot and lof

Post by localghost »

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. [...]
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.

Code: Select all

\captionsetup{list=no}
Add this line at the point from where you don't want any entries in the LoF or LoT. In your case this should be right before (or after) the \appendix command.


Best regards and welcome to the board
Thorsten¹
drswsh
Posts: 2
Joined: Tue Jul 22, 2008 4:21 am

Re: Remove Entries From lot and lof

Post by drswsh »

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.
Post Reply