TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use a wrapfigure as below:

\caption{\small \sl My Diagram. \label{fig:image}}  

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

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


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

Your Answer


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.