1

I'm trying to create a tabular (7 rows, 4 columns) that is empty so the students can fill it out on a sheet. What I found here in this forum:

\begin{document}
\begin{tabular}{|l|@{\hspace{10em}}|}   
\hline   A \\   
\hline   B \\   
\hline 
\end{tabular}
\end{document}

This will set the hspace properly (after the first column which I also want to be big), but I also want it vertically to be bigger, so that every cell is big enough to write something in. If possible I want to do it without installing a package.

CarLaTeX
  • 62,716
Buh
  • 327

2 Answers2

2

My minimal approach would be to set \arraystretch to a bigger value than 1:

\documentclass[]{article}

\begin{document}
\bgroup% to limit the scope of the `\arraystretch` change
\def\arraystretch{2}
\begin{tabular}[]{|l|@{\hspace{10em}}|}
  \hline
  A \\
  \hline
  B \\
  \hline
\end{tabular}
\egroup
\end{document}

enter image description here

To also increase the width of the first column, I would use the p column specifier which takes the width as an argument:

\documentclass[]{article}

\begin{document}
\bgroup
\def\arraystretch{2}
\begin{tabular}[]{|p{10em}|@{\hspace{10em}}|}
  \hline
  A \\
  \hline
  B \\
  \hline
\end{tabular}
\egroup
\end{document}

enter image description here

Skillmon
  • 60,462
1

You can also add some space after the row with [...] after \\:

\documentclass{article}
\renewcommand*{\arraystretch}{2}

\begin{document}
\begin{tabular}{*4{|p{7em}}|}
  \hline
  A &&&\\[14pt]
  \hline
  B &&&\\[14pt]
  \hline
  C &&&\\[14pt]
  \hline
  D &&&\\[14pt]
  \hline
  E &&&\\[14pt]
  \hline
  F &&&\\[14pt]
  \hline
  G &&&\\[14pt]
  \hline
\end{tabular}
\end{document}

enter image description here

CarLaTeX
  • 62,716