Wrapping text around a figure in LaTeX

Posted by manapo on Stack Overflow See other posts from Stack Overflow or by manapo
Published on 2010-05-17T01:38:08Z Indexed on 2010/05/17 1:50 UTC
Read the original article Hit count: 211

Filed under:

When I wrap my text around a figure I cannot get it to wrap around the correct text. Basically, I want to have the text in the section the figure is in wrap around it, but when I compile it my figure ends up being farther down the page next to text in another section. 1. How do I change this? 2. (kind of a minor point) How do I make the label for the caption, such as "Figure 1.", bold?

\usepackage{graphicx}
\usepackage{wrapfig}

...

\begin{wrapfigure}{r}{40mm}
  \begin{center}
    \includegraphics[scale=0.5]{image}
  \end{center}
  \caption{This is the image.}
\end{wrapfigure}

© Stack Overflow or respective owner

Related posts about latex