Possible Duplicate:
Keeping tables/figures close to where they are mentioned
I have some text, then, one page long image, followed by a page long table, and another page of text. What latex keeps doing is - it puts all the text together, and image and table at the end of the document. Where as, I want them as specified in the code, with the flow!
I have tried everything, h,t,p, ! etc.. kindly help.
\includegraphicsand friends work perfectly well outside thefigureenvironment. – Count Zero May 31 '12 at 13:41figureandtable. These are "floats" so TeX decides where to put them. To make them go just where they are in your text, just include the graphics and use plaintabularfor the table. That might lead to some strange page breaks you'll have to deal with. (... just as Count Zero says above.) – Ethan Bolker May 31 '12 at 13:41\includegraphics[width=0.5\textwidth]{...}to see what happens. – May 31 '12 at 13:49{figure}[p]normally works, but float placement for really small files is not perfect -- simply to less text for LaTeX to work on good placement. You could try to place the whole figure in an\afterpage{\begin{figure}[p]..\end{figure}\clearpage}(needs theafterpagepackage) and place that somewhere on the page before. – Martin Scharrer May 31 '12 at 13:50