0

I have a problem with Latex, TeXmaker (program). I would like to make a table but the last two boxes are empty, but how can I be sure that there are also lines between the boxes that are empty? Now there is just one big opening? This is the code that I am using:

\begin{tabular}{|c|c|c|}
\hline
1 & 2 & 3\\ \hline
4 & 5 & 6\\ \hline
7 \\
\hline
\end{tabular}
3
0

As samcarter already said, you have to use 7 & & \\. This is required because in the case of 7 \\ Latex can not determine, if you mean 7 & & \\, & 7 &\\ or & & 7\\.

1
  • 2
    if there are no &s preceding the 7, latex will assume that it is in the first column. the problem is that latex assumes that the later columns don't need to be delineated since they are empty. (there actually do exist tables that are asymmetrical in this manner.) May 27 '16 at 14:23