Double space ENTIRE document in latex

captionlatexspace

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.

Best Answer

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}