# tabular Why wouldn't this work?

#### dwsmith

##### Well-known member
Code:
\begin{tabular}{|c|c|c|c|c|c|}
\hline
\ell & m = -2 & m = -1 & m = 0 & m = 1 & m = 2\\
\hline
0 & - & - & 50\sqrt{\pi} & - & -\\
\hline
1 & - & 25\sqrt{3\pi} & 0 & 25\sqrt{3\pi} & -\\
\hline
2 & 100\sqrt{\frac{5}{6\pi}} & 0 & 0 & 0 & 100\sqrt{\frac{5}{6\pi}}
\hline
\end{tabular}

#### Ackbach

##### Indicium Physicus
Staff member
Code:
\begin{tabular}{|c|c|c|c|c|c|}
\hline
\ell & m = -2 & m = -1 & m = 0 & m = 1 & m = 2\\
\hline
0 & - & - & 50\sqrt{\pi} & - & -\\
\hline
1 & - & 25\sqrt{3\pi} & 0 & 25\sqrt{3\pi} & -\\
\hline
2 & 100\sqrt{\frac{5}{6\pi}} & 0 & 0 & 0 & 100\sqrt{\frac{5}{6\pi}}\\
\hline
\end{tabular}
Try the above.

#### dwsmith

##### Well-known member
Code:
\begin{tabular}{|c|c|c|c|c|c|}
\hline
\ell & m = -2 & m = -1 & m = 0 & m = 1 & m = 2\\
\hline
0 & - & - & 50\sqrt{\pi} & - & -\\
\hline
1 & - & 25\sqrt{3\pi} & 0 & 25\sqrt{3\pi} & -\\
\hline
2 & 100\sqrt{\frac{5}{6\pi}} & 0 & 0 & 0 & 100\sqrt{\frac{5}{6\pi}}\\
\hline
\end{tabular}
Try the above.
This didn't work as well. Is there a special preamble package needed for tabular?

#### Ackbach

##### Indicium Physicus
Staff member
This didn't work as well. Is there a special preamble package needed for tabular?
Not usually. Are you trying to use tabular in a math or text environment? The tabular is a text environment. Can you try a really simple tabular instance like this:

Code:
\begin{tabular}{|l|r|r|r|}
\hline
Name &1 &2 &3 \\ \hline
Peter &2.45 &34.12 &1.00 \\ \hline
John &0.00 &12.89 &3.71 \\ \hline
David &2.00 &1.85 &0.71 \\ \hline
\end{tabular}
This example is straight out of Math Into $\LaTeX$, by George Gratzer, on page 146. It works on QuickLaTeX.

#### dwsmith

##### Well-known member
Not usually. Are you trying to use tabular in a math or text environment? The tabular is a text environment. Can you try a really simple tabular instance like this:

Code:
\begin{tabular}{|l|r|r|r|}
\hline
Name &1 &2 &3 \\ \hline
Peter &2.45 &34.12 &1.00 \\ \hline
John &0.00 &12.89 &3.71 \\ \hline
David &2.00 &1.85 &0.71 \\ \hline
\end{tabular}
This example is straight out of Math Into $\LaTeX$, by George Gratzer, on page 146. It works on QuickLaTeX.
From this information, I just tried dollar signing all the tex data and that worked.