From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48626 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Dividing dimensions Date: Sat, 21 Mar 2009 23:41:19 +0100 Message-ID: <661C3BE5-9CAE-4C51-96EC-5C7EE1B3B2BD@gmail.com> References: <20090321222612.GA19380@phare.normalesup.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1237675398 17872 80.91.229.12 (21 Mar 2009 22:43:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Mar 2009 22:43:18 +0000 (UTC) To: Mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 21 23:44:35 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 1Ll9vd-0006vO-Dd for gctc-ntg-context-518@m.gmane.org; Sat, 21 Mar 2009 23:44:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C35081FD7D; Sat, 21 Mar 2009 23:43:08 +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 24183-05-2; Sat, 21 Mar 2009 23:42:30 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A8B231FD9A; Sat, 21 Mar 2009 23:42:30 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B66F31FD8C for ; Sat, 21 Mar 2009 23:42:23 +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 10374-02-6 for ; Sat, 21 Mar 2009 23:42:02 +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 E895C1FD81 for ; Sat, 21 Mar 2009 23:42:01 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2LMg08P005260 for ; Sat, 21 Mar 2009 23:42:00 +0100 Original-Received: by fg-out-1718.google.com with SMTP id l27so236343fgb.8 for ; Sat, 21 Mar 2009 15:42:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=kfZyuEbTA/DFd+M7Q87qQdAcNVee/UZLSx70Hf8s8IY=; b=Sx9XZsiqojVOuUQFk4fR0qWPiswi/3RcRY7lW/XjG7WihVTBRYmGPv+rKzyceIu6NR P3FaqlZ2F4u0ic+McUmch35ib8q/1aP4yUE2XZQZiVSoZk3WW9gwEOybS/7SjYeAkly/ A6LtezxetqYFXKtOF4hMFv4YOFzxXBZYvSAZM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=Qxc8Ii8349qnDpoMM8e36+0cC0n+xjBOkhAyO2TptCDVTqYYcqAqOsuJqyw8StQARE gdAvhTL0ev4lw9tGIy5ECb6FCZFQc7EVQSmnf2ziksbbkkPqW7QQFzxPokANJ+8NxG56 uJag/D80+9Fupcp3u9meGt18b3EdvFp2Siod0= Original-Received: by 10.86.80.5 with SMTP id d5mr2467719fgb.27.1237675320175; Sat, 21 Mar 2009 15:42:00 -0700 (PDT) Original-Received: from ?10.70.210.133? ([82.113.106.157]) by mx.google.com with ESMTPS id e11sm5084106fga.10.2009.03.21.15.41.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 21 Mar 2009 15:41:59 -0700 (PDT) In-Reply-To: <20090321222612.GA19380@phare.normalesup.org> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.152; 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: 197046230 - 8813f3410cc7 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:48626 Archived-At: Am 21.03.2009 um 23:26 schrieb Arthur Reutenauer: >> 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. \starttext \unprotect \!!dimena=1cm \!!dimenb=2cm \!!dimenc=1cm \!!dimend=3cm \ifdim\dimexpr\!!dimena*100/\!!dimenb\relax>\dimexpr\!!dimenc*100/\!! dimend\relax this \else that \fi \!!dimend=1cm \ifdim\dimexpr\!!dimena*100/\!!dimenb\relax>\dimexpr\!!dimenc*100/\!! dimend\relax this \else that \fi \protect \stoptext 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________