From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75335 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: how can I use framewidth in calculations Date: Sat, 24 Mar 2012 11:32:12 +0100 Message-ID: References: <4F6CFF5C.7040604@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1332585196 29831 80.91.229.3 (24 Mar 2012 10:33:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Mar 2012 10:33:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 24 11:33:16 2012 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 1SBOHb-0001wY-KW for gctc-ntg-context-518@m.gmane.org; Sat, 24 Mar 2012 11:33:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B9C93101E8; Sat, 24 Mar 2012 11:33:14 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id d9iSCvBbo6T2; Sat, 24 Mar 2012 11:33:13 +0100 (CET) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2E6A4101E1; Sat, 24 Mar 2012 11:33:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1676F101E1 for ; Sat, 24 Mar 2012 11:33:11 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5kVnwjqiepag for ; Sat, 24 Mar 2012 11:33:10 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 14896101DF for ; Sat, 24 Mar 2012 11:33:10 +0100 (CET) Original-Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q2OAX9ex027428 for ; Sat, 24 Mar 2012 11:33:09 +0100 Original-Received: by werj55 with SMTP id j55so4311418wer.14 for ; Sat, 24 Mar 2012 03:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=swEYFYBTEHvX1JXuc7Iy5dJ7/qpmDYYl3bF+k/gjYPI=; b=ee5ShNOYkeqPtA3dY6j9HYv7p7ODqEBCoKmM0pgGotSAQfPWGDnDqa80R2CQsJ4dI4 QWGVprXWTl4vm4WV2cLPP2/g+TZelj4yswqrq3o6ZAySgXptEZx5Jc/ufLYgkUiAATQC oRNOSy3T4Y3NmEcDvM7P3j2klV0uFIfKVAcUJKgkOmlTZfjLj7rSkOERkhY0AUFIaBbx FdUrNqQs8tVnluT44FGu2G6x9xn2Ijax6Dt8ouiHzzKUIczSSFevDI20Q3+pna3p9Rd3 ioettTDsT5coOIqAPbxBMDYaWASHfqUqDPZvyc8gye5YbjVj/ujO4EKs8Ircx1WwPCOf 9/Fg== Original-Received: by 10.180.88.199 with SMTP id bi7mr4088004wib.12.1332585189077; Sat, 24 Mar 2012 03:33:09 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AFB53C.dip.t-dialin.net. [87.175.181.60]) by mx.google.com with ESMTPS id ex2sm35766215wib.8.2012.03.24.03.32.52 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 24 Mar 2012 03:33:08 -0700 (PDT) In-Reply-To: <4F6CFF5C.7040604@uni-bonn.de> X-Mailer: Apple Mail (2.1257) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.169; country=US; latitude=38.0000; longitude=-97.0000; http://maps.google.com/maps?q=38.0000,-97.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QGNmx9Vv - e60fb633de52 - 20120324 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:75335 Archived-At: Am 23.03.2012 um 23:55 schrieb Thomas A. Schmitz: > Hi all, > > maybe I'm overlooking something obvious, but...: when I have a figure, I can calculate its width dependent on the page width, and it will adapt: > > \starttext > > \externalfigure[cow][width=0.6\textwidth] > > \stoptext > > But is there a method for similar calculations inside a frame? Here's what I tried, but it doesn't give the expected result (the image is much smaller than expected): > > \starttext > > \framed[width=7cm]{\externalfigure[cow][width=\the\dimexpr0.9\framedparameter{width}\relax]} > > \stoptext > > Thanks for any pointers! \starttext \framed[width=7cm]{\externalfigure[cow][width=0.5\dimexpr\framedwidth\relax]} \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________