From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26314 Path: news.gmane.org!not-for-mail From: nico Newsgroups: gmane.comp.tex.context Subject: Re: externalfigure and width/height scaling Date: Sun, 12 Mar 2006 23:57:26 +0100 Message-ID: References: <44147054.3090504@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1142204794 29594 80.91.229.2 (12 Mar 2006 23:06:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Mar 2006 23:06:34 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 13 00:06:21 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1FIZWA-0006wp-Vx for gctc-ntg-context-518@m.gmane.org; Sun, 12 Mar 2006 23:58:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A628012795; Sun, 12 Mar 2006 23:58:30 +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 31327-03; Sun, 12 Mar 2006 23:58:30 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F08711278B; Sun, 12 Mar 2006 23:54:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 41FE11278B for ; Sun, 12 Mar 2006 23:54:47 +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 31297-01 for ; Sun, 12 Mar 2006 23:54:46 +0100 (CET) Original-Received: from swip.net (mailfe03.tele2.fr [212.247.154.76]) by ronja.ntg.nl (Postfix) with SMTP id 0C8FA12783 for ; Sun, 12 Mar 2006 23:54:45 +0100 (CET) X-T2-Posting-ID: 3brHPWvyEzVNt0QNlxQWsxGJRDYe7rueGgqwO1zxZAg= X-Cloudmark-Score: 0.000000 [] Original-Received: from [83.177.198.182] (HELO localhost) by mailfe03.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 157552996 for ntg-context@ntg.nl; Sun, 12 Mar 2006 23:54:45 +0100 Original-To: "mailing list for ConTeXt users" In-Reply-To: <44147054.3090504@wxs.nl> User-Agent: Opera M2/7.54 (FreeBSD, build 955) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:26314 Archived-At: On Sun, 12 Mar 2006 20:02:44 +0100, Hans Hagen wrote: > nico wrote: >> Looking at the \externalfigure capabilities, I haven't found any option >> allowing to scale only one dimension (or scale both dimensions in an >> anamorphous way). >> >> Am I right, and if so what is the best method to perform this? >> >> I thought about using the \getfiguredimensions macro to get the natural >> dimensions, and then use something like >> width=0.2\imgwidth,height=0.8\imgheight, but it is a pity that the >> externalfigure interface does not allow this directly (something like >> wscale and hscale options). >> > there is indeed no xscale and yscale (although > \scale[sx=1.5,sy=2,3]{...} is available) > > % put this in cont-new.tex Thanks very much for your quick patch, it works as expected. Do you plan to include it in a next release? Regards, BG