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.

Printable View

- May 27th 2009, 01:03 PMSamprasWhy 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. - May 27th 2009, 02:55 PMKrizalid
what do you exactly want to write? a matrix?

- May 27th 2009, 02:58 PMamitface
It seems you can't use the \..{center} environment on these forums.

If you remove that, it works fine. - May 28th 2009, 12:14 AMOpalg
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 | }.)