From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6278 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re: Calculating in TeX Date: Thu, 6 Dec 2001 10:50:15 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <601908040.20011206105015@bigfoot.com> References: Reply-To: Giuseppe Bilotta NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035396812 9072 80.91.224.250 (23 Oct 2002 18:13:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:13:32 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Tobias Burnus In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:6278 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6278 Wednesday, December 05, 2001 Tobias Burnus wrote: TB> Hi, TB> I have a nice document where I need to perform small calculation (actually TB> only calculating the average value): TB> if((#1+#2+#3) != 0) TB> (#1*1 + #2*2 + #3*3)/(#1+#2+#3) TB> else TB> "--" TB> Now I was thinking where I could do so in TeX. (I think there are some TB> macros in ConTeXt, but I cannot find them.) e-TeX has some arithmetic primitives. Don't know if they are somehow wrapped in ConTeXt, though. TB> If there is no good solution I will write a script which calculates this TB> values and does a inline replacement of the data. -- This is not that TB> error save since one needs to make sure that this script is run before TB> texexec... I'll take the chance to reiterate the need for a plug-in (module) structure in TeXUtil ... -- Giuseppe "Oblomov" Bilotta