1

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..

enter image description here

 \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}
1

I used sub-paragraph to make the text start in the next line, instead of starting in the same line with the paragraph.

I have used the following packages and reduced the size of the picture to fit it in the same page. If you are keeping the size same, it still remains below the paragraph but maybe in the following page. Hope my answer helps.

\documentclass{article}
\usepackage{graphicx}
\usepackage{float}

\begin{document}

    \section{Section}

    Hello

    \paragraph{Paragraph}

    \subparagraph{}

     \begin{figure}[H]
        \centering
        \includegraphics[width=0.7\textwidth]{"example3".png}
        \caption{\label{fig:frog}This is a figure caption.}
     \end{figure}

\end{document}

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.