# Data box.

• Apr 10th 2010, 09:06 PM
integral
Data box.
How do you create a data table with x and y values in Latex?

• Apr 10th 2010, 10:37 PM
CaptainBlack
Quote:

Originally Posted by integral
How do you create a data table with x and y values in Latex?

Simple math mode table:

$\begin{array}{|c||c|c|}\hline
\text{x value}&\text{y value}&\text{z value}\\ \hline\hline
1 &2.1&3.123\\ \hline
1.2& 1&3 \\ \hline
\end{array}$

produced with:

\begin{array}{|c||c|c|}\hline
\text{x value}&\text{y value}&\text{z value}\\ \hline\hline
1 &2.1&3.123\\ \hline
1.2& 1&3 \\ \hline
\end{array}

For more sophisticated approaches see here and here

CB