Discussion:
subfloat caption not showing in list of figures
(too old to reply)
ash
2006-02-02 06:48:20 UTC
Permalink
I cannot get entries for subfloats to show up in the list of figures.
I've read all the documentation, and it seems that the following code
should do it. But it does not.

\documentclass{book}
\usepackage{subfig}
\usepackage{graphicx}

\begin{document}
\listoffigures
\begin{figure}[htb]\centering
\subfloat[caption for first subfigure]{\includegraphics{myFig}}\\
\subfloat[caption for second subfigure]{\includegraphics{myOtherFig}}
\caption{Caption for the whole figure}
\end{figure}
\end{document}

I've also tried providing both optional arguments to subfloat, which
explicitly specifies the entry for a list of figures. It still does not
work. What am I missing? I would appreciate any help. Thank you.
Axel Sommerfeldt
2006-02-02 09:57:05 UTC
Permalink
Post by ash
I cannot get entries for subfloats to show up in the list of figures.
I've read all the documentation, and it seems that the following code
should do it. But it does not.
\documentclass{book}
\usepackage{subfig}
\usepackage{graphicx}
\setcounter{lofdepth}{2}

(or \usepackage[lofdepth=2]{subfig} if you already have v1.3 of the subfig
package installed)
Post by ash
\begin{document}
\listoffigures
\begin{figure}[htb]\centering
\subfloat[caption for first subfigure]{\includegraphics{myFig}}\\
\subfloat[caption for second subfigure]{\includegraphics{myOtherFig}}
\caption{Caption for the whole figure}
\end{figure}
\end{document}
I've also tried providing both optional arguments to subfloat, which
explicitly specifies the entry for a list of figures. It still does not
work. What am I missing? I would appreciate any help. Thank you.
HTH,
Axel
ash
2006-02-02 15:50:13 UTC
Permalink
That was easy enough! I thought the default value of lofdepth was 2 but
apparently not. Thank you.

Loading...