Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

closed as too localized by bloodworks, Martin Schröder, Kurt, Werner, lockstep Jan 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.A Dec 28 '12 at 23:29
1  
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.A Dec 29 '12 at 2:34
3  
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

1 Answer 1

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.

share|improve this answer
    
I saw this example on the wiki of LATEX. It works on a separated file not in my document !! –  M.A 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. –  tohecz Jan 5 '13 at 22:02

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