I have a section which describes a set of 6 images. After adding the section and the images just below it, the images were not placed in the correct place. Some of them were placed after the section, which is the correct thing, but the others were placed after the next section. Is there anyway to solve that?
Here is how I want my page to look:
Image 1 | Image 4
Image 2 | Image 5
Image 3 | Image 6
|
....... | .......
....... | .......
The dots represent the text of the page. Obviously, the page is in two-columns.
Finally, here is the code I am using.
\section{....}
<Section Text Referencing The 5 Figures Below>
\begin{figure}[h]
\begin{center}
\includegraphics[width=3.0in]{example1_scene.png}
\end{center}
\end{figure}
\begin{figure}[h]
\begin{center}
\includegraphics[width=3.0in]{example1_topview.png}
\end{center}
\end{figure}
\begin{figure}[h]
\begin{center}
\includegraphics[width=3.0in]{on_smith_and_screen.png}
\end{center}
\end{figure}
\begin{figure}[h]
\begin{center}
\includegraphics[width=3.0in]{example1_2.png}
\end{center}
\end{figure}
\begin{figure}[h]
\begin{center}
\includegraphics[width=3.0in]{example1_3.png}
\end{center}
\end{figure}
\begin{figure}[h]
\begin{center}
\includegraphics[width=3.0in]{example1_4.png}
\end{center}
\end{figure}
Best Answer
The
figure
environment is designed to float, which is what accounts for the behaviour you are seeing. If you want to group your figures together, you could put each\includegraphics
commands (not thefigure
commands) into atabular
environment, or aminipage
environment or you could use thesubfig
package to organise groups of figures with subcaptions. Thesubfig
package documentation gives lots of options to show you how to do this (including a useful section on whether you even need the package or not.)