Possible Duplicate:
How do I ensure that figures appear in the section they're associated with?
I have a set of images and I want them all to appear in the same \section of my document, obviously in the section I "defined" them. The problem is that, using the figure environment, some images are spreading inside the next section. Something like this:
*start of section n*
IMG 1
IMG 2
...
*start of section n+1*
IMG N-M
...
IMG N
I want to force all N images on staying inside the n-th section. How can I do this? The code I wrote is something like this:
\section{n}
some text
\begin{figure}[ht]
...
\end{figure}
\begin{figure}[ht]
...
\end{figure}
\begin{figure}[ht]
... n-th figure here
\end{figure}
\section{n+1}