Graphics, Figures & TablesProblems with Figure Placement

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
billyquant24
Posts: 2
Joined: Mon Jan 16, 2012 1:44 am

Problems with Figure Placement

Post by billyquant24 »

Hi,

Before, I had figures in my latex file without captions. my code is like this,

Code: Select all

\begin{center}
  \includegraphics[width=10cm]{fola}
\end{center}
I was able to get the figure to appear where it wanted, and everything was fine. When I tried to add captions, Latex placed them in the spot, not where I wanted it to be. I think this is a spacing problem.

For example, if I wanted two figures on one page, and there was only space left for one, then latex would add one, with some text, and would add the second image on the next page.

Is there any way to fix this?

Many Thanks
Last edited by Stefan Kottwitz on Fri Apr 06, 2012 11:07 am, 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

Problems with Figure Placement

Post by Stefan Kottwitz »

Hi,

for adding captions, use a {figure} environment. Add options to make placement easier, such as \begin{figure}[!htb] or less, depending on your needs. Use \caption within this figure environment for producing captions. Don't use the {center} environment there, use \centering instead.

Stefan
LaTeX.org admin
Post Reply