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 little icons (48x48) and I want to display them using subfloat. To prevent that images from being pixelated I set the width to 1cm. But now the caption has also a length of 1cm and looks terrible. Here is my code:

    \caption{Graphiken der Anwendung}

Is there a way to make the caption longer than the 1cm image?

share|improve this question
It would be good if you could turn the code sample into a full, compilable document (i.e. starting from \documentclass). That will make it easier for people to try out the code. – Jake Jun 20 '11 at 10:49
Why are you using \hspace{1pt}? – Martin Scharrer Jun 20 '11 at 10:49
After a short look in the subfig manual (I assume you are using this package), I found a reference to: \captionsetup[subfigure]{width=<some length>}. Give it a try. Another possibility for short captions would be to use \mbox{Logo} to avoid a line break. However, this only allows for single line sub-captions and might cause other issues. – Martin Scharrer Jun 20 '11 at 10:56
changed the code, \hspace is for the next row of images, I'll try the \mbox – dbrettschneider Jun 20 '11 at 11:02
up vote 13 down vote accepted

You could just increase the official width of the subfloat by putting the image in a larger but invisible box:

    \caption{Graphiken der Anwendung}
share|improve this answer
thanks, that works – dbrettschneider Jun 20 '11 at 11:04
It's possible also to say \makebox[1.2\width]{...} that will enlarge the box by the 20%. – egreg Jun 20 '11 at 11:08
Or \makebox[\dimexpr\width+2cm\relax]{...} to increase the width by e.g. 2cm. – Martin Scharrer Jun 20 '11 at 11:28

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.