Increasing the space between two rows?
You can use \addlinespace
from booktabs
:
\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
\addlinespace[1cm]
Widgets & \dotfill \\
\addlinespace[0.8cm]
Gadgets & \dotfill \\
\midrule
\end{tabular}
\end{table}
\end{document}
Modify arraystretch
:
\documentclass{article}
\usepackage{booktabs}
\begin{document}
{ % begin box to localize effect of arraystretch change
\renewcommand{\arraystretch}{3.0}
\begin{table}
\centering
\begin{tabular}{p{5cm} p{5cm}}
\toprule
Item & Quantity \\
\midrule
Widgets & \dotfill \\
Gadgets & \dotfill \\
\midrule
\end{tabular}
\end{table}
} % end box
\end{document}
Here I show 3 ways:
the optional argument to
\\[]
Add blank lines manually
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}