From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75328 Path: news.gmane.org!not-for-mail From: Herbert Voss Newsgroups: gmane.comp.tex.context Subject: Re: how can I use framewidth in calculations Date: Sat, 24 Mar 2012 08:44:32 +0100 Organization: Freie =?ISO-8859-1?Q?Universit=E4t_Berlin?= Message-ID: <4F6D7B60.40907@FU-Berlin.DE> References: <4F6CFF5C.7040604@uni-bonn.de> <62C920E8-9294-4E51-BB6C-D64F3EB155B1@emory.edu> <4F6D7830.9090708@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1332575083 18893 80.91.229.3 (24 Mar 2012 07:44:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Mar 2012 07:44:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 24 08:44:42 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 1SBLeU-0002pL-3h for gctc-ntg-context-518@m.gmane.org; Sat, 24 Mar 2012 08:44:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 685BC101ED; Sat, 24 Mar 2012 08:44:41 +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 AEDFmYUzPihU; Sat, 24 Mar 2012 08:44:38 +0100 (CET) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CF079101DF; Sat, 24 Mar 2012 08:44:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03372101DF for ; Sat, 24 Mar 2012 08:44:37 +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 P0vLy-uYcH6u for ; Sat, 24 Mar 2012 08:44:35 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 9DC5D10194 for ; Sat, 24 Mar 2012 08:44:35 +0100 (CET) Original-Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q2O7hnOp027097 for ; Sat, 24 Mar 2012 08:43:50 +0100 Original-Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) for ntg-context@ntg.nl with esmtp (envelope-from ) id <1SBLeL-000392-Uz>; Sat, 24 Mar 2012 08:44:34 +0100 Original-Received: from z8177.pia.fu-berlin.de ([87.77.129.119]) by inpost2.zedat.fu-berlin.de (Exim 4.69) for ntg-context@ntg.nl with esmtpsa (envelope-from ) id <1SBLeL-0000fV-OY>; Sat, 24 Mar 2012 08:44:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120215 Thunderbird/10.0.2 In-Reply-To: <4F6D7830.9090708@uni-bonn.de> X-Originating-IP: 87.77.129.119 X-Bayes-Prob: 0.0008 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=130.133.4.66; country=DE; region=16; city=Berlin; latitude=52.5167; longitude=13.4000; http://maps.google.com/maps?q=52.5167,13.4000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WGNjHOwv - b3f288a9e9b9 - 20120324 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:75328 Archived-At: Am 24.03.2012 08:30, schrieb Thomas A. Schmitz: > On 03/24/12 03:27, Rogers, Michael K wrote: >> Try >> >> \framed[width=7cm]{\externalfigure[cow][width=\dimexpr\framedparameter{width}*9/10]} >> >> >> [I don't understand \dimexpr. For instance 7cm = ~198pt, 0.9 * 7 cm = >> ~179pt, but \dimexpr0.9\framedparameter{width} yields 27.5992pt. It >> doesn't seem to work well with decimals. No wiki page for it, that I >> can find.] > > Thank you, that is exactly what I needed! I'll see if I can find some > more information about \dimexpr now! \framed[width=7cm]{\externalfigure[cow][width=0.75\expandafter\dimexpr\framedparameter{width}]} works for me Herbert ___________________________________________________________________________________ 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 ___________________________________________________________________________________