# Aligning text in tables

• July 30th 2009, 09:47 AM
Aligning text in tables
How do you align text in individual cells?
I'm trying to centre everything in the first row but everything else will be aligned to the right.
• July 30th 2009, 09:54 AM
TheAbstractionist
I was wondering about that myself.
• July 30th 2009, 11:25 AM
Opalg
Quote:

How do you align text in individual cells?
I'm trying to centre everything in the first row but everything else will be aligned to the right.

Do you mean something like this?

$\begin{array}{|r|r|r|}
\multicolumn{1}{|c|}{\text{Jan.}}&\multicolumn{1}{ c|}{\text{Feb.}}&\multicolumn{1}{c|}{\text{Mar.}} \\ \hline
1234567890&1&2 \\
0&1234567890&1 \\
0&0&1234567890
\end{array}$

You can override the format in an individual cell by using the \multicolumn command.