Increasing the length between rows in a table

enter image description here

\documentclass[a4paper, 11pt]{article}

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{array}

\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}

\begin{document}

\ra{3}
\begin{tabular}{ll}
\hline
\noalign{\vskip-12pt}
col 1 & col 2 \\
\noalign{\vskip-5pt}
\hline
1 & 2 \\
3 & 4 \\
5 & 6 \\
7 & 8 \\
\hline
\end{tabular}

\end{document}

I know is not the most elegant solution, but you could try:

\documentclass[a4paper, 11pt]{article}

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\begin{document}


\begin{tabular}{ll}
\hline
col 1 & col 2 \\
\hline
1 & 2 \\[2mm]
3 & 4 \\[2mm]
5 & 6 \\[2mm]
7 & 8 \\[2mm]
\hline
\end{tabular}


\end{document}

I know is like trying to insert a screw with a hammer, but perhaps it could be useful too, since takes away the need for your \ra command.

UPDATE:

Found a solution! is here: How to add extra spaces between rows in tabular environment?

Tags:

Macros

Tables