Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm new to LaTeX and learning quite quickly thanks to this site, among others that teach me quick fixes for my mistakes, but I can't seem to find a fix for this, I'm not able to draw the right border for this table, this is the code, am I doing something wrong?

\begin{center}
\begin{tabular}{|rccccc|}
\hline
  1 & 2 & 3 & 4 & 5 \\
  1 & 2 & 3 & 4 & 5 \\
  1 & 2 & 3 & 4 & 5 \\
\hline
\end{tabular}
\end{center}

(package tabu is loaded in top of the document).

enter image description here

Edit: Problem solved... The solution was simple: I defined 6 rows and only filled 5, so I had to add & 6 at the end of each line, before \, like this:

\begin{center}
\begin{tabular}{|rccccc|}
\hline
  1 & 2 & 3 & 4 & 5 & 6\\
  1 & 2 & 3 & 4 & 5 & 6\\
  1 & 2 & 3 & 4 & 5 & 6\\
\hline
\end{tabular}
\end{center}
share|improve this question

closed as too localized by egreg, Kurt, Werner, Mico, Paul Gaborit Mar 8 '13 at 23:13

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

7  
Welcome to TeX.sx! You should remove one c in \begin{tabular}{|rccccc|}, you are declaring one more column than you are using. –  Corentin Mar 8 '13 at 22:16
add comment

Browse other questions tagged or ask your own question.