using ConTeXt/LuaTeX instead of a spreadsheet program
![](https://secure.gravatar.com/avatar/8a87cf76bc6a6a9bf0d825141593b83f.jpg?s=120&d=mm&r=g)
Dear ConTeXt folks, could you please share your experiences with or point me to a resource dealing with the following issue. I need to evaluate some physics experiments where I have some values which got measured. I thought I could use ConTeXt with LuaTeX to do all the calculations instead of the calculator and enter the results by hand or a spreadsheet program. Would I enter the values (not many) at the top of the TeX document and refer to them in the other places? Is an extra file a better approach? Thanks, Paul [1] http://wiki.contextgarden.net/Programming_in_LuaTeX
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 16.02.2011 um 18:47 schrieb Paul Menzel:
Dear ConTeXt folks,
could you please share your experiences with or point me to a resource dealing with the following issue.
I need to evaluate some physics experiments where I have some values which got measured. I thought I could use ConTeXt with LuaTeX to do all the calculations instead of the calculator and enter the results by hand or a spreadsheet program.
Would I enter the values (not many) at the top of the TeX document and refer to them in the other places? Is an extra file a better approach?
Do you have a example what do you want to achieve? Wolfgang
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 16-2-2011 6:47, Paul Menzel wrote:
Dear ConTeXt folks,
could you please share your experiences with or point me to a resource dealing with the following issue.
I need to evaluate some physics experiments where I have some values which got measured. I thought I could use ConTeXt with LuaTeX to do all the calculations instead of the calculator and enter the results by hand or a spreadsheet program.
Would I enter the values (not many) at the top of the TeX document and refer to them in the other places? Is an extra file a better approach?
I would put them in a lua table and access them when needed (you can load that table from an external file) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
On 02/16/11 23:46, Martin Schröder wrote:
2011/2/16 Hans Hagen
: I would put them in a lua table and access them when needed (you can load that table from an external file)
Which precision do we have in luatex? Single or double?
double. Best wishes, Taco
![](https://secure.gravatar.com/avatar/6342545a34fa15e02b689496a3fd2443.jpg?s=120&d=mm&r=g)
On Wed, Feb 16, 2011 at 18:47, Paul Menzel
Dear ConTeXt folks,
could you please share your experiences with or point me to a resource dealing with the following issue.
I need to evaluate some physics experiments where I have some values which got measured. I thought I could use ConTeXt with LuaTeX to do all the calculations instead of the calculator and enter the results by hand or a spreadsheet program.
Would I enter the values (not many) at the top of the TeX document and refer to them in the other places? Is an extra file a better approach?
In your place, I'll go to MS Excel or Openoffice Calc :)
participants (6)
-
Hans Hagen
-
Martin Schröder
-
Paul Menzel
-
Taco Hoekwater
-
Vnpenguin
-
Wolfgang Schuster