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: http://tex.stackexchange.com/questions/8625/force-figure-placement-in-text/8633#8633 – Jake Mar 24 '11 at 16:24\documentclass) that shows the described behaviour? – Jake Mar 24 '11 at 16:30\usepackage[russian]{babel} \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm,bindingoffset=0cm]{geometry} \usepackage[pdftex]{graphicx}
\setlength{\parskip}{2ex} \setcounter{tocdepth}{3}
– Mar 24 '11 at 16:34and than\chapter{Name}` and code from my 1st post. I think, the main problem is - I have about 4-6 lines of free space at this place=\[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