I wanted to insert two figures, one below the other, and then continue entering text after figure 2. But the text gets inserted after figure 1. Can someone please tell me what I am doing wrong? The following are the commands I used (document class is report):
\begin{figure}[h]
\centering
\includegraphics[scale=0.5]{figure1.png}
\caption{this is figure 1}\label{one}
\end{figure}
\begin{figure}[h]
\centering
\includegraphics[scale=0.5]{figure2.png}
\caption{this is figure 2}\label{two}
\end{figure}
figureenvironment. I.e. just remove the\end{figure} \begin{figure}[h] \centeringin the middle. But you should most likely have more placement options than justh, e.g.htp. – Torbjørn T. May 21 '17 at 15:44\begin{figure} \centering \subfloat[][Figure label 2.] { figure1 } \end{figure} } \\ \subfloat[][Figure label 2.] { figure2 }\caption{The "two figures" caption} \end{figure}. You can use separate captions and, if you like, a global caption too. Put\includegraphicsor what you need where I put figure1 and figure2. – Fausto Vezzaro May 21 '17 at 21:54