ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Santy, Michael" <Michael.Santy@dynetics.com>
To: <ntg-context@ntg.nl>
Subject: Re: externalfigure rotation
Date: Wed, 19 Sep 2007 13:18:57 -0500	[thread overview]
Message-ID: <6703815B292B664DBAEC55EE3192386A20BB91@poseidon.in.dynetics.com> (raw)
In-Reply-To: <mailman.1923.1190214383.2346.ntg-context@ntg.nl>


[-- Attachment #1.1: Type: text/plain, Size: 1199 bytes --]



> 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=5in, height=2in]{\rotate[rotation=90]{\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


[-- Attachment #1.2: Type: text/html, Size: 1697 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

       reply	other threads:[~2007-09-19 18:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1923.1190214383.2346.ntg-context@ntg.nl>
2007-09-19 18:18 ` Santy, Michael [this message]
2007-09-17 13:38 Santy, Michael
2007-09-19 11:55 ` Wolfgang Schuster
2007-09-19 22:31   ` Duane Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6703815B292B664DBAEC55EE3192386A20BB91@poseidon.in.dynetics.com \
    --to=michael.santy@dynetics.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).