TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 text will be long, while for others, it may be just a sentence or no text at all.

I'd like the layout to be something like this:


Each slide is inside a wrapfigure environment. The problem I have is that, when there is not enough text to wrap around the slide, the slide and the next one will overlap. I tried putting every slide+text into a minipage, but this doesn't solve the problem.

For an example, see page 2 of this document. The code is in https://gist.github.com/830055

How can I avoid floating figures to overlap, so each slide appears in the right place?

Can you think of a better way to create a layout like this one?

share|improve this question

I don't think there's a way to automate this, but you can manually specify a height for the minipages that have very little text in them:


    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc convallis
    erat eu nunc commodo feugiat. 
share|improve this answer

The example is difficult to use without having the slides...

However, you might get away by using the optional argument of wrapfigure


The [10] is the number of shortened lines.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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