33 votes

Handling of wrapfig pictures in LaTeX

The accepted answer offers one method (make the figure float). If all you need is to remove the white box on the subsequent page, you can just add negative spacing. Adapting Gonzalo Medina's example: ...
user avatar
25 votes

Will it ever be possible to use wrapfig with an enumerate or itemize environment?

FWIW, wrapfigure works out of the box in ConTeXt. So, it is clearly not a limitation of TeX. \setuppapersize[A5] \useexternalfigure[ctanlion][http://www.ctan.org/lion/ctan_lion_350x350.png][width=...
user avatar
  • 61k
20 votes

Problem with wrapfig and itemize

Using wrapfig in lists is explicitly unsupported, but if you want to do it anyway it works if you help it a bit: \documentclass[a4paper,12pt]{article} \usepackage[T1]{fontenc} \usepackage[demo]{...
user avatar
18 votes
Accepted

Wrapfigure in an enumerate environment.

You cannot use wrapfigure in or near a list environment. If you look at the console output when you compile, you will see the warnings about this. If you want wrapping here, you could fake it. For ...
user avatar
  • 184k
15 votes
Accepted

How can text wrap around a figure in tikzposter?

When working in restricted width places you need to use \linewidth (or \columnwidth in other context) to get a relevant length for scaling. Also wrapfig argument which you have provided with 5 is the ...
user avatar
  • 154k
14 votes
Accepted

Wrap text around an irregular shape

I'm gonna answer my own question, in case someone stumbles over this. I used the cutwin package, as suggesten in this thread. (Thanks Schumacher for the link). The output came out pretty nice. Below ...
user avatar
13 votes

Prevent wrapfigure from wrapping the next section

You could simply include the wrapfig and the wrapped text in brackets as follows: { \begin{wrapfigure}{l}{0.5\textwidth} \rule{4cm}{12cm} \end{wrapfigure} \lipsum[1] } \section{Hello} This stops ...
user avatar
  • 131
13 votes
Accepted

Inserting pictures in tcolorbox

Use two minipages and load the capt-of package to write the caption through the command \captionof \documentclass[demo]{report} \usepackage{blindtext} \usepackage{geometry} \usepackage{float} \...
user avatar
13 votes
Accepted

Wrap figure vertical alignment of text

This is governed by the \intextsep length. You can set it to zero to avoid the empty space above and below the wrapfig environment: \documentclass[12pt]{article} \usepackage{graphicx} \usepackage{...
user avatar
  • 2,335
10 votes
Accepted

wrapfig - Make wrapped image respect margins and page ends

You can use R rather than r and then wrapfig will allow the figure to float to a certain extent to avoid falling off the end of a page.
user avatar
10 votes
Accepted

Where does the space before wrapfigure comes from and how can it be eliminated?

You are top-aligning your minipages. If a minipage (or some other box) starts with normal text then "top-aligning" means that its baseline is at the baseline of the first text line. But if it starts ...
user avatar
9 votes

How to align picture to top left corner?

wrapfig adds the same vertical space as a h float, so you can locally set that to zero: \documentclass{article} \usepackage{wrapfig,graphicx} \begin{document}\section{Grafika i pakiet \texttt{...
user avatar
9 votes
Accepted

Wrap text between figures on both left and right

This solution creates macro \WrapLR which (like wrapfig) uses \parshape. The top of the image is \ht\strutbox above the first baseline, and the bottom is even or higher than the last baseline (...
user avatar
  • 70.2k
9 votes
Accepted

How to wrap a figure in exam document?

wrapfig doesn't work in lists, and questions is just another version of a list. The following is a quick and dirty reimplementation of https://tex.stackexchange.com/a/453624/117050 to work with ...
user avatar
  • 49k
8 votes
Accepted

How to float box of text on the right side without leaving a gap throughout the rest of the document?

wrapfig works best if there is just plain text that is wrapping round the figure: \documentclass[10pt]{article} \usepackage[margin=0.5in]{geometry} \usepackage{float} \usepackage{wrapfig} \usepackage{...
user avatar
8 votes
Accepted

wrapfigure environment vspace above figure

The output is precisely what's expected, at least judging from the code. You can remove the space by setting \intextsep: \documentclass{article} \usepackage{lipsum,tikz,wrapfig} \setlength\...
user avatar
  • 993k
8 votes
Accepted

How to place a wrapfigure on top of the page?

If you let tex page break normally and note where it breaks the page you can force a "hidden" paragraph break at exactly that spot and insert th ewrapfig: \documentclass{article} \usepackage{graphicx,...
user avatar
8 votes

How to wrap a figure in exam document?

Here is a solution with caption and the plain TeX insbox macro package. It defines a \InsertBoxR command, to be inserted at the very beginning of a paragraph, which takes two mandatory arguments: the ...
user avatar
  • 261k
8 votes
Accepted

Put text around a tikz picture

You're making things needlessly complicated: the plain TeX insbox macro package can do what you want, and it works fine here. It defines an \InsertBoxR command which takes two mandatory arguments: ...
user avatar
  • 261k
7 votes

Will it ever be possible to use wrapfig with an enumerate or itemize environment?

It is possible by putting the wrapfigure into a parbox or minipage as is mentioned in some of the duplicates of this question. However those methods usually fix vertical spacing issues by manually ...
user avatar
  • 572
7 votes
Accepted

Strange behaviour of wrapfigure if followed by equation

I can't profess to understand the internals of what brought on the problem to begin with; however, placing a \leavevmode after the \end{wrapfigure} resolves the issue. I inferred the answer from ...
user avatar
7 votes
Accepted

Can I have a tcolorbox behave like wrapfig, without using the wrapfig package?

I know you asked for a non-wrapfig answer, though it is unclear why. They can work together. More importantly, I think, is that tcolorbox doesn't care much about how things outside the "colorboxes" ...
user avatar
  • 21.7k
7 votes
Accepted

wrapfig not wrapping as required

Starting a paragraph with a display is a sure source for bad output, particularly in connection with wrapfigure. I guess your aim is to start the picture insertion down the paragraph; this can only ...
user avatar
  • 993k
7 votes
Accepted

automatically adjust the size of a minipage

I am a big fan of floating environments, but if floating is not allowed, you don't have to use it. \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{...
user avatar
  • 23.5k
7 votes
Accepted

How to wrap text around part of a figure

Have you considered making use of \ContinuedFloat from the caption package (without defining a different label format for continued floats)? Code \documentclass{article} \usepackage{geometry} \...
user avatar
  • 1,808

Only top scored, non community-wiki answers of a minimum length are eligible