From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82017 Path: news.gmane.org!not-for-mail From: Jan Heinen Newsgroups: gmane.comp.tex.context Subject: Re: calculating with dimension unit Date: Mon, 22 Apr 2013 13:31:22 +0200 Message-ID: <51751F8A.3060905@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1366630290 22998 80.91.229.3 (22 Apr 2013 11:31:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Apr 2013 11:31:30 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 22 13:31:34 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UUEy5-0008Hx-AH for gctc-ntg-context-518@m.gmane.org; Mon, 22 Apr 2013 13:31:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8362C101F3; Mon, 22 Apr 2013 13:31:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id a6oGhllJKuBc; Mon, 22 Apr 2013 13:31:30 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0B1D4101E9; Mon, 22 Apr 2013 13:31:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0FBC4101E9 for ; Mon, 22 Apr 2013 13:31:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ijVnOwjFbljT for ; Mon, 22 Apr 2013 13:31:27 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 19EC5101E3 for ; Mon, 22 Apr 2013 13:31:27 +0200 (CEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3MBVQoU022948 for ; Mon, 22 Apr 2013 13:31:26 +0200 Original-Received: from [192.168.178.101] (p57BA2561.dip0.t-ipconnect.de [87.186.37.97]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0MWcMY-1U2GfP0hWE-00Xe55; Mon, 22 Apr 2013 13:31:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6 X-Provags-ID: V02:K0:oWhnpInNg3FYVnZxh4ZPNgE5cddux+M/FosFdLwWWyC Ly7pOIBDLMFmspRO7LvhrYXLp8ctgWRHRfDAp2aPvQR6Dtxoej 690+OKxJ7fNr6NHMSYIdLz7FBwZCn1vdAoV07A8OzZQ7Kt4oul 4sCDZYd0BMl3fYTPMupVSXj/LBpHBE0+XRUWAp+UrWHJQxa0Xg JGq0sFCunAOLeASvkND6BxU45xL0wU5mYQVsgvBrDOVKfLp3is +krVmDe7rLF4JDz0JEMabzaAGWP60zH7i7DXagunV8i8pXdTfI PK80M/wNI6uiXTRcXpEOIVx+hbv4h/2iMetOEXm2amE8CrW1w= = X-Bayes-Prob: 0.9969 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=212.227.126.171; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WJqXvq66 - 603c2d572b0a - 20130422 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82017 Archived-At: Hello, thanks for the helpfull tipps. Only one wasn't working: \defineexpandable\ColumnABii {\ctxlua{context([==[\ColumnA + \ColumnB]==])}} ColumnABii: \ColumnABii The result is: ColumnABii: 30mm+ 40mm And it should be ColumnABii: 70mm And in the other cases I get back: 199.16928pt instead of 70mm but this seems to be the same. I think this calculating with dimension is not very well documented in the context-wiki. Thus I would like to write a small article about "Calculating with dimension units" in the wiki.contextgarden.net to help others a bit. Or is there already an article somewhere? Regards Jannis ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________