TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I made 100 of tabulars like this and never had this problem. I want to end the tabular with an \hline, but after that there is a new line with 2 lines. How do I get rid of it?

- & private & onzichtbaar voor de buitenwereld\\
+ & public & zichtbaar voor de buitenwereld \\
\# & protected & zichtbaar voor subklassen\\
$\sim$ & geen naam & zichtbaar voor alles in dezelfde package\\
\caption{Visibiliteit van toestand en gedrag}
share|improve this question
up vote 6 down vote accepted

Remove the second \centering (just before \end{tabular}) it is doing nothing other than causing a blank row.

share|improve this answer
I knew it was going to be a stupid mistake... I didn't know you don't have to close the centering tag. – Aaron Dec 18 '12 at 13:55
@Aaron: As a rule of thumb, you only have to close something of the form \begin{...}. – Mohan Dec 18 '12 at 14:15
as Mohan said, also if you had done \begin{center} instead of the first \centering you would have needed the closing \end{center} to come after \end{tabular} so environment nesting works out correctly. – David Carlisle Dec 18 '12 at 14:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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