0

Possible Duplicate:
Keeping tables/figures close to where they are mentioned

I am including graphics into my latex documents as below:

\begin{figure}[abc]
\begin{center}
\includegraphics[width=\textwidth]{abc.eps}
\end{center}
\caption{Same caption}
\label{fig:abc}
\end{figure}

Only the first image is being displayed where I have inserted it. Rest all images are being displayed at the end of the section.

Note: I have designed some images in Dia diagram editor and converted them to PNG. Then I used convert abc.png eps3:abc.eps to convert them to EPS format.

Cracker
  • 101

1 Answers1

0

Inside a floating environment you shouldn't use an environment like center. You get additional vertical space. It is better to use \centering

\begin{figure}[abc]
\centering
%\begin{center}
\includegraphics[width=\textwidth]{abc.eps}
%\end{center}
\caption{Same caption}
\label{fig:abc}
\end{figure}

The optional argument of a floating environment like figure is the positioning,

h=here
t=top
b=bottom
p=extra page

You use abc which makes no sence. I prefer:

\begin{figure}[!htb]

Some more explanation you can find here: Wikibook LaTeX/Floats, Figures and Captions

Marco Daniel
  • 95,681