From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48663 Path: news.gmane.org!not-for-mail From: Arthur Reutenauer Newsgroups: gmane.comp.tex.context Subject: Re: Dividing dimensions Date: Mon, 23 Mar 2009 12:35:09 +0100 Message-ID: <20090323113509.GD4880@phare.normalesup.org> References: <20090321222612.GA19380@phare.normalesup.org> <661C3BE5-9CAE-4C51-96EC-5C7EE1B3B2BD@gmail.com> <200903230815.15528.alan.braslau@cea.fr> Reply-To: Mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1237808212 20005 80.91.229.12 (23 Mar 2009 11:36:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Mar 2009 11:36:52 +0000 (UTC) To: Mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 23 12:38:10 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LliTl-0007SP-N3 for gctc-ntg-context-518@m.gmane.org; Mon, 23 Mar 2009 12:38:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BC11B1FE00; Mon, 23 Mar 2009 12:36:39 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29962-07; Mon, 23 Mar 2009 12:35:33 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B1E8A1FE04; Mon, 23 Mar 2009 12:35:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EE9EB1FE04 for ; Mon, 23 Mar 2009 12:35:30 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04332-01-3 for ; Mon, 23 Mar 2009 12:35:11 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id DBC8C1FB29 for ; Mon, 23 Mar 2009 12:35:11 +0100 (CET) Original-Received: from nef2.ens.fr (nef2.ens.fr [129.199.96.40]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2NBZAVe027539 for ; Mon, 23 Mar 2009 12:35:11 +0100 Original-Received: from phare.normalesup.org (phare.normalesup.org [129.199.129.80]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id n2NBZ9Bw006141 for ; Mon, 23 Mar 2009 12:35:10 +0100 (CET) X-Envelope-To: Original-Received: by phare.normalesup.org (Postfix, from userid 1008) id E6EC0BC0A9; Mon, 23 Mar 2009 12:35:09 +0100 (CET) Content-Disposition: inline In-Reply-To: <200903230815.15528.alan.braslau@cea.fr> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.1.4 (nef2.ens.fr [129.199.96.32]); Mon, 23 Mar 2009 12:35:10 +0100 (CET) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.199.96.40; country=FR; region=A8; city=Paris; latitude=48.8667; longitude=2.3333; http://maps.google.com/maps?q=48.8667,2.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 197519802 - 8a91b88beb95 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:48663 Archived-At: > Can someone explain this? tex.dimen is a Lua table containing the dimension registers, in scaled points. Hence, if \!!dimena is 1pt, tex.dimen["!!dimena"] will be 65536, for instance. The rest is algebra and Lua control structures. > The solutions posted in lua seem more complicated > than that using \dimexpr If you mean from the number of characters, maybe. Then again, it's only about comparing a / b to c / d in both cases. It would be interesting to compare their efficiency. Arthur ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________