[Tex/LaTex] Increasing the space between two rows

booktabsspacingtables

This is possible duplicate of increasing space between two rows. But because of two many math expression there, I could not possibly understand it. Regrets.

I would like to increase the space between two rows so that table can be filled manually using pen or pencil. Here is MWE.

\documentclass[a4paper]{article}

%% Language and font encodings
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{booktabs}
%% Sets page size and margins
\usepackage[a4paper,top=3cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}
\begin{document}
\begin{table}
\centering
\begin{tabular}{p{5cm} p{5cm}}
\toprule 
Item & Quantity \\
\midrule 
Widgets & \dotfill \\ 
Gadgets & \dotfill \\
\midrule 
\end{tabular}
\end{table}
\end{document}

Best Answer

Here I show 3 ways:

  1. the optional argument to \\[]

  2. Add blank lines manually

  3. Add a custom strut to lines where needed.

Approach 1 will not work following a \modrule.

\documentclass[a4paper]{article}

%% Language and font encodings
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{booktabs}
%% Sets page size and margins
\usepackage[a4paper,top=3cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}
\begin{document}
%\begin{table}
\centering
Use optional argument to \verb|\\|, but can't be used for line after a
\verb|\midrule|

\begin{tabular}{p{5cm} p{5cm}}
\toprule 
Item & Quantity \\
\midrule 
Widgets & \dotfill \\[10pt]
Gadgets & \dotfill \\
\midrule 
\end{tabular}
%\end{table}

\bigskip

Add blank lines manually

\begin{tabular}{p{5cm} p{5cm}}
\toprule 
Item & Quantity \\
\midrule 
&\\
Widgets & \dotfill \\
&\\
Gadgets & \dotfill \\
\midrule 
\end{tabular}

\bigskip

Add a strut where needed

\def\mystrut{\rule{0pt}{2\normalbaselineskip}}
\begin{tabular}{p{5cm} p{5cm}}
\toprule 
Item & Quantity \\
\midrule 
Widgets\mystrut & \dotfill \\
Gadgets\mystrut & \dotfill \\
\midrule 
\end{tabular}

\end{document}

enter image description here