2

I am trying to put a figure in my document using wrapfig but it shifts the text below it too much.

I insert my image like this:

\begin{wrapfigure}{R}{0.25\columnwidth}
\centering
\includegraphics[width=0.25\columnwidth]{Images/Domains.pdf}
\caption{Birds}
\end{wrapfigure}

and what I get is this:

enter image description here

This question doesn't seem to help and I would not want to manually calibrate some negative \vspace every time I insert a figure. My questions are:

  • Can I have wrapfig insert zero space above and below the image?
  • I have had to specify the same width twice in my main code: is there any way I could specify that only once?
JamesT
  • 3,169
Lilla
  • 215
  • 3
    Please provide complete small document, by which we can reproduce your problem. YAre you avare, that wrapfigure works (well) only at paragraph with text? – Zarko Oct 05 '22 at 19:29
  • For your second question, you can use \linewidth inside the wrapfigure environment. – Rmano Oct 05 '22 at 20:11
  • 1
    One of the optional arguments is tne number of lines. Note that images and equations count as one line, so the number may need to be very small. If that doesn't work, use paracol. – John Kormylo Oct 05 '22 at 23:46
  • @Leonardo, there could be a lot of things giving the effect you show. Please add a minimal working example (MWE) so that people here can help. – Rmano Oct 06 '22 at 08:00

0 Answers0