I want to use wrapfigure to contain an (align) environment. How do I remove the excessive vertical spacing above and below the \rule commands without using \vspace? I don't understand where this space comes from in the first place.

    \captionof{model}{MODEL \hfill[LP]}
        1 = 1

This is my current output:

enter image description here

I already set


in the beginning of the document. This successfully removes space around the align environment.

I want the hrules to wrap the caption tightly and symetrically. Furthermore, I want the top and bottom padding equal to the \columnsep setting, i.e left and right padding.

Thanks a lot in advance.


Got there. I got this result with:

\captionsetup[model]{skip=0.2em, labelsep=period}


\captionof{model}{MODEL \hfill[LP]}

Still, for some reason \vspace always feels like a dirty hack to me. I would feel better if the linebreak after the caption would not be produced in the first place. Is the use of \vspace to be recommended, in general?

enter image description here

  • Wrapfig adds \intextsep above and below (same as figure [h]). Also, \rule takes up \baselineskip by itself, while \hrule does not. – John Kormylo May 2 at 0:03
  • @JohnKormylo Thanks a lot! Based on your comment, I went back and replaced rule with hrule. Also, I removed vspace and skip in caption. I got a super clean result. I think the major issue was the \parskip preset in my document. Is there a way to surpress parskips locally rather than setting ot to 0 for the entire document? Best, Anton – Anton Hinneck May 2 at 10:39
  • Changes inside groups such as {...} or \bgroup ...\egroup are (normally) local to the groups. – John Kormylo May 2 at 16:01

See "Edit". I would still apperciate some thoughts on using \vspace. Is there a way to achieve the same without this command?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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