For me, I do all in Excel/OOoCalc then export it into ConTeXt format :-)
Q.
On 10/13/05, Peter Münster
Hello,
I would like to do some spreadsheet like calculations with ConTeXt. Before using the same package, I've used once upon a time with LaTeX (realcalc), I would like to know, if there are already some macros for calculations in ConTeXt, or if you could recommend some method, how to do that.
FYI my old LaTeX-file:
\documentclass{article} \usepackage{dcolumn} \input{realcalc}% on CTAN \newcommand*\cc[1]{\multicolumn{1}{c}{#1}} \def\scanwert\ignorespaces#1\unskip{\gdef\WERT{#1}#1} \begin{document} \begin{tabular}{>{\scanwert}D{.}{,}{-1}% >{\Rmul\res\WERT{6.55957}\Radd\res\res{0.005}\Rtrunc\res2\res\res}% D{.}{,}{-1}}% \cc{Euro}&\cc{FF}\\\hline 20.33 & \\ 20.3 & \\ 20 & \\ 14.46 & \end{tabular} \end{document}
Cheers, Peter
-- http://vnoss.org Vietnamese Open Source Software Community