Tabular Why wouldn't this work?

  • MHB
  • Thread starter Dustinsfl
  • Start date
  • Tags
    Work
In summary: 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:\begin{tabular}{|l|r|r|r|}\hlineName &1 &2 &3 \\ \hlinePeter &2.45 &34.12 &1.00 \\ \hlineJohn &0.00 &12.89 &3.71 \\ \hlineDavid &2.00 &1.85 &0.71 \\ \hline\end{tabular}
  • #1
Dustinsfl
2,281
5
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}
 
Physics news on Phys.org
  • #2
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.
 
  • #3
Ackbach said:
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?
 
  • #4
dwsmith said:
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 http://quicklatex.com/cache3/ql_0bd7f0ac3264265cc9e963e6fbd12d5a_l3.png.
 
  • #5
Ackbach said:
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 http://quicklatex.com/cache3/ql_0bd7f0ac3264265cc9e963e6fbd12d5a_l3.png.

From this information, I just tried dollar signing all the tex data and that worked.
 

FAQ: Tabular Why wouldn't this work?

Why is tabular data important in science?

Tabular data is important in science because it allows for organized and structured presentation of data, making it easier to analyze and draw conclusions. It also allows for easy comparison and visualization of data, which is essential in scientific research.

What are the advantages of using a tabular format for data?

The advantages of using a tabular format for data include easy organization and readability, the ability to quickly make calculations and perform statistical analysis, and the option to easily sort and filter data for specific criteria.

How should I format my tabular data for scientific research?

When formatting tabular data for scientific research, it is important to use a consistent and logical structure, include appropriate headings and units, and use appropriate software or tools to ensure accuracy and integrity of the data.

Can I use tabular data for both qualitative and quantitative research?

Yes, tabular data can be used for both qualitative and quantitative research. In qualitative research, the data may include descriptive information, while in quantitative research, the data may consist of numerical values. However, tabular data can be used to present and analyze both types of data.

Are there any limitations to using a tabular format for data?

One limitation of using a tabular format for data is that it may not be suitable for all types of data, such as complex or nonlinear data. Additionally, it may not effectively convey the full context or nuances of the data, and may require additional visual aids or explanations to fully understand the data.

Similar threads

Replies
2
Views
1K
Replies
2
Views
705
Replies
8
Views
1K
Replies
19
Views
1K
Replies
2
Views
1K
Back
Top