I have several tables where I have tables which may look like this:
-------------------------------------
| X | Y | X + Y | X - Y | (X + Y)/2 |
-------------------------------------
| | | | | |
| | | | | |
| | | | | |
-------------------------------------
I mean X, Y are the data and columns 3, 4, 5 are derived from X and Y.
Typing in contents of column 3, 4, 5 are subject to human error and mistakes (can be embarrassing). I was looking to get an idea as to how you solve this problem in LaTeX tables. Is there a package capable of doing this?
When you copy-paste an Excel table, there is very little scope for such errors. Is something similar possible in LaTeX?
Best Answer
One way to do this would be to use
pgfplotstable
as in the example that follows. If you need to do more complex analysis, you can create a csv file that can be editted in excel and imported usingpgfplotstable
ordatatool
package. You will find quite a few examples of it underdatatool
andpgfplotstable
tag.The following example adds some more eye-candy and illustrates how to import data from a file.