Double space ENTIRE document in latex

Kacey picture Kacey · Dec 11, 2014 · Viewed 24.7k times · Source

In latex, I want to double space the entire document, including the footnote and the table caption.

I have tried

\usepackage{setspace}

\doublespacing

It works for the main text, but does not work on the table caption.

Does anyone have any idea? Thank you.

Answer

Werner picture Werner · Dec 11, 2014

caption detects the presence of setspace and allows you to set the font key-value accordingly:

enter image description here

\documentclass{article}

\usepackage{setspace,caption}
\usepackage{lipsum}
\captionsetup{font=doublespacing}% Double-spaced float captions

\doublespacing% Double-spaced document text

\begin{document}

\begin{figure}
  \caption[lipsum2]{\lipsum[2]}
\end{figure}

\lipsum[1]

\end{document}