# Leave empty cells in a table

How can I leave some empty cells in a table?

\documentclass[a4paper,english,12pt,oneside]{book}

\usepackage[left=20mm]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{mathtools}

\usepackage{graphics}
\usepackage{tabularx}
\usepackage{geometry}
\usepackage{multirow}
\usepackage{slashbox}

\begin{document}

\begin{tabular}{|c|c|c|c|}
\hline
\backslashbox{x}{y}  & Scalar & Vector & Matrix\\
\hline
Scalar & $\frac{dy}{dx}$ & $\frac{dy}{dx} = \left[\frac{\partial y_i}{\partial x} \right]$ & $\frac{dY}{dx} = \frac{\partial y_{ij}}{\partial x}$ \\
\hline
Vector & $\frac{dy}{dx} = \left[\frac{\partial y}{\partial x_j} \right]$ & $\frac{dy}{dx} = \left[\frac{\partial y_i}{\partial x_j} \right]$\\
\hline
Matrix & $\frac{dy}{dX} = \left[\frac{\partial y}{\partial x_{ji}} \right]$\\
\hline
\end{tabular}

\end{document}

• Your example is not compilable since slashbox is a package not available with TL oder MikTeX. What do yo mean by 'empty'?
– user31729
Commented Feb 7, 2017 at 8:56
• Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). It's part of this site's idea to identify good questions and answers through upvotes and acceptance of answers. Commented Aug 28, 2017 at 10:36

If you add column delimiters (&) with just a white space in-between, you get empty cells.

In your example, the last two rows could be modified like this:

\hline
Vector & $\frac{dy}{dx} = \left[\frac{\partial y}{\partial x_j} \right]$ & $\frac{dy}{dx} = \left[\frac{\partial y_i}{\partial x_j} \right]$ & \\
\hline
Matrix & $\frac{dy}{dX} = \left[\frac{\partial y}{\partial x_{ji}} \right]$ & &\\
\hline

• It does not work for the first cell in a row. Commented Feb 13, 2019 at 20:31

I'm posting this answer because googling for "empty space table" led me here and the answers are not quite what I needed. I know how to create a cell that is empty, but I needed blank space to print out the .pdf later and fill it by hand.

To include empty cells in a table large enough to write something by hand, you can use the \vspace command.

MWE:

\documentclass{article}
\begin{document}
\begin{center}
\begin{tabular}{| p{4.5cm} |p{4cm} | p{4cm}|}
\hline
Date & War parties  & War zones  \\ \hline
\vspace{5cm} &  &   \\
\hline
\end{tabular}
\end{center}
\end{document}


Output:

You could take as an example the table below.

\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{booktabs}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}

\begin{document}
\begin{table}[!ht]
\caption{aaaaaaaaaaaaaa}\label{tab:aaaaaaaa}
\centering
\begin{tabular}{*{15}{c}}\toprule
\multicolumn{10}{c}{Outputs} & 33 & 3 & 3 & 3 & Clock \\ \midrule
& & & & & & & & & & 1 & 1 & 0 & 1 & $t_0$ \\
& & & & & & & & & 1 & 1 & 0 & 1 & 0 & $t_1$ \\
& & & & & & & & & & & & & & \vdots \\
1 & 1 & 0 & 1 & 0 & 0 & 0 & 1 & 1 & 0 & 1 & 0 & 0 & 0 & $t_{10}$ \\
$a_0$ & $a_1$ & $a_2$ & $a_3$ & $a_4$ & $a_5$ & $a_6$ & $a_0$ & $a_1$ & $a_2$ & $a_3$ & $a_4$ & $a_5$ & $a_6$ & \\ \bottomrule
\end{tabular}
\end{table}
\end{document}