I have seen similar questions on the matter (Question 1, Question 2) of adding vertical space and not breaking vertical lines, the solutions suggested are to add space after the \\
using \\[0.1cm]
for example or changing the \arraystretch
which I do not want to do. Using \\[0.1cm]
allows me to add space just before a \hline
but not after as well.
How can I add vertical space after a \hline
without breaking vertical lines in a table?
Please find my MWE below:
\documentclass{scrreprt}
\usepackage{setspace}
\usepackage[left=2.5cm,right=2.5cm,top=3cm,bottom=3cm]{geometry}
\usepackage{array,tabularx}
\doublespacing
\begin{document}
\begin{table}[htb]
\centering
\onehalfspacing
\caption{Table of info.}
\begin{tabular}{c | c c}
& C/S Analyser & O/N/H Analyser \\
& EMIA 320 V2 & EMGA 830 \\[0.1cm]
\hline
\noalign{\vskip 0.1cm}
Sensitivity (ppm) & 0.1 & 0.001 \\
Furnace type & Induction & Impulse \\
Carrier gas & Pure O2 & Pure He \\[0.1cm]
\hline
\end{tabular}
\doublespacing
\label{tab:chem}
\end{table}
\end{document}
Best Answer
You can do that with the
cellspace
package: define a minimal vertical padding of rows, and prefix the relevant column specifier with the letterS
(orC
if you usesiunitx
):