I am trying to control the position of the figure. I would like to place it right below the title of paragraph, but it does not work.
When I add a text right below the \paragraph, the figure moves below the title as I wish. So I tried some of my ideas such as \phantom, \vspace and things like that to create invisible spacing. But it did not work that way.
Could you help me fix this issue?
P.S., I would also like to make the text start in the next line, instead of starting in the same line with the paragraph. Linebreaking functions did not work..
\paragraph{[2] xxx}
\begin{figure}[h!]
\centering
\includegraphics[width=0.9\textwidth]{P2.png}
\caption{\label{fig:frog}This is a figure caption.}
\end{figure}
figure
is to take the content out of the main document flow so that is a float that may be re-inserted at a different place to helpwith page breaking.