[Tex/LaTex] Turn off List of Figures for Appendix material

appendicesfloatstable of contents

How do I prevent figures in the Appendix from appearing in the list of figures?

It seems that after the command \appendix the numbering automatically starts.

I've tried leaving the first part in the caption command blank like this:

\caption[ ]{First figure caption.}

but I still get a number in the List of Figures:

A.1 ……………………23

I have also tried \captionsetup{list=no} which seems to have no effect at all.
I want nothing in the list of figures for appendix material.

Best Answer

Set the tocdepth counter to 0 for the appendix. (See also the answers to Numbered section hidden from the ToC.)

Note that while I use the article class in the following MWE, the solution also works for classes featuring the \chapter command (notably, book and report) because figure and table floats always feature LoF/LoT level 1.

\documentclass{article}

\begin{document}

\listoffigures

\section{foo}

\begin{figure}[ht!]
\centering
\rule{1cm}{1cm}
\caption{A figure}
\end{figure}

\appendix 
\addtocontents{lof}{\protect\setcounter{tocdepth}{0}}

\section{bar}

\begin{figure}[ht!]
\centering
\rule{1cm}{1cm}
\caption{An appendix figure}
\end{figure}

\end{document}

enter image description here

EDIT: As cmhughes points out, an alternative is to load the caption package and to replace

\addtocontents{lof}{\protect\setcounter{tocdepth}{0}}

with

\captionsetup{list=no}

in the above example.