From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48656 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: Re: Dividing dimensions Date: Mon, 23 Mar 2009 08:15:15 +0100 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <200903230815.15528.alan.braslau@cea.fr> References: <20090321222612.GA19380@phare.normalesup.org> <661C3BE5-9CAE-4C51-96EC-5C7EE1B3B2BD@gmail.com> 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 1237792573 7584 80.91.229.12 (23 Mar 2009 07:16:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Mar 2009 07:16:13 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 23 08:17:31 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 1LlePa-0003Gv-Qr for gctc-ntg-context-518@m.gmane.org; Mon, 23 Mar 2009 08:17:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6A8FD1FDF2; Mon, 23 Mar 2009 08:16:05 +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 16734-03; Mon, 23 Mar 2009 08:15:27 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 642F31FDF1; Mon, 23 Mar 2009 08:15:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F13A71FDF1 for ; Mon, 23 Mar 2009 08:15:25 +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 16735-04 for ; Mon, 23 Mar 2009 08:15:18 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id 198B71FDE9 for ; Mon, 23 Mar 2009 08:15:18 +0100 (CET) Original-Received: from smtp6-g21.free.fr (smtp6-g21.free.fr [212.27.42.6]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2N7FEDs009509 for ; Mon, 23 Mar 2009 08:15:15 +0100 Original-Received: from smtp6-g21.free.fr (localhost [127.0.0.1]) by smtp6-g21.free.fr (Postfix) with ESMTP id D9FD5E08119 for ; Mon, 23 Mar 2009 08:15:12 +0100 (CET) Original-Received: from drec-hb-001817.localnet (cev75-1-81-57-248-225.fbx.proxad.net [81.57.248.225]) by smtp6-g21.free.fr (Postfix) with ESMTP id 07560E08030 for ; Mon, 23 Mar 2009 08:15:10 +0100 (CET) User-Agent: KMail/1.11.1 (Linux/2.6.28; KDE/4.2.1; i686; ; ) In-Reply-To: <661C3BE5-9CAE-4C51-96EC-5C7EE1B3B2BD@gmail.com> Content-Disposition: inline X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.27.42.6; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 197339909 - 005055423d7b X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:48656 Archived-At: Can someone explain this? The solutions posted in lua seem more complicated than that using \dimexpr I will add further examples to http://wiki.contextgarden.net/Expressions (or someone else can do this directly, of course) once I understand the advantages and limitations. Alan On Saturday 21 March 2009 23:41:19 Wolfgang Schuster wrote: > >> Can I divide dimensions to get a number in pdftex? > > > > LaTeX has a package to do exactly that, fp. You could look into its > > code. Or you could use LuaTeX :-) > > It's easy to do with etex but I would use lua if possible ___________________________________________________________________________________ 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 ___________________________________________________________________________________