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 use a wrapfigure as below:

\begin{wrapfigure}{R}{0.5\textwidth}
\begin{center}
\includegraphics{image.png} 
\end{center}
\caption{\small \sl My Diagram. \label{fig:image}}  
\end{wrapfigure} 

Somewhere in my report i have a formula which passes right below the figure. (i.e between caption and figure). How can i prevent this?

share|improve this question
    
It is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. That way those trying to help can focus on solution as opposed to setting up the problem test case. Personally, I have often solved my own problems in the process of reducing the amount of code actually required to reproduce the problem. –  Peter Grill Apr 14 '12 at 1:02
add comment

1 Answer

The wrapfigure environment sometimes gets the height wrong. You can use an optional argument to manually specify the number of lines that the figure occupies. I would try

\begin{wrapfigure}[n]{R}{0.5\textwidth}

and adjust the parameter n until the problem goes away.

share|improve this answer
    
I believe that each line of 'math' still counts as a line even though they are much larger than the standard line, just in case you are wondering. IMHO it is a weakness in the wrapfig package. –  Nicholas Hamilton Apr 21 '13 at 3:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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