I have 3 paragraphs with text (but without use \paragaph, just ext) and I have 3 images to these paragraphs. When I create pdf I have these paragraphs on one page (with text before) then on next page 2 images and some text which should be after all images and then on third page last image. So how can I do that every image should be on page where is text that belongs to this image. Or at least text would be between images.
My code now looks like this:
lorem ipsum .....
\begin{figure}[!h]
\begin{center}
{\includegraphics[width=12cm,keepaspectratio]{img/rest}}
\caption{...}
\label{rest}
\end{center}
\end{figure}
lorem ipsum ....
\begin{figure}[!h]
\begin{center}
{\includegraphics[width=12cm,keepaspectratio]{img/rest2}}
\caption{...}
\label{rest2}
\end{center}
\end{figure}
...