# Lyx problem with wrap figure

I am writing a report in Lyx. I always have problem with wrap figure. I have a lot of white space under it, like on figure and don't know how to solve. In wrap figure settings I put: Placement: Outer (default) Width: 40 column width % not checked overhang and line span. Thanks in advance.

• What about check line span, set some value like "20" and according to the result, reduce or enlarge that value?
– Fran
Dec 6 '20 at 19:38

The wrapping is based on counting lines (because \parshape), and the counting can be thrown off both by vertical space (as before Primedba) and by larger equations (those bigger than three lines of paragraph text). That's when you have to use the line-count argument.
Wrapping \arabic{WF@wrappedlines} lines.

after \end{wrapfigure}, and read the value from the output.