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 am having a hard time figuring out why the text in the last cell on each row of this complex table I am creating is not positioning correctly. As you can see from my code, the issue only occurs when I set the height of the row manually (using the [size] technique after \\ or \tabularnewline).

Can anyone point out what I am doing wrong? Everything seems to work apart from this small, but annoying issue. I know it's a "last cell on line" thing, because if I add another column, the issue transfers to the cells in that column.

& & \centering{\textbf{\emph{C1}}} & \centering{\textbf{\emph{C2}}} & 

& \centering{OK}
& \centering{OK}
& \centering{OK}
& \centering{BAD}

& \centering{L1\\L2}
& \centering{OK}
& \centering{OK}
& \centering{OK}


Here is a screenshot of the offending cell:


share|improve this question
I should also add that I require line breaks, hence why I am using m{} and \centering{}. Thanks. – John Deeds Apr 20 '13 at 15:24
\centering is not a command with an argument; first of all remove the braces. – egreg Apr 20 '13 at 15:47
up vote 5 down vote accepted

\centering{OK} should be {\centering OK\par} as \centering does not take an argument, and the end of paragraph needs to be in its scope. that would fix your problem however a more convenient way is to remove all the \centering from the cells and use


which inserts the command automatically into each cell, and restores the meaning of \\ to end a table cell (\centering defines it to make a centred line break)

share|improve this answer
Thank you for your prompt reply, this works. Appreciate the help. – John Deeds Apr 21 '13 at 0:54

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.