Graphics, Figures & TablesExtra space between image and caption

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Fordprefect
Posts: 1
Joined: Mon Aug 23, 2010 5:15 am

Extra space between image and caption

Post by Fordprefect »

\begin{figure}[htb]
\centering
\includegraphics[width = 4in]{Figure2b}
\caption{\label{Fig2} dummy caption.}
\end{figure}

This is the code I am using to layout my images in a paper. 5/6 are fine, but one of them always compiles with extra space (probably 15 lines) between the figure and the caption. I have tried everything within my knowledge base to correct this, but that is pretty limited. Any suggestions?

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Extra space between image and caption

Post by sommerfee »

I assume the extra space is in the image. By putting the image inside a \fbox one can verify this:

Code: Select all

\fbox{\includegraphics[width=4in]{Figure2b}}
Post Reply