2

I am trying to make a simple table in LaTeX following some tutorials but I am getting an extra column/row after the last row? Why is this? Any help would be highly appreciated :)

\documentclass[]{article}

\begin{document}

\title{Title}
\author{Author}
\date{\today}
\maketitle


\begin{center}
\begin{tabular}{| c | c | c | c |} \hline
Date & Reasons for review & Changes & Version \\ \hline
yy/xx/2012 & First edition & - & 1.0 \\ \hline
yy/xx/2012 & Something added & Section 5 & 1.01 \\ \hline
yy/xx/2012 & More things & Section n & 1.02 \\ \hline
\end{tabular}
\end{center}

\end{document}

enter image description here

  • You've got some extra white space in the last row. Remove the white space in front of \end{tabular} and you'll be set. – A.Ellett Jan 4 '13 at 2:02
  • Thanks! Could you put this as an answer? :) So I can put the check mark – nacho4d Jan 4 '13 at 2:05
  • How does one end up with OBJECT REPLACEMENT CHARACTER in their source? (It’s twice in front of \end{tabular} and four times in front of the actual last row.) – Qrrbrbirlbel Jan 4 '13 at 2:15
  • @Qrrbrbirlbel, how'd you figure out what that character was? I only knew it wasn't ascii. – A.Ellett Jan 4 '13 at 2:19
  • @A.Ellett copy/paste worked for me :) – percusse Jan 4 '13 at 2:35
4

You've got some kind of foreign white space in the last row---probably some non-ascii character that's showing up as white space---which is making LaTeX think there is a new row. Eliminate it and your table should look like what you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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