# Tag Info

### 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: ...
• 563

### 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=...
• 61k

### 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]{...
• 668k
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 ...
• 184k
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 ...
• 154k
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 ...

### 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 ...
• 131
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} \...
• 120k
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{...
• 2,335
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.
• 668k
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 ...
• 294k

### 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{...
• 668k
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 (...
• 70.2k
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 ...
• 49k
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{...
• 668k
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\...
• 993k
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,...
• 668k

### 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 ...
• 261k
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: ...
• 261k

### 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 ...
• 572
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 ...
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" ...
• 21.7k
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 ...
• 993k
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{...
• 23.5k