From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82009 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: calculating with dimension unit Date: Mon, 22 Apr 2013 08:48:21 +0200 Message-ID: References: <5174728B.70102@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1366613305 7865 80.91.229.3 (22 Apr 2013 06:48:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Apr 2013 06:48:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 22 08:48:30 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 1UUAY8-00012q-Ip for gctc-ntg-context-518@m.gmane.org; Mon, 22 Apr 2013 08:48:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 81FAD101F1; Mon, 22 Apr 2013 08:48: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 LocPkAkg1ycP; Mon, 22 Apr 2013 08:48:25 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D6269101E8; Mon, 22 Apr 2013 08:48:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2728B101E8 for ; Mon, 22 Apr 2013 08:48:25 +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 me9bA-dm2eNd for ; Mon, 22 Apr 2013 08:48:24 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 128B1101E4 for ; Mon, 22 Apr 2013 08:48:24 +0200 (CEST) Original-Received: from mail-bk0-x236.google.com (mail-bk0-x236.google.com [IPv6:2a00:1450:4008:c01::236]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3M6mMb2022649 for ; Mon, 22 Apr 2013 08:48:22 +0200 Original-Received: by mail-bk0-f54.google.com with SMTP id q11so16191bkw.27 for ; Sun, 21 Apr 2013 23:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=V6Q1tBAqAvL3+6SKfSEjFUqtV1z6livnkjPYSPRShJU=; b=TnY/qQ2HWOyK5YJ7IPXp0CxBzWYsmEZFJO9PYokHcRFzTWpGa3uheWj2bgPWbDZPjE V1o7JKFLF+Dx1rGNK2YCTwwA12UYLRfkMvxzqVG4IEAMi2nNpQbc9jX1E7RrX8aXtZHr JkiZ8av1DwmYUIpRyEe/IoLMLmWTaYf+7ohNMZmIUA6jrZ9KmeZd6X0FJp15tOt+ci3J r1JxuGrlm+V4WsUJIiUWSpcOdOWfICgri3v7mugnLumhP/xBKe7b5AfrX4aLRtxYmMl/ IDj95R4gSFnMEgCOKcSVU+ilCfqiuH8cRsdxLsq31NXy1H6GuQhDwLrV/IbHhIAszvi3 uNKw== X-Received: by 10.205.38.3 with SMTP id tg3mr9933862bkb.66.1366613301941; Sun, 21 Apr 2013 23:48:21 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4d075138.pool.mediaWays.net. [77.7.81.56]) by mx.google.com with ESMTPS id w6sm6388355bkz.17.2013.04.21.23.48.20 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Apr 2013 23:48:21 -0700 (PDT) In-Reply-To: <5174728B.70102@gmx.de> X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::236; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RJqSMmND - 7bd0a5ad6400 - 20130422 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:82009 Archived-At: Am 22.04.2013 um 01:13 schrieb Jan Heinen : > In a book I produced with ConTeXt last year, I did a lot of calculation to be able to change the layout dynamicaly. > > With the actual version of ConTeXt I can't compile the book. I have tried a lot of things today ... without success. > I hope my minimal-example helps you to understand, what I want to do - and what I am doing wrong: > > > \starttext > \setupexternalfigures[location={local,global,default}] > > \defineexpandable\ColumnA {30mm} > \defineexpandable\ColumnB {40mm} > \defineexpandable\ColumnABi {\dimexpr(\ColumnA + \ColumnB)} > \defineexpandable\ColumnABii {\ctxlua{context(\ColumnA + \ColumnB)}} > \newdimen\ColumnABiii \ColumnABiii = \dimexpr(\ColumnA + \ColumnB) \definemeasure[ColumnA][30mm] \definemeasure[ColumnB][40mm] \definemeasure[ColumnBi][\the\dimexpr(\measure{ColumnA}+\measure{ColumnB})] > A \ColumnA% ok > > B \ColumnB% ok > > % I sadly get only errors when I delete the comments: > %ColumnABi: \ColumnABi A \measure{ColumnA} B \measure{ColumnB} C \measure{ColumnBi} Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________