Possible Duplicate:
Force figure placement in text
Hi! I'm trying to insert an image in latex with some text around:
Here is our image:
\begin{figure}[h!]
\centering
\includegraphics[width=0.5\textwidth]{idefA0.jpg}
\caption{IDEF0}
\end{figure}
Here is some text!
I'd like to insert image and 'Here is some image' on the same page, but when i'm trying to compile pdf I get: Warning! !h changed to !ht and places an image on the next page, and here is some text goes right after Here is some image
floatpackage with the[H]placement option should help: tex.stackexchange.com/questions/8625/… – Jake Mar 24 '11 at 16:24\documentclass) that shows the described behaviour? – Jake Mar 24 '11 at 16:30[H]option to place the image, you need to add the line\usepackage{float}to your preamble. – Jake Mar 24 '11 at 16:38figurecan also include text.) – Martin Scharrer♦ Mar 24 '11 at 17:02