Results 1 to 3 of 3

Math Help - Aligning text in tables

  1. #1
    Super Member Deadstar's Avatar
    Joined
    Oct 2007
    Posts
    722

    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.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Senior Member TheAbstractionist's Avatar
    Joined
    Apr 2009
    Posts
    328
    Thanks
    1
    I was wondering about that myself.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    MHF Contributor
    Opalg's Avatar
    Joined
    Aug 2007
    From
    Leeds, UK
    Posts
    4,041
    Thanks
    7
    Quote Originally Posted by Deadstar View Post
    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|}<br />
\multicolumn{1}{|c|}{\text{Jan.}}&\multicolumn{1}{  c|}{\text{Feb.}}&\multicolumn{1}{c|}{\text{Mar.}} \\ \hline<br />
1234567890&1&2 \\<br />
0&1234567890&1 \\<br />
0&0&1234567890<br />
\end{array}

    You can override the format in an individual cell by using the \multicolumn command.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Text alignment.
    Posted in the LaTeX Help Forum
    Replies: 1
    Last Post: December 7th 2009, 12:29 AM
  2. Replies: 1
    Last Post: October 13th 2008, 05:14 PM
  3. Under text
    Posted in the LaTeX Help Forum
    Replies: 3
    Last Post: June 11th 2008, 11:02 PM
  4. aligning equations and spacing with inparaenum
    Posted in the LaTeX Help Forum
    Replies: 0
    Last Post: March 15th 2008, 07:25 AM

Search Tags


/mathhelpforum @mathhelpforum