Graphics, Figures & TablesPreventing multiple listing of multi-page figure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
dcbob
Posts: 6
Joined: Mon Dec 21, 2009 4:19 pm

Preventing multiple listing of multi-page figure

Post by dcbob »

I'm using the graphicx, subfig, and caption packages to produce a lovely 15-subfigure figure with subcaptions that floats over 4 pages, and each page is listed in my list of figures, i.e.:

2.5 Variant-based Linguistic Distances for Typical Localities . . . . 43
2.5 Variant-based Linguistic Distances for Typical Localities (Cont.) 44
2.5 Variant-based Linguistic Distances for Typical Localities (Cont.) 45
2.5 Variant-based Linguistic Distances for Typical Localities (Cont.) 46


How can I exclude those last three references in my list of figures? The subfig package doesn't seem to provide any insight on this. I tried using \captionsetup as follows but it didn't work:

Code: Select all

\begin{figure}
\ContinuedFloat
\centering
\captionsetup[figure]{list=no}
\caption{Variant-based Linguistic Distances for Typical Localities (Cont.)}
\end{figure}
Thanks in advance for any advice!

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

Preventing multiple listing of multi-page figure

Post by gmedina »

Hi,

use an empty optional argument for the \caption commands of the continued floats:

Code: Select all

\documentclass{article}
\usepackage{caption}
\usepackage{subfig}

\renewcommand\theContinuedFloat{\alph{ContinuedFloat}}

\begin{document}
\listoffigures
\clearpage

\begin{figure}[!ht]
  \centering
  \subfloat{\rule{4cm}{2cm}}
  \qquad
  \subfloat{\rule{4cm}{2cm}}
  \caption{Here are the first two figures of a continued figure.}
  \label{fig:cont1}
\end{figure}

\begin{figure}[!ht]
  \ContinuedFloat
  \centering
  \subfloat{\rule{4cm}{2cm}}
  \qquad
  \subfloat{\rule{4cm}{2cm}}
  \caption[]{Here are the second two figures of a continued figure.}
  \label{fig:cont2}
\end{figure}

\begin{figure}[!ht]
  \ContinuedFloat
  \centering
  \subfloat{\rule{4cm}{2cm}}
  \qquad
  \subfloat{\rule{4cm}{2cm}}
  \caption[]{Here are the last two figures of a continued figure.}
  \label{fig:cont3}
\end{figure}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
dcbob
Posts: 6
Joined: Mon Dec 21, 2009 4:19 pm

Re: Preventing multiple listing of multi-page figure

Post by dcbob »

That did it! Thanks very much!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Preventing multiple listing of multi-page figure

Post by localghost »

Just for the record. The caption package also offers to switch off the LoF entry.

Code: Select all

\begin{figure}[!ht]
  \captionsetup{list=no}
  \ContinuedFloat
  \centering
  \subfloat{\rule{4cm}{2cm}}
  \qquad
  \subfloat{\rule{4cm}{2cm}}
  \caption[]{Here are the second two figures of a continued figure.}
  \label{fig:cont2}
\end{figure}

Best regards
Thorsten
dcbob
Posts: 6
Joined: Mon Dec 21, 2009 4:19 pm

Re: Preventing multiple listing of multi-page figure

Post by dcbob »

I see. So it appears that my mistake was either placing the \captionsetup line after \ContinuedFloat or including [figure] in \captionsetup (or both)?
Post Reply