TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 the following code :

    \begin{wrapfigure}{r}{0.3 \textwidth}
    \caption{Synthesis tools}

Which gives an output of :

enter image description here

I would like the text to fit better than how it looks now. Maybe remove justification ? How can I do this ?

share|improve this question
up vote 4 down vote accepted

One option would be to use justification=raggedright, from the caption package:



\begin{wrapfigure}{r}{0.3 \textwidth}
\caption{Synthesis tools}


To have this setting for all wrapfigure environments, instead of using \captionsetup{justification=raggedright} inside each wrapfigure environment, it's enough to add


to the preamble.

share|improve this answer
Perfect thank you very much ! – Razor Apr 16 '13 at 16:18
Also, is there a way to push it a bit to the right ? Or is the caption location fixed ? – Razor Apr 16 '13 at 16:21
@NLed you could use margin=20pt (or any other length) inside \captionsetup: \captionsetup{justification=raggedright,margin=20pt} Is something like that what you need? – Gonzalo Medina Apr 16 '13 at 16:24
yes, perfect, thank you very much – Razor Apr 16 '13 at 16:27
If you don't want to repeat \captionsetup{justification=raggedright} for every wrapfigure you could use \captionsetup[wrapfigure]{justification=raggedright} within your document preamble instead. (See caption doc, section "wrapfig") – Axel Sommerfeldt Apr 16 '13 at 17:44

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.