How to create a horizontal table of value using Latex? I want to put values of x and y.

Results 1 to 14 of 14

- June 4th 2008, 01:49 PM #1

- June 4th 2008, 01:56 PM #2

LaTeX - Gestion des tableaux

I'm sorry for other people than arbolis, but it's in French

\hline is for horizontal line. The first command gives the table format, with columns or vertical lines, etc...

- June 4th 2008, 01:59 PM #3

- June 4th 2008, 01:59 PM #4

- June 4th 2008, 02:01 PM #5

- June 4th 2008, 02:07 PM #6

- June 4th 2008, 02:08 PM #7

- June 4th 2008, 02:12 PM #8

- June 4th 2008, 04:49 PM #9

- June 4th 2008, 05:04 PM #10this code will be slightly harder to modify. you need to add more "c"'s to get more columns. and you fill in all the x's before the y's underneath them

Pick google and write "latable." Download it.

- June 4th 2008, 05:15 PM #11
I've found "Latable" on your forum. Seems an easy an nice maker of tables. When I enter some data and I copy them as Latex, I got

\begin{tabular}{llll}

x & y & z & a \\

1 & 0 & 0 & 1 \\

2 & 0 & 1 & 1 \\

3 & 10^{\frac{1}{9}} & 1 & 1 \\

\end{tabular}

- June 5th 2008, 09:02 AM #12

- June 5th 2008, 09:26 AM #13This happens here, but not in other forums. Are you makin' a PDF?

- June 6th 2008, 03:43 AM #14
Table entries in the tabular environment are treated as text, not mathematics. If you wrap the item 10^{\frac{1}{9}} with dollar signs, to get

\begin{tabular}{llll}

x & y & z & a \\

1 & 0 & 0 & 1 \\

2 & 0 & 1 & 1 \\

3 & $10^{\frac{1}{9}}$ & 1 & 1 \\

\end{tabular}

then it will typeset as .

But it will still look wrong, because the symbols x, y, z, a in the top row have the wrong font shape. You should really replace the tabular environment by the array environment, which is similar except that the matrix entries will will treated as mathematical. So

\begin{array}{llll}

x & y & z & a \\

1 & 0 & 0 & 1 \\

2 & 0 & 1 & 1 \\

3 & 10^{\frac{1}{9}} & 1 & 1 \\

\end{array}

produces .