Results 1 to 4 of 4

Math Help - Why isn't this.....

  1. #1
    Senior Member Sampras's Avatar
    Joined
    May 2009
    Posts
    301

    Why isn't this.....

    Why isn't this working to create a table: [ m ath] \begin{center}
    \begin{tabular}{ l | c || r | }
    \hline
    1 & 2 & 3 \\ \hline
    4 & 5 & 6 \\ \hline
    7 & 8 & 9 \\
    \hline
    \end{tabular}
    \end{center} [/ ma th]

    Note the spaces are there on purpose.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Math Engineering Student
    Krizalid's Avatar
    Joined
    Mar 2007
    From
    Santiago, Chile
    Posts
    3,654
    Thanks
    11
    what do you exactly want to write? a matrix?
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Junior Member
    Joined
    May 2009
    Posts
    27
    It seems you can't use the \..{center} environment on these forums.

    If you remove that, it works fine.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor
    Opalg's Avatar
    Joined
    Aug 2007
    From
    Leeds, UK
    Posts
    4,041
    Thanks
    7
    If you want to centre a mathematical expression, you can surround the math with BB code "center" tags:

    [center]
    [tex] \begin{tabular}{ l | c || r | }
    \hline
    1 & 2 & 3 \\ \hline
    4 & 5 & 6 \\ \hline
    7 & 8 & 9 \\
    \hline
    \end{tabular}[/tex]
    [/center]

    (But the table would look better if you put an extra | at the start of the column specification: {| l | c || r | }.)
    Follow Math Help Forum on Facebook and Google+


/mathhelpforum @mathhelpforum