From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82021 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: calculating with dimension unit Date: Mon, 22 Apr 2013 16:51:18 +0200 Message-ID: References: <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" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1366642290 31219 80.91.229.3 (22 Apr 2013 14:51:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Apr 2013 14:51:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 22 16:51:31 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 1UUI5Y-0003CY-Bt for gctc-ntg-context-518@m.gmane.org; Mon, 22 Apr 2013 16:51:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 98F03101E3; Mon, 22 Apr 2013 16:51:27 +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 dD0da4eMl6m4; Mon, 22 Apr 2013 16:51:25 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id AD94F101E9; Mon, 22 Apr 2013 16:51:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A2C44101E9 for ; Mon, 22 Apr 2013 16:51:23 +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 y2g0wcN1rTvJ for ; Mon, 22 Apr 2013 16:51:19 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 1C2A7101E3 for ; Mon, 22 Apr 2013 16:51:19 +0200 (CEST) Original-Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3MEpISI030531 for ; Mon, 22 Apr 2013 16:51:18 +0200 Original-Received: by mail-lb0-f174.google.com with SMTP id s10so5642428lbi.5 for ; Mon, 22 Apr 2013 07:51:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=BK5BAU/ZaGwdcmjhR4AvPcFajyk9UErpsUom7n9mf5U=; b=bbahSidRkcbxsiiiuW7YZeBGUAOiRtm2rXRazQenhO2SQ2G6IR2AVh0gngAQitN4OE vTscrm5qeQe/o91KkYgsJEJnCvxzmk1/BEitdiBn+yaW6BZn3bZWbmiLHBZJFweENb/f BbrEbpWIjPr1BhtqLOOHNSs31O7/J7QStCsHSRFx8Xj5Ra7SFBq3bOY+zfEUxKBDpPsn Aff+REkfkvpD+zOvTIRDxgupSDdb0DtG+hqIvAeWoYXkuwHGcc9HzuNXU3YrwUDylXLF FZfMUhPXqEV/ynmWg1PmeDYkc3R7KhyXHiQids/bYybXPNeteavpyD5rW7VvrvRO4gUk fxGA== X-Received: by 10.112.140.100 with SMTP id rf4mr4362329lbb.82.1366642278174; Mon, 22 Apr 2013 07:51:18 -0700 (PDT) Original-Received: by 10.114.61.20 with HTTP; Mon, 22 Apr 2013 07:51:18 -0700 (PDT) In-Reply-To: <51751F8A.3060905@gmx.de> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.217.174; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QJr2Pibv - d42b06722926 - 20130422 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:82021 Archived-At: On Mon, Apr 22, 2013 at 1:31 PM, Jan Heinen wrote: > 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 ColumnABii: \the\dimexpr \ColumnABii\relax > > And in the other cases I get back: 199.16928pt instead of 70mm but this > seems to be the same. TeX internally uses scaled points (1pt = 2^16 scaled point) and prints values in american point (1pt = 1/72.27 inch 1inch =2.54cm) -- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________