From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48628 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Dividing dimensions Date: Sun, 22 Mar 2009 00:00:13 +0100 Message-ID: <5918C1B0-435A-4A7D-8394-403806D5CE13@gmail.com> 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 (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 1237676494 20554 80.91.229.12 (21 Mar 2009 23:01:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Mar 2009 23:01:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 22 00:02:51 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 1LlADK-00036h-0U for gctc-ntg-context-518@m.gmane.org; Sun, 22 Mar 2009 00:02:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 84CA31FD88; Sun, 22 Mar 2009 00:01:24 +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 11063-03; Sun, 22 Mar 2009 00:01:08 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8D7911FD7E; Sun, 22 Mar 2009 00:01:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DFF5A1FD7E for ; Sun, 22 Mar 2009 00:01:06 +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 13841-01 for ; Sun, 22 Mar 2009 00:00:57 +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 6FF181FD7D for ; Sun, 22 Mar 2009 00:00:56 +0100 (CET) Original-Received: from mail-fx0-f176.google.com (mail-fx0-f176.google.com [209.85.220.176]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2LN0suS027110 for ; Sun, 22 Mar 2009 00:00:55 +0100 Original-Received: by fxm24 with SMTP id 24so1385255fxm.2 for ; Sat, 21 Mar 2009 16:00:54 -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=gVgFwzWnAbiwCLtuPtyNX/c0AefB3COhSD6EtQs4NWY=; b=YkBMKyUfmqstFa7lHVIepyOJ08EyVDT/lHxiGW/P9txxvLOcT1blMKTfiwQFvk6sVG m5qDXaer7zTXOkHIvaG7lYdETRiEMCkDcunmZcnZBV/UQJTKU1f4OPEMx4NXe8bVlwAD //i8NfIrNFPsG6/Nn2fquJGVZ1AELGx4EA7ME= 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=WGIEjbFWDUggKyl8A2dLrAXNPqLNGGveM/BaZMK3gtA+mOSJYv8in+m6yQBQTIUOCl EsUhrBCUUpXN6N0VgPs3yq9nkmjm+fzEXFXTYL+zsMj9qpxr3jzSxHOWBw9yLEHFgWhj jB/BFHNdUVvhBSQHo28zZVyNXRv6rZZDGlyg8= Original-Received: by 10.86.92.9 with SMTP id p9mr2494527fgb.15.1237676454408; Sat, 21 Mar 2009 16:00:54 -0700 (PDT) Original-Received: from ?10.70.210.133? ([82.113.106.157]) by mx.google.com with ESMTPS id 4sm1158201fgg.15.2009.03.21.16.00.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 21 Mar 2009 16:00:54 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.176; 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: 197048686 - b7956d4cdd8d 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:48628 Archived-At: Am 21.03.2009 um 23:49 schrieb Aditya Mahajan: >> \ifdim\dimexpr\!!dimena*100/\!!dimenb\relax>\dimexpr\!! >> dimenc*100/\!!dimend\relax >> this >> \else >> that >> \fi > > Ah. I was using \dimexpr\!!dimena/\!!dimenb with crazy results. So > the trick is to mulitply by a number in between. Thanks Wolfgang. Yes because you're working with integers and dividing a number by a bigger number results in zero (that's why you could also use \numexpr above). 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 ___________________________________________________________________________________