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 have an image wich is beside some text, and I would want to frame the image and the caption.

My code is for now:

    \caption[Différents encodages]{Différents types d'encodage pour «Wikipédia, l'encyclopédie libre»}

but the fbox is only around the image. How could I do that?

share|improve this question
what happens if you move the \caption{} inside the \fbox{}? – samcarter Jul 29 '14 at 15:21
up vote 7 down vote accepted
    \caption[Différents encodages]{Différents types d'encodage pour «Wikipédia, l'encyclopédie libre»}
share|improve this answer

Here is a solution with the framed package:


    \usepackage{wrapfig, framed, caption}

    %\captionsetup{ width = 2cm}%singlelinecheck = false,


    \begin{wrapfigure}{r}{\dimexpr 6cm + 2\FrameSep + 2\FrameRule\relax}%
    \caption{Where the Wild Things Are,  by \emph{Maurice Sendak}}


enter image description here

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.