# Wrapping text around figure [closed]

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?

-

## closed as too localized by bloodworks, Martin Schröder, Kurt, Werner, lockstepJan 5 '13 at 22:36

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

I have difficulties understanding your problem. Testing your code, it seems to deliver exactly what you want. – xfoo Dec 28 '12 at 23:07
The rest of the text after the image is also wrapped. It is not displayed in the full width of the page. Just half of the width of the page has text, the rest is empty. – M.M Dec 28 '12 at 23:29
You could try adding the optional argument to specify how many lines the wrapped figure should span, e.g. \begin{wrapfigure}[10]{r}{0.5\textwidth} will make the figure take up 10 lines of vertical space. – Torbjørn T. Dec 28 '12 at 23:45
@Torbjørn T Nothing changed, just the 11th line after the figure is not wrapped ! – M.M Dec 29 '12 at 2:34
Check that text in not really inside the wrapfigure environment . Please provide an Minimal Working Example like in the Cristhian R. answer showing your problem. – Fran Dec 29 '12 at 8:23

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:

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

-
I saw this example on the wiki of LATEX. It works on a separated file not in my document !! – M.M Dec 29 '12 at 2:39
@Abufouda Then it means that something else is wrong with your document. Unless you provide a Minimal non-Working Example, we cannot help you. – yo' Jan 5 '13 at 22:02