Graphics, Figures & TablesFigure not inserted in LoF

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
laailalalaa
Posts: 35
Joined: Thu Oct 27, 2011 5:31 pm

Figure not inserted in LoF

Post by laailalalaa »

Hello,

I inserted a picture (cut in 2) spanning two pages with the following code:

Code: Select all

\begin{figure}[htb]
\begin{center}
\includegraphics[totalheight=1\textheight,
width=1\textwidth,viewport=0 0 475 603]{PicturePage1}
\caption[]{Picture caption}
\label{fig:mypicture}
\end{center}
\end{figure}

\begin{figure}[htb]
\ContinuedFloat
\begin{center}
\includegraphics[totalheight=.9\textheight,
width=.9\textwidth,viewport=0 0 475 603,bb = 10 20 100 200]{PicturePage2}
\end{center}
\caption[]{Picture caption}
\label{fig:mypicture}
\end{figure}
\clearpage
Up until a certain point in time the \listoffigures command properly inserted this picture into the list of figures. Now it omits it.

Any ideas why?
Thanks
Last edited by laailalalaa on Mon Feb 27, 2012 6:04 pm, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

Figure not inserted in LoF

Post by Stefan Kottwitz »

Hi,

change

Code: Select all

\caption[]{Picture caption}
into

Code: Select all

\caption{Picture caption}
i.e. remove the empty optional argument to \caption, which is for the LoF entry. Then the mandatory argument in braces will be put into the LoF. Or write the entry for the LoF into the square brackets, especially if it should be shorter than the caption within the document.

Stefan
LaTeX.org admin
laailalalaa
Posts: 35
Joined: Thu Oct 27, 2011 5:31 pm

Re: Figure not inserted in LoF

Post by laailalalaa »

like a charm.. thanks a lot for the explanation too
Post Reply