[Tex/LaTex] Wrapping text around figure

wrapfigure

I have the following command to display EPS figures and wrapping text around the figure:

\begin{wrapfigure}{r}{0.5\textwidth}
  \begin{center}
    \includegraphics[width=0.48\textwidth]{figures/flowchart}
  \end{center}
  \caption{A gull}
\end{wrapfigure}

The problem is that the figure is displayed and text is wrapped not only around the figure, but also for all following paragraphs.
Any help?

Best Answer

I've extended your example to a MWE:

\documentclass{article}

\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{lipsum}

\begin{document} 

\lipsum[1]
\begin{wrapfigure}{r}{0.5\textwidth}
  \begin{center}
    \includegraphics[width=0.48\textwidth]{gull}
  \end{center}
  \caption{A gull}
\end{wrapfigure}
\lipsum[2-3]

\end{document}

Which is resulting in:

Output

As to my understanding, this is your desired outcome. See the LaTeX wiki for more documentation on this package.

Related Question