[Tex/LaTex] How to insert text between two figures

floatspositioning

How to insert text between two figures or images in LaTeX? I have this code

\begin{figure}[htbp]
  \centering
    \includegraphics[width=0.5\textwidth]{1.jpg}
    \caption{Resala's Donation Page.}
\end{figure}

and for the volunteering activities, they do record all their activities...

\begin{figure}[htbp]
  \centering
    \includegraphics[width=1\textwidth]{2.jpg}
    \caption{Resala's Project Page.}
\end{figure}

but what happens is the text is placed before the first image and all images are placed at the end of the page.

Best Answer

You could use only one figure environment:

\documentclass{article}
\usepackage[demo]{graphicx}

\begin{document}

\begin{figure}[htbp]
{\centering
\includegraphics[width=0.5\textwidth]{1.jpg}
\caption{Resala's Donation Page.}\par\medskip
}
and for the volunteering activities, they do record all their activities...\par\bigskip
{\centering
\includegraphics[width=1\textwidth]{2.jpg}
\caption{Resala's Project Page.}\par
}
\end{figure}

\end{document}

enter image description here

The demo option for graphicx simply replaces actual figures with black rectangles; do not use that option in your actual document.

Related Question