I find captions appearing above figures in the PDF output of a latex thesis file using the code below:
\includegraphics{chapter2/fig5.pdf}
\begin{figure}
\label{Fig. 5}
\caption{Time responses using optimal drive sweep rates obtained from a numerical
parameter search for the: (a) pendulum $(\omega=1, \alpha=-0.01)$, (b) softening
Duffing oscillator $(\epsilon=1/6, \omega=1, \alpha=-0.001)$ and (c) softening
Duffing-Van der Pol oscillator $(\epsilon=1/6, \omega=1, \mu=0.005, \alpha=-0.01
$) using the downward swept drive $(F \cos(\omega t-0.5(\alpha t^2)), F=0.5) $ }
\end{figure}
I presume the problem has to do with the lengthy caption. I read a similar question on this site but unfortunately the answer did not work. I also tried adding [!h] after the includegraphics command to no avail.
Any suggestions would be greatly appreciated.