{wrapfigure} is an environment defined by the`wrapfig` package that allows text to flow around floats.

learn more… | top users | synonyms

27
votes
4answers
7k views

How to wrap text around a figure?

How to wrap text around a figure in LaTeX like this? Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis mi ut elit interdum imperdiet quis non ante. Sed imperdiet, sapien quis ...
18
votes
1answer
1k views

Spacing around image

Knuth is on record that he incorporated approximately 100 typographical rules in TeX. I am struggling to discover the balance. Consider the figure below, What should be the amount of space around ...
17
votes
1answer
15k views

Handling of wrapfig pictures in LaTeX

Is there an way to avoid this behavior of the pictures This is have is wrap the picture: \begin{wrapfigure}{r}{0.5\textwidth} \vspace{-20pt} \begin{center} ...
16
votes
3answers
1k views

How to wrap text around a figure? (revised)

This question has been asked before (and in fact I stole the diagram below from that question) but the answers are not sufficient for my needs (at least near as I can tell). What I want is the ...
14
votes
2answers
5k views

Caption of figure in marginpar and caption of wrapfigure in margin

I'm writing my master thesis and have run into trouble with the layout of captions in relation to the margins. I have two main questions: How can I make the caption text of an figure placed in a ...
14
votes
2answers
1k views

mdframed and wrapfig

Before starting the question, I apologize for the large pictures. I had to use some long text to demonstrate the problem. To generate something like: I used the following command: ...
14
votes
1answer
3k views

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

wrapfig is incompatible with the enumerate and itemize environments. Is there a typographical reason not to wrap a list around a figure or is it a technical limitation of LaTeX? If it is a technical ...
13
votes
2answers
3k views

Absolute positioning of wrapfig

In Microsoft Word, it is common to create a floating text box, separate from the normal body text, that can be placed anywhere on the page. The body text will then wrap around this text box so ...
12
votes
1answer
508 views

Lettrine and Wrapfig

How can I use lettrine at the start of a paragraph used in the wrapfigure environment. Consider the following code: \documentclass{article} \RequirePackage[demo]{graphicx} \usepackage{lettrine} ...
12
votes
1answer
1k views

Wrapfigure-Minipage Woes: How do I correctly typeset wrapped text boxes within a \parcolumns environment modified for a two-sided document?

This is a follow-up question concerning an experimental chapter layout I'm trying to implement for a novel I'm writing. So. My initial problem of finding a way to modify the innards of the parcolumns ...
9
votes
2answers
3k views

Wrapping text around multiple figures

I am a beginner in LaTex, but I have to to do this in a hurry: I need to write a macro to handle 2 cases (or one macro for both). 1st case: i have 1 - 3 pictures on the right side, and the left ...
9
votes
1answer
1k views

Floating wrapped figure in a twocolumn page

I am creating a big composite book \documentclass[A4,twocolumn]{book}. I need wrapped floating figures (and tables) over both columns. I know the enviroment figure*, but the full width of a page is ...
8
votes
1answer
3k views

Strange space left above wrapfig figures

I'm using wrapfig to put a small figure at the start of each paragraph. For the first paragraph of the page, this lines up neatly with the top of the text. But for subsequent paragraphs, the figure ...
8
votes
2answers
688 views

Apply \intextsep at top of page

In trying to provide an answer to this question: Two column trouble - positioning of figures and text, I realized that I need to shift the wrapfigure up to account for the extra spacing that the ...
8
votes
3answers
306 views

Non Floating Figures

I want to stop my figures floating, but I still want to be able to have the caption to the side of them; mainly to save space and for presentation. The only way I know how to get the figure caption ...
8
votes
1answer
116 views

How can text wrap around a figure in tikzposter?

While designing a poster with tikzposter I stumbled over a small issue. Usually one can use the wrapfig package to let text wrap around figures but in a box in tikzposter this seems to fail completely ...
8
votes
1answer
2k views

wrapfigure problem: text over figure

I am a relatively new LaTeX user, so bear with me. I am using wrapfigure to present figures in a grant application (read: space is at a premium). All of a sudden, one of my figures is being ...
7
votes
2answers
6k views

White space under wrapfigure caption

Wrapfigure environment has excessive whitespace BELOW the caption. Inserting negative vspace just shifts the position of the caption relative to the image, actually increasing the 2+ lines of ...
7
votes
1answer
241 views

wrapfigures and quote environment not working together

I want to have a figure floating next to a block quote. So I used the wrapfig package and the quote environment. If you typeset the following example, you will see that the figure is printed on the ...
7
votes
1answer
363 views

Advanced Wrapfig

Consider the following code and output. \documentclass{article} \usepackage{lipsum} \usepackage{graphicx} \usepackage{wrapfig} \begin{document} \begin{wrapfigure}{o}{0.5\textwidth} ...
7
votes
1answer
275 views

hangindent + wrapfig = bad spacing?

I am using the wrapfig package in order to place some text on the right side of my paragraph: \documentclass{article} \usepackage{wrapfig} \begin{document} \begin{wrapfigure}{r}{0pt} ...
7
votes
2answers
3k views

Wrapfigure beamer style

I want to add a graphic plot to my slide, but if I do it with wrapfigure, I get no error massages, but the plot simply does not appear? Code of the TeX file, which uses beamerdefs.sty, I have also ...
7
votes
2answers
428 views

Wrap around a logo at bottom right of page

I have a square logo placed on the bottom right of every page (placed using absolute positioning and tikz) and it's fairly big. I want it so that text flows / wraps around the logo - is it possible to ...
6
votes
1answer
975 views

Wrapping text in enumeration environment around a table

I would like to wrap the text in an enumerate environment around a table, this is my actual situation (sorry for including so much code, but I wanted to give a precise idea of the number of lines in ...
6
votes
1answer
177 views

Wrapfigure and Math

Has anyone noticed that when using wrapfig around math environments (align, gather etc), when the argument is passed to constrain the number of 'lines', it fails to consider that math lines are ...
6
votes
2answers
4k views

Text next to image

I have a problem to get the following result in LaTeX: The figure is not something I want to do with tikz, but I want to use \includegraphics{figure1.png}. Can someone help me to get this?
6
votes
1answer
4k views

Fine tuning of a wrapfigure?

When no other solution seems available, fine tuning by hand may be helpful. Lately, I was trying to raise the content of a wrapfigure because it was eating the bottom margin. I had something like: ...
6
votes
2answers
96 views

Extra space on the first line after wrapfigure and pspicture caption not centered

Two questions about below MWE from a pstricks newbie: Why is there an extra space between the picture and the first \sin\alpha formula? Why is the caption of the pspicture stuck to the right? ...
6
votes
2answers
652 views

Changing Font Style in Minipage

I am trying to generate a pull quote in my document, which I want to have with a different font style. To accomplish this, I have a wrapfig environment containing a minipage. I'd like to set the font ...
6
votes
1answer
1k views

Prevent wrapfigure from wrapping the next section

Code: \documentclass{article} \usepackage[a5paper]{geometry} \usepackage{wrapfig} \usepackage{lipsum} \begin{document} \begin{wrapfigure}{l}{0.5\textwidth} \rule{4cm}{12cm} \end{wrapfigure} ...
6
votes
2answers
87 views

Do I really have to specify the width of my wrapfigure twice?

I'm trying to add a figure to my document. Because I want text to wrap around it, I use the wrapfigure environment: \begin{wrapfigure}{r}{1cm} \begin{center} \includegraphics[width=1cm]{"My ...
6
votes
1answer
408 views

Margin note over body text

I'm interested in putting marginal notes that seems like a post-it in the margin of a document. No problem at all if they are simply made with \marginpar and playing with margin width and separation. ...
6
votes
1answer
205 views

The `wrapfigure` environment breaks when put inside another environment

I've tried using the wrapfigure environment (from the wrapfig) package, but it acts in such a way that I can't use it. Consider the following MWE: \documentclass{article} \usepackage{wrapfig,mwe} ...
6
votes
2answers
1k views

Make figure stick out past the margin

I want to use wrapfig to insert a figure which sticks out into the margin. This does not work, it causes the figure to appear at the end of the text: {\addtolength\textwidth{1in} ...
6
votes
1answer
820 views

Textwidth wrong after wrapfigure

I have included a picture with wrapfigure and everything is fine - the problem is that in my next formula environment, the formula is totally wrong! It seems to me, that the width which I set in the ...
6
votes
1answer
2k views

wrapfig Positioning (Footer is overlapping figure)

I have something like the following: Long paragraph with footnote.\footnote{footnote shtuff here} Another long paragraph without a footnote. \begin{wrapfigure}{r}{.5\textwidth} % figure shtuff ...
6
votes
1answer
476 views

wrapfigure within an exam

I am trying to float a figure using wrapfigure within an exam document using minipage. If I don't use a minipage, then the exam questions do not wrap around the figure. When I use minipage as in the ...
6
votes
1answer
773 views

Wrap text around a picture except for the first line

As the following minimal sample shows, a text wrapping around a picture starts wrapping with the first line. Including the wrapfigure in the text leads to strange paragraph breaks. %---- ...
6
votes
2answers
2k views

Create layout avoiding overlapping floating wrapfigures

I'm writing companion notes for some beamer presentations. For each slide in a presentation, the document has a small picture of the slide, along with a text explaining the slide. For some slides, the ...
6
votes
1answer
852 views

Fixing wrapfig caption alignment?

I'm using wrapfig for the first time, and having a problem with its alignment of captions. As far as I can figure, what seems to happen is: if a caption is short enough that it fits it a single line ...
5
votes
2answers
2k views

How to eliminate excessive vertical space in wrapfigure?

Compiling the following document using xelatex results in unwanted vertical space above the wrapfigure caption. Removing either the inclusion of the polyglossia package or \centercaption usage ...
5
votes
1answer
221 views

Wrap text around wide figure in two column

I need to insert a figure into a two column document such that the figure partially spans both columns, and the text wraps around it. It seems wrapfig does not work for this in two column, pullquote ...
5
votes
1answer
130 views

Wrapfig bug when immediately followed by citation

I noticed that with wrapfig, if the first text is a citation or cross reference, wrapfig ignores the entire paragraph and the paragraph spools over the top of the image. Don't ask me to put a full ...
5
votes
1answer
804 views

Wrapfigure apparently creating dummy space on a following page

The example below is a newsletter with two news items. The first item has a wrapfigure to include a graphic. The second does not But the resulting PDF (made with PDFLaTeX) has a blank area close to ...
5
votes
2answers
418 views

soul's \ul{} breaks wrapfigure and textflow?

Please, I have a nice picture without that \ul{...}, but i need that. \documentclass{article} \usepackage{wrapfig} \usepackage{soul} \begin{document} \begin{wrapfigure}[3]{l}{30mm} \Huge 1 ...
5
votes
1answer
3k views

Wrap text around pseudocode

I use algorithm/algorithmic packages to write some pseudocode. The width of the box spans across the entire page and I was wondering if there is any way to constrain it (since the actual code doesn't ...
5
votes
1answer
119 views

How can I reduce top margin of wrapfigure

I'm writing a document with a wrapfigure and its part looks like this: ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~ ________ ~~~~~~~~~~ | | ~~~~~~~~~~ | Figure | ~~~~~~~~~~ |________| ...
5
votes
1answer
87 views

Equations in amsart crash into wrapfigs

In the example file below, using amsart and compiling using pdflatex, the equation crashes into the space reserved for the wrapfigure. If I use article instead of amsart, then the problem goes away ...
5
votes
1answer
2k views

Adjusting left/right margins of a wrapfig

Is there a (simple) way to adjust the white space to the left or right of a wrapfigure? I'd like to reduce the whitespace on the left side of a right-floated figure. Adding \hspace moves the figure ...
5
votes
3answers
97 views

Is xskak compatible with wrapfig?

I would like to show some (chess) moves, wrapping them around the resulting chessboard. The following code: \documentclass[twocolumn]{article} \usepackage{xskak} \usepackage{wrapfig} ...