From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36676 Path: news.gmane.org!not-for-mail From: "Santy, Michael" Newsgroups: gmane.comp.tex.context Subject: Re: externalfigure rotation Date: Wed, 19 Sep 2007 13:18:57 -0500 Message-ID: <6703815B292B664DBAEC55EE3192386A20BB91@poseidon.in.dynetics.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1347649637==" X-Trace: sea.gmane.org 1190226598 14872 80.91.229.12 (19 Sep 2007 18:29:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Sep 2007 18:29:58 +0000 (UTC) To: Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 19 20:29:37 2007 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 1IY4CN-0002X8-2j for gctc-ntg-context-518@m.gmane.org; Wed, 19 Sep 2007 20:22:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2C6962014D; Wed, 19 Sep 2007 20:22:53 +0200 (CEST) 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 24198-02-2; Wed, 19 Sep 2007 20:22:41 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0BBF120126; Wed, 19 Sep 2007 20:22:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CEAE12011E for ; Wed, 19 Sep 2007 20:22:37 +0200 (CEST) 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 24198-02 for ; Wed, 19 Sep 2007 20:22:31 +0200 (CEST) Original-Received: from myrddin.dynetics.com (myrddin.dynetics.com [204.154.192.33]) by ronja.ntg.nl (Postfix) with ESMTP id 3F1D220127 for ; Wed, 19 Sep 2007 20:19:01 +0200 (CEST) Original-Received: from poseidon.in.dynetics.com ([10.1.15.106]) by myrddin.dynetics.com (8.13.1/8.13.1) with ESMTP id l8JIG4hd019095 for ; Wed, 19 Sep 2007 13:16:04 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: externalfigure rotation Thread-Index: Acf65frcksD7+Oq/QHihqW2U0glEigAAbxDY X-dynetics.com-MailScanner-Information: Please contact the ISP for more information X-dynetics.com-MailScanner: Found to be clean X-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.439, required 2, autolearn=disabled, ALL_TRUSTED -1.44, HTML_MESSAGE 0.00) X-MailScanner-From: michael.santy@dynetics.com X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:36676 Archived-At: This is a multi-part message in MIME format. --===============1347649637== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7FAE9.8B2C6951" This is a multi-part message in MIME format. ------_=_NextPart_001_01C7FAE9.8B2C6951 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Hi Mike, > > you can control the rotation placement with the location key and the > value middle for location seems to be what you want but the the result > looks to me weird or broken and tried to fix this with the new value > center, you can see the results in small example below. I really appreciate the response, but I'm afraid I don't understand how = it addresses my question. I'm not having trouble with the rotation = pivot point (i.e., placement), but instead the order in which rotation = and scaling are applied to a figure. I am wanting to rotate a figure = within a defined bounding box. Mojca was kind enough to point out the = following technique. \scale[width=3D5in, = height=3D2in]{\rotate[rotation=3D90]{\externalfigure[yourfig]}} It creates a bounding box 5 inches wide and 2 inches tall, rotates the = figure 90 degrees and scales the image to fit in the 5x2" bounding box. = This approach meets my needs except that the scaling is applied = non-isomorphically if both dimensions are specified for the bounding = box. I'm now trying to figure out how to optionally scale the image to = fit the bounding box while keeping the same aspect ratio. Any thoughts? Cheers, Mike ------_=_NextPart_001_01C7FAE9.8B2C6951 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Re: externalfigure rotation

> Hi Mike,
>
> you can control the rotation placement with the location key and = the
> value middle for location seems to be what you want but the the = result
> looks to me weird or broken and tried to fix this with the new = value
> center, you can see the results in small example below.

I really appreciate the response, but I'm afraid I don't understand how = it addresses my question.  I'm not having trouble with the rotation = pivot point (i.e., placement), but instead the order in which rotation = and scaling are applied to a figure.  I am wanting to rotate a = figure within a defined bounding box.  Mojca was kind enough to = point out the following technique.

\scale[width=3D5in, = height=3D2in]{\rotate[rotation=3D90]{\externalfigure[yourfig]}}

It creates a bounding box 5 inches wide and 2 inches tall, rotates the = figure 90 degrees and scales the image to fit in the 5x2" bounding = box.  This approach meets my needs except that the scaling is = applied non-isomorphically if both dimensions are specified for the = bounding box.  I'm now trying to figure out how to optionally scale = the image to fit the bounding box while keeping the same aspect = ratio.

Any thoughts?

Cheers,
Mike

------_=_NextPart_001_01C7FAE9.8B2C6951-- --===============1347649637== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1347649637==--