From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82029 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 23:34:32 +0200 Message-ID: <8F947B3E-4267-4EF5-BA77-EEDA1F72105C@gmail.com> References: <5175AB83.1040001@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 1366666478 10631 80.91.229.3 (22 Apr 2013 21:34:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Apr 2013 21:34:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 22 23:34:42 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 1UUONi-0001Ah-Ti for gctc-ntg-context-518@m.gmane.org; Mon, 22 Apr 2013 23:34:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 23C77101E3; Mon, 22 Apr 2013 23:34:38 +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 KO5dhGW10ngN; Mon, 22 Apr 2013 23:34:36 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 76B51101E9; Mon, 22 Apr 2013 23:34:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1EA0A101E9 for ; Mon, 22 Apr 2013 23:34:35 +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 TRDXQRl6vtdC for ; Mon, 22 Apr 2013 23:34:34 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 2DB60101E3 for ; Mon, 22 Apr 2013 23:34:34 +0200 (CEST) Original-Received: from mail-bk0-x231.google.com (mail-bk0-x231.google.com [IPv6:2a00:1450:4008:c01::231]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3MLYXl4025242 for ; Mon, 22 Apr 2013 23:34:33 +0200 Original-Received: by mail-bk0-f49.google.com with SMTP id w5so678699bku.8 for ; Mon, 22 Apr 2013 14:34:33 -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=OKHr6e+FKRr+gsIkR5Rb5kS+DLMUn5te/hbq/2jt06M=; b=yr8yr37QaD5kCSzuN4/QBP+yOILI7RWzhDsHNq/B/VSZUt58WLwfjxLieMwIMfpVPN vTGV5MjmaD9qcP4iAXdUkGfK4oGzckjjHySVaV37782gQVQ24OAPyhpfc1Vh+FeIcIvl tDrnXBFhl+X8yYKR1K3ZNbSw3rOV/E9rB2dnZUYebhAS9+sQ3FHk+xFSBoeK/+mxAjcq w6/TyDNoqF5TmkYWRx1MinWFYJ9/nhsx49Bbast8dNdvVBUzGpjtM8LsizUvXBEFJbhG vPUOAPJAMgfEwd6nA0cG6V2gMjp4CbGHtQHSHvIV4o5osz5tYuYFzapObV9AAtgwWkt3 eXDA== X-Received: by 10.204.166.133 with SMTP id m5mr12273312bky.78.1366666472999; Mon, 22 Apr 2013 14:34:32 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4d075138.pool.mediaWays.net. [77.7.81.56]) by mx.google.com with ESMTPS id tc9sm6064592bkb.18.2013.04.22.14.34.32 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Apr 2013 14:34:32 -0700 (PDT) In-Reply-To: <5175AB83.1040001@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::231; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07Jr9yxiR - 43e073cc3a71 - 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:82029 Archived-At: Am 22.04.2013 um 23:28 schrieb Jan Heinen : > Thank you all!!!!!! > > My book from last year (15.000 lines text + context-code and 1.500 lines macro-code now was compiled without no further problems! > > I only had to change all > \define\variable ... > > to > \defineexpandable\variable ... > > > I think, now I understand a little bit more about ConTeXt and try again to give a little bit back to the community. > I have started a new article on the context-wiki: > > http://wiki.contextgarden.net/Calculating_with_dimension_units > > Hopefully the more sophisticated ConTeXter help a little bit to improve the article. Please have a look what is wrong and what I have forgotten (or don't know). The Lua version can be removed because the line \defineexpandable\ColumnABii {\ctxlua{context([==[\ColumnA + \ColumnB]==])}} is only a complicated form to write \defineexpandable\ColumnABii {30mm + 40mm} What does happen is that context replaces \ColumnA with 30mm and \ColumnB with 40mm but nothing is calculate because the argument is a simple text string. 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 ___________________________________________________________________________________