[Tex/LaTex] Different line spacing for body text than inside tables

setspacetables

Would someone happen to have a clever idea how to set the line spacing of the body text to 1.5 and inside tables to 1.0? I was looking at this package
\usepackage[onehalfspacing]{setspace} but although it didn't touch the captions the table content became 1.5 spaced. I have a huge amount of tables in my document and I would really like to avoid setting the line spacing separately for each one of them.

Here the MWE:

\documentclass[11pt,a4paper,twoside]{report}
\usepackage{caption}
\usepackage{booktabs}

\begin{document}
Some text 
Some more text which continues on the next row. More text and more and more and more and more text.     
\begin{table}[htb]
\caption{Caption to be placed here.}
\centering
\begin{tabular}{cccc}
    \toprule
    \textbf{A}&\textbf{B}&\textbf{C}&\textbf{D}\\
    \midrule
    \textbf{1}&bla&bla&blabla\\
    \textbf{2}&bla&bla&bl\\
    \textbf{3l}&blablaba&bla&bla\\
    \textbf{4}&bla&b&la\\
    \bottomrule 
\end{tabular}   
\end{table}
\end{document}

Best Answer

What you view as 1.5-spacing of the tabular lines is the regular spacing. In fact, using \usepackage[onehalfspacing]{setspace} (or \usepackage[doublespacing]{setspace} for a better visible effect) does not affect the tabular lines. You can control their spacing by adding e.g.

\renewcommand\arraystretch{0.8}

to the preamble. The default value is 1.0, a larger value stretches the lines, a smaller one moves them closer together. However, this may lead to a poor quality of the tables from a typesetting point of view (see below); the default space has been chosen deliberately as rather large.

enter image description here

\documentclass[11pt,a4paper,twoside]{report}
\usepackage{caption}
\usepackage{booktabs}
\usepackage[onehalfspacing]{setspace}
\renewcommand\arraystretch{0.8}
\begin{document}
Some text Some more text which continues on the next row. More text
and more and more and more and more text.
\begin{table}[htb]
\caption{Caption to be placed here.}
\centering
\begin{tabular}{cccc}
  \toprule
  \textbf{A}&\textbf{B}&\textbf{C}&\textbf{D}\\
  \midrule
  \textbf{1}&bla&bla&blabla\\
  \textbf{2}&bla&bla&bl\\
  \textbf{3l}&blablaba&bla&bla\\
  \textbf{4}&bla&b&la\\
  \bottomrule 
\end{tabular}  
\end{table}
\end{document}