From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22966 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Peter_M=FCnster?= Newsgroups: gmane.comp.tex.context Subject: spreadsheet Date: Thu, 13 Oct 2005 18:16:15 +0200 (CEST) Message-ID: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1129221012 23195 80.91.229.2 (13 Oct 2005 16:30:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Oct 2005 16:30:12 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 13 18:30:06 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EQ5tw-0004K0-EI for gctc-ntg-context-518@m.gmane.org; Thu, 13 Oct 2005 18:25:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0D971127A0; Thu, 13 Oct 2005 18:25:52 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19876-01; Thu, 13 Oct 2005 18:25:51 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8D69C1279B; Thu, 13 Oct 2005 18:22:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ACDD31279B for ; Thu, 13 Oct 2005 18:22:50 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19399-08 for ; Thu, 13 Oct 2005 18:22:49 +0200 (CEST) Original-Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by ronja.ntg.nl (Postfix) with ESMTP id CE9CD12798 for ; Thu, 13 Oct 2005 18:22:49 +0200 (CEST) Original-Received: from gaston.free.fr (unknown [62.147.61.162]) by smtp2-g19.free.fr (Postfix) with ESMTP id 121D45222D for ; Thu, 13 Oct 2005 18:22:48 +0200 (CEST) Original-Received: by gaston.free.fr (Postfix, from userid 500) id CFD1613C061; Thu, 13 Oct 2005 18:16:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by gaston.free.fr (Postfix) with ESMTP id CB9EB148110 for ; Thu, 13 Oct 2005 18:16:15 +0200 (CEST) X-X-Sender: peter@gaston.free.fr Original-To: ConTeXt list X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22966 Archived-At: 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://pmrb.free.fr/contact/