I have two figure/caption related questions.

Firstly, in many textbooks, it is customary to put thin figures (along with their captions) entirely in the outer margin of the page. What is the most elegant way of doing this in LaTeX?

Secondly, for wider figures many books set the figure to be the width of the page (so spewing out into the outer margin) and then place the caption in the margin space below the figure. How can one achieve this effect in LaTeX?

  • 1
    This is one of those things where I think that you often find yourself trying to do this kind of complex layout, you may find that life would be easier with Context. – Charles Stewart Aug 30 '10 at 20:49
  • Have you tried the caption package? I think this package do whatever you want. – Vahid Damanafshan Aug 31 '10 at 1:51
  • 2
    @charles: I'm certainly not against such comments by any means whatsoever, but without an example from you demonstrating ConTeXt's superiority here, it's not a very compelling argument. @vahid: no, caption only styles the figure captions, not the figures themselves. – Will Robertson Aug 31 '10 at 8:59

You can use the the tufte-book class. It has margin figures, margin notes as well as full width environments. In general it has the general style you are looking for. It also has a fullwidth environment for larger figures - as you describe.


Figures in margins

I haven't done this for years, but when I did I used the wrapfig package. Something like

   \caption{Black box.}

Full-width figures

This one is easier. Using the changepage package,

  \strictpagecheck % just in case

Of course, you could also use a command instead of an environment if you prefer.

While the code above is fairly small (in the scheme of things) the floatrow package provides an interface around such elements (and much more).

Update: I don't personally use floatrow, so I don't know if it has its own methods for doing something like this, but here's an example of putting a margin caption beneath a wide figure:

\margincaption{A black long line with lots of explanation so it fills up some space.}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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