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.

  • 1
    Welcome to TeX.SX! To get a real MWE you have to add your preamble. - I think Increase LaTeX table row height should solve your problem. – Bobyandbob Oct 27 '17 at 8:35
  • Do you use any particular document class? Please also convey a sense of what "big enough to write something in" means to you. – Mico Oct 27 '17 at 8:48
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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.