# Table and Schemes in LaTeX

by lo2
Tags: latex, schemes, table
 P: n/a Hi I am in a rather hurry so a quick reply would be most appreciated. I have to make a table in which I put all the result that I have calculated, I just do not know how to make a such thing in LaTeX. I would like a table as in Word I just do not know how to make it in LaTeX!
 P: 448
 P: n/a I have tried that loads of times and it has never helped me so I would most appreciate if one of you would help me!
P: 448
Table and Schemes in LaTeX

 Quote by lo2 I have tried that loads of times and it has never helped me so I would most appreciate if one of you would help me!
What, precisely, are you unable to understand? The index of that guide tells you that everything you need to know about tables are on pages 42-44. Use a tabular environment, specify the alignment you want, use & to break up column entries, double backslash for new line and so on.

Honestly, everything you need is there. If you can't understand that guide, nobody here will be of much help to you.
P: n/a
 Quote by shoehorn What, precisely, are you unable to understand? The index of that guide tells you that everything you need to know about tables are on pages 42-44. Use a tabular environment, specify the alignment you want, use & to break up column entries, double backslash for new line and so on. Honestly, everything you need is there. If you can't understand that guide, nobody here will be of much help to you.
I have now tried for so long and I am still unable to make it work.

But please try to write a nice and big table which I can just paste into my tex document that might help.
 P: 85 Page 42 in 'the not so short introduction' is what you need. It is not at all difficult to make simple tables, try some of the examples there. If you cannot do that, start at page one and read on to page 7 and try to compile the minimal examples. You might also want to try http://www.tug.org/tex-archive/help/.../xl2latex.html there is an open office version somewhere around as well. An example: \documentclass[article]{memoir} \usepackage{units} \begin{document} \begin{table}[htbp] \centering \begin{tabular}{lc|rlcc} \toprule Tilstand & $E_{nj}$ & & Overgang & $\Delta E$ & $\lambda$ \\ \midrule $2S_{1/2}$ & $-3,401482\unit{eV}$ & & $3P_{1/2} \rightarrow 2S_{1/2}$ & $1,889717\unit{eV}$ & $656,086359\unit{nm}$ \\ $2P_{1/2}$ & $-3,401482\unit{eV}$ & & $3P_{3/2}$ & $1,889730\unit{eV}$ & $656,081701\unit{nm}$ \\ $2P_{3/2}$ & $-3,401436\unit{eV}$ & & $3S_{1/2}\rightarrow 2P_{1/2}$ & $1,889717\unit{eV}$ & $656,086359\unit{nm}$ \\ $3S_{1/2}$ & $-1,511765\unit{eV}$ & & $3D_{3/2}$ & $1,889730\unit{eV}$ & $656,081701\unit{nm}$ \\ $3P_{1/2}$ & $-1,511765\unit{eV}$ & & $3S_{1/2}\rightarrow 2P_{3/2}$ & $1,889672\unit{eV}$ & $656,102081\unit{nm}$ \\ $3P_{3/2}$ & $-1,511751\unit{eV}$ & & $3D_{3/2}$ & $1,889685\unit{eV}$ & $656,097422\unit{nm}$ \\ $3D_{3/2}$ & $-1,511751\unit{eV}$ & & $3D_{5/2}$ & $1,889690\unit{eV}$ & $656,095870\unit{nm}$ \\ $3D_{5/2}$ & $-1,511747\unit{eV}$ & & & & \\ \bottomrule \end{tabular} \caption{Udregning af energiniveauerne vist i figur~(ref) og bølgelængderne for de tiladte overgane.} \label{tab:balmer-line} \end{table} \end{document}
P: n/a
 Quote by Triss Page 42 in 'the not so short introduction' is what you need. It is not at all difficult to make simple tables, try some of the examples there. If you cannot do that, start at page one and read on to page 7 and try to compile the minimal examples. You might also want to try http://www.tug.org/tex-archive/help/.../xl2latex.html there is an open office version somewhere around as well. An example: \documentclass[article]{memoir} \usepackage{units} \begin{document} \begin{table}[htbp] \centering \begin{tabular}{lc|rlcc} \toprule Tilstand & $E_{nj}$ & & Overgang & $\Delta E$ & $\lambda$ \\ \midrule $2S_{1/2}$ & $-3,401482\unit{eV}$ & & $3P_{1/2} \rightarrow 2S_{1/2}$ & $1,889717\unit{eV}$ & $656,086359\unit{nm}$ \\ $2P_{1/2}$ & $-3,401482\unit{eV}$ & & $3P_{3/2}$ & $1,889730\unit{eV}$ & $656,081701\unit{nm}$ \\ $2P_{3/2}$ & $-3,401436\unit{eV}$ & & $3S_{1/2}\rightarrow 2P_{1/2}$ & $1,889717\unit{eV}$ & $656,086359\unit{nm}$ \\ $3S_{1/2}$ & $-1,511765\unit{eV}$ & & $3D_{3/2}$ & $1,889730\unit{eV}$ & $656,081701\unit{nm}$ \\ $3P_{1/2}$ & $-1,511765\unit{eV}$ & & $3S_{1/2}\rightarrow 2P_{3/2}$ & $1,889672\unit{eV}$ & $656,102081\unit{nm}$ \\ $3P_{3/2}$ & $-1,511751\unit{eV}$ & & $3D_{3/2}$ & $1,889685\unit{eV}$ & $656,097422\unit{nm}$ \\ $3D_{3/2}$ & $-1,511751\unit{eV}$ & & $3D_{5/2}$ & $1,889690\unit{eV}$ & $656,095870\unit{nm}$ \\ $3D_{5/2}$ & $-1,511747\unit{eV}$ & & & & \\ \bottomrule \end{tabular} \caption{Udregning af energiniveauerne vist i figur~(ref) og bølgelængderne for de tiladte overgane.} \label{tab:balmer-line} \end{table} \end{document}
Nice! A really nice scheme but how to add some more horizontal lines which can seperate the diffrent things better.

And how come it is in Danish?
 P: 85 I just copy/pasted from an old report, thats why it is in danish. To add more horizontal lines add "\midrule" between the lines in the table (if you complile the example i gave you, it should not be so difficult to see).
 P: 54 What program are you using to write your report in Latex? Most Latex editors come with a button that generates table for you. If you are on Windows, check Texniccenter. If you are on *nix, check either Kile (If you're on KDE) and Texmaker (what I use). And to make a horizontal line, you can also use "\hline"
P: n/a
 Quote by kcirick What program are you using to write your report in Latex? Most Latex editors come with a button that generates table for you. If you are on Windows, check Texniccenter. If you are on *nix, check either Kile (If you're on KDE) and Texmaker (what I use). And to make a horizontal line, you can also use "\hline"
Well I am using TeXnic center in windows 2000 and there is a table button but that does not help me alot. I try to make a table and then every time I just get loads of erorrs, so there must be anything that I have not understood. But what troubles me a bit is that you guys think that making table is piece of cake, whereas I simply do not get it, am I a total n00b or what?
 P: 85 to make small tables is easy -- larger, more complicated ones can be tricky to type out (i always only used emacs+auctex to write tex so i do not know how to do it in texnic center), and that is where the plugin to excel ot calc comes in. with them you can convert an table made in on of those programs to latex code that you just paste into your source file. It is also not difficult to see examples, there is surely some in the link in shoehorn's post, and a quick google search findes many more. For examples se http://amath.colorado.edu/documentat...erence/tables/
P: n/a
 Quote by Triss to make small tables is easy -- larger, more complicated ones can be tricky to type out (i always only used emacs+auctex to write tex so i do not know how to do it in texnic center), and that is where the plugin to excel ot calc comes in. with them you can convert an table made in on of those programs to latex code that you just paste into your source file. It is also not difficult to see examples, there is surely some in the link in shoehorn's post, and a quick google search findes many more. For examples se http://amath.colorado.edu/documentat...erence/tables/
Thank you for that?

But where can I get that excel converter?
 P: 85 The link to it is in post #6 above. It workes for higher versions of excel too. I get a runtime error in excel 2002, but it still works.
 P: n/a Does anyone know of a toturial on how to make schemes in LaTeX.
 P: n/a Thank you so much! You are awesome!
 P: 3 Hi, Does any one know how to insert a scheme in latex? I am using the same commands as figures, but it doesn't work!! do i need a special package for that? I would be most grateful for your help :)
 P: 3 how can i add schemes as well as figures? I also don't wish to have refernces for each figures to appear in table of content. please help!! I have to re-submit my first year report (PhD) soon many thanks

 Related Discussions General Math 0 Quantum Physics 0 Advanced Physics Homework 0 Electrical Engineering 5 General Discussion 0