Possible Duplicate:
How to protect text from being split by a float?
I have quite some images in my report and I insert them with this command I made:
\newcommand{\image}[3]{\begin{figure}
\centering
\includegraphics[scale=1]{#1}
\caption{#2\label{#3}}
\centering
\end{figure}}
Now, there are a few things that I don't want. I don't want these images to suddenly appear in an itemisation/enumeration, I'd like it if they don't break paragraphs (above or under it is OK) and if possible also in the section I wrote the code in.
First I used the h option (here), but I read you should let LaTeX manage those things and I'm OK with that except the things I listed.
\FloatBarrierbefore the environment, and loadflafterpackage – cmhughes Nov 19 '12 at 16:43placeinspackage for the last problem? – Vahid Damanafshan Nov 19 '12 at 20:39