[Tex/LaTex] How to limit the figure caption width

captionsfloatsindentation

Figure captions seem to wrap at the page width. How could I make them wrap at the figure width instead? Currently, they can easily be mistaken for normal text.

\begin{figure}[!htb]
    \begin{center
    \begin{tikzpicture} ... \end{tikzpicture}
    \caption{Caption goes here.}
    \end{center}
\end{figure}

pdf example

Best Answer

The caption package provides many enhancements: for example

\usepackage[margin=1cm]{caption}

Reducing the caption to the figure width seems not a good idea in general, particularly if a couple of figures are on the same page or on facing pages. On the other hand reducing the width and maybe the font size can be a good typographical device to isolate them better from the context.

Related Question