[Tex/LaTex] How to reduce spacing between lines in LaTex tables

bookstablestabularx

I have made a table using the \booktabs package and the result is a follows

enter image description here

with the code:

\begin{table}[h!]
\centering
\begin{tabular}{@{}lll@{}}
\toprule
Process & Cross section\\ 
\midrule 
GGF & 43.92   \\
VBF & 3.748   \\
WH & 1.380   \\
ZH & 0.9753  \\
ttH & 0.5085 \\
bbH & 0.5116 \\
\bottomrule
\end{tabular}
\end{table}

However, I want the table not to look so much spread out vertically, i.e. reduce the spacing between the lines. Something like this:

enter image description here

How can I do this? Thanks!

Best Answer

Spacing between table rows can be controlled using \def\arraystretch{0.50}.

\documentclass[english]{article}
\usepackage{booktabs}

\begin{document}

\begingroup
\tabcolsep = 15.0pt
\def\arraystretch{0.50}


\begin{table}[h!]
\centering
\begin{tabular}{@{}lll@{}}
\toprule
Process & Cross section\\ 
\midrule 
GGF & 43.92   \\
VBF & 3.748   \\
WH & 1.380   \\
ZH & 0.9753  \\
ttH & 0.5085 \\
bbH & 0.5116 \\
\bottomrule
\end{tabular}
\end{table}

\endgroup

\end{document}
Related Question