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:
\documentclass[12pt,a4paper]{scrartcl}
\usepackage{graphicx}
\usepackage{subfloat}
\usepackage{subfig}
\begin{document}
\begin{figure}[!htb]
\centering
\subfloat[Logo]{\includegraphics[width=1cm]{Bilder/icons/logo.png}}
\hspace{1pt}
\caption{Graphiken der Anwendung}
\label{fig:icons}
\end{figure}
\end{document}
Is there a way to make the caption longer than the 1cm image?
\documentclass). That will make it easier for people to try out the code. – Jake Jun 20 '11 at 10:49\hspace{1pt}? – Martin Scharrer♦ Jun 20 '11 at 10:49subfigmanual (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