[Tex/LaTex] caption package doesn’t recognize font=doublespacing

captionsline-spacing

The journal I'm targetting requires "doublespaced" figure captions, and posts like these

http://www.latex-community.org/forum/viewtopic.php?f=45&t=4187

made me try out the caption package. I grabbed it from CTAN and looking at its doc (p. 10) made me try the font=doublespacing option, via a \usepackage[font=doublespacing]{caption} line in my preamble. But doing so generates an unknown key error:

! Package keyval Error: doublespacing undefined.
See the keyval package documentation for explanation.
l.448 \ProcessOptionsWithKV{caption}

this is using  pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) (format=pdflatex 
2006.12.10), via LyX v2.0.3.

Best Answer

You must load the setspace package to use caption's doublespacing option .

\documentclass{article}

\usepackage{setspace}

\usepackage[font=doublespacing]{caption}

\begin{document}

\begin{figure}
\centering
\rule{1cm}{1cm}
\caption{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut
    purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.
    Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget,
    consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.}
\end{figure}

\end{document}

enter image description here

Related Question