That's my code
\subsection{Here is the subsection}
Here is the text\\
\begin{figure}[htbp]
\centerline{\resizebox{\width}{5cm}{\includegraphics[scale=0.5]{r1.png}}}
\caption{Here goes the caption.}
\end{figure}
More text\\
\begin{figure}[htbp]
\centerline{\resizebox{\width}{5cm}{\includegraphics[scale=0.5]{e1.png}}}
\caption{Here goes the caption.}
\end{figure}
More text\\
\begin{figure}[htbp]
\centerline{\includegraphics[scale=0.35]{r_e1.png}}
\caption{Here goes the caption.}
\end{figure}
The order in which they appear on the pdf is: 1.Text all together at the beginning of the subsection 2.all figures. Before I added the captions I think there was no such problem. Any clue?
\centerline. Use\centering. – cfr Dec 18 '14 at 03:19[so],[tex.se], ...); they always remain. – Werner Dec 18 '14 at 03:25