Possible Duplicate:
How to influence the position of float environments like figure and table in LaTeX?
sometimes im in trouble with my images. Because if there is no space on one page, the images is getting printed on the next page. Thats fine, but if I write a text after the image on the pdf the text is before the image.
Something like this:
\begin{figure}[htb]
\centering
\includegraphics*[width=1\textwidth]{myimage.pdf}
\caption{\em Description}
\label{fig:myimage}
\end{figure}
\hspace{0pt}
\\
MyText. But this text appears sometimes before the image and not after how it should be.
I saw this question. People are explaining h,t,b but its not helping me. How can I solve this problem? Thank you
Edit: I could solve this problem with adding a lot of new lines, something like this:
\begin{figure}[htb]
\centering
\includegraphics*[width=1\textwidth]{myimage.pdf}
\caption{\em Description}
\label{fig:myimage}
\end{figure}
\hspace{0pt}
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\
Now its fine.
But this cannot be the solution...
figureby itself. To understand how they are positioned, you should read this post: http://tex.stackexchange.com/a/39020/16873 – Corentin Oct 02 '12 at 12:06floatpackage and changehtbtoHwhich means PUT IT HERE then latex will not move it – David Carlisle Oct 02 '12 at 12:08captionpackage can help you define that) – David Carlisle Oct 02 '12 at 12:15His almost always a REALLY BAD IDEA (I was the first one to implement H so I can say that with some authority:-) figures are big unbreakable blobs and if you include one mid page with H then the only thing latex can do is leave that page short with a big white gap and move everything to the next page. Real printers would never do that that is why articles have figures as referenced items so that the printer can put them in a good place and the text can refer to it by reference. – David Carlisle Oct 02 '12 at 12:17\labeland\ref) unambiguously refer to the figure. This shouldn't confuse any reader since it's common practice in articles and books. – cgnieder Oct 02 '12 at 12:24figureenvironment, and there are packages to provide an alternate method of referenceable captioning. (you may have to adjust the vertical spacing around it.) – barbara beeton Oct 02 '12 at 12:29