Generalcaption placement problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
liao0038
Posts: 2
Joined: Sun Oct 05, 2008 9:48 am

caption placement problem

Post by liao0038 »

Hi all, i am quite new to latex, thanks for your time to look at my problem.
I used the following code to insert a figure in my report between two paragraphs,
but this figure does not appear in the middle of the two paragraph, instead on another new page, even more, the title of the figure which is "simple delay-and-sum beamformer model" always appears at the bottom of the page, not following the figure closely,
what is wrong with it..?

{
\begin{figure}[h]
\begin{center}
\includegraphics[scale=0.8]{figs/pdf/delay-sum.pdf}
\hspace{0.5in}
\caption{\small Simple delay-and-sum beamformeer model}
\label{fig:Delay-sum model}
\end{center}
\end{figure}
}

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

caption placement problem

Post by sommerfee »

liao0038 wrote:the title of the figure which is "simple delay-and-sum beamformer model" always appears at the bottom of the page, not following the figure closely,
what is wrong with it..?
It seems that your figure image has a lot of space at the bottom. You can check this by putting the image into a framed box:

Code: Select all

\fbox{\includegraphics[scale=0.8]{figs/pdf/delay-sum.pdf}}
Some nit-picking (please excuse ;) ):

Code: Select all

\begin{center}
This will add additionally vertical space to your figure. So better use \centering instead of \begin{center}...\end{center}.

Code: Select all

\hspace{0.5in}
What's this good for?

Code: Select all

\caption{\small Simple delay-and-sum beamformeer model}
This will make the caption text small, but not the caption label (like "Figure 1:"). So better use \usepackage[small]{caption} or the ccaption package for that purpose. (If you are using the memoir document class or one of the KOMA-Script bundle, there are build-in commands for this.)

Axel
liao0038
Posts: 2
Joined: Sun Oct 05, 2008 9:48 am

caption placement problem

Post by liao0038 »

Hi sommerfee, many thanks for your reply, it works !!
Post Reply