I'm trying to create a document showing how two numbers are added, focusing on moving from the ones column on up, but for some reason, my tabular environment's columns are not matching up with my actual input. I've declared three columns, yet my second declaration is adjusting my third column.
\begin{center}
\begin{tabular}{rp{1cm} rp{1cm} rp{1cm} }
2{\color{red}{2}} & & {\color{red}{2}}2 \\
+1{\color{red}{3}} & $\longrightarrow$ & +{\color{red}{1}}3 \\
\cline{1-1} \cline{3-3}
{\color{red}{5}} & & {\color{red}{3}}5
\end{tabular}
\end{center}
I'm trying to use the right arrow to show how we move from the ones column to the tens, so I figured I'd just assign it its own column. Yet the spacing is a little off, and when I try to turn the second rp{1cm} into c{1cm}, it messes up my third column. What's even weirder is that the \cline command places the line in the right place...

@{}before and after some columns to remove the inter column spacing, and perhaps change{\color{red}{2}}to\textcolor{red}{2}. – Peter Grill Aug 12 '12 at 5:04rspecifies a right aligned column, and ap{}specifies a\parboxcolumn that can contain multiple lines. But your table only has 3 columns, so the only specifications that matter are ther p{1cm} rcolumns. Don't think there is any reason in this case to be using thep{}column type for this specific example. So, when you changed the secondrp{1cm}(of which only thercolumn type was used) into accolumn, you changed the third column formright aligned tocenter aligned. – Peter Grill Aug 12 '12 at 5:18