Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have two figures with somehow the same caption with the following code:

\begin{figure}[!ht]\centering
\includegraphics[height=18cm]{pic1}
\caption{caption}
\end{figure}
\addtocounter{figure}{-1}
\begin{figure}[!ht]\centering
\includegraphics[height=18cm]{pic2}
\caption{(continued)}
\end{figure}

Is there a way to have only the first figure referenced in the list of figures?

share|improve this question

1 Answer 1

up vote 9 down vote accepted

You can achieve this using the caption package which gives you access to the \ContinuedFloat float command (to keep the figure number the same) and an additional field to the \caption which when used but left empty prevent the figure to be mentioned in the List of Figures:

\documentclass{article}
\usepackage{graphicx}
\usepackage{caption}

\begin{document}

\begin{figure}[!ht]
\centering
\includegraphics[height=18cm]{pic1}
\caption{caption}
\end{figure}

\begin{figure}[!ht]
\ContinuedFloat
\centering
\includegraphics[height=18cm]{pic2}
\caption[]{caption (continued)}
\end{figure}

\end{document}

If you use the subfig package as well, you can also include the graphics inside a subfloat which would enable you to give each graphic it own caption in addition to the main figure one:

\subfloat[][]{\includegraphics[height=18cm]{pic2}}

this would then use an alpha counter within the figure to differentiate between the parts. The second [] can contain the subfloat caption.

share|improve this answer
    
Sorry I forgot to type the [] to the second caption. –  ArTourter Jul 21 '12 at 22:15
1  
I'll just delete my answer then, as yours has the same info, and the added suggestion about subfloats (and you posted first). I'll also delete my comment above. –  Torbjørn T. Jul 21 '12 at 22:23
    
Thanks @TorbjørnT. I have fixed the explanation of which package does what. –  ArTourter Jul 21 '12 at 22:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.