I am simply trying to have two figures in one section on one page with text in between. In the below example the PDF result is text1, picture1, text2, text3 which is not what I intended.
Text1
\begin{figure}[h!]
\includegraphics[width=0.4\linewidth]{picture1.jpg}
\caption{A boat.}
\label{fig:boat1}
\end{figure}
Text2
\begin{figure}[h!]
\includegraphics[width=0.4\linewidth]{picture2.jpg}
\caption{A boat.}
\label{fig:boat1}
\end{figure}
Text3
Any help would be greatly appreciated!
figure
environment is to allow the figures to be moved, and since you have used[h]
you are preventing the figures being placed at top or bottom of the page or on a page of their own so it is quite likely that they can not be placed anywhere (you may see a warning that latex has changed this toht
to make it possible to output them somewheer) – David Carlisle Jan 17 at 13:56\begin{figure}[H]
and put\usepackage{float}
in the preamble. – Henri Menke Jan 17 at 18:15