From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88507 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Rotate does not work on externalfigure Date: Wed, 20 Aug 2014 17:47:30 +0200 Message-ID: <7AE55DEC-14CA-4B3B-8391-9A6AA937F90A@gmail.com> References: <1CF7440C-A0ED-405F-AFF0-0C3B9A414076@rna.nl> <20C7B5AE-7B12-4C57-9140-07EBFB81B88C@rna.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="===============0556183935==" X-Trace: ger.gmane.org 1408549686 31527 80.91.229.3 (20 Aug 2014 15:48:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Aug 2014 15:48:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 20 17:48:01 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XK87F-000443-89 for gctc-ntg-context-518@m.gmane.org; Wed, 20 Aug 2014 17:48:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C4F56102D2 for ; Wed, 20 Aug 2014 17:48:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zI5ktoMmIRxc for ; Wed, 20 Aug 2014 17:48:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 696A910221 for ; Wed, 20 Aug 2014 17:47:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E91D7101E3 for ; Wed, 20 Aug 2014 17:47:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id M4Na7-stxpyx for ; Wed, 20 Aug 2014 17:47:43 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id E3F93101E1 for ; Wed, 20 Aug 2014 17:47:38 +0200 (CEST) Original-Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s7KGE8lu003546 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 20 Aug 2014 18:14:08 +0200 Original-Received: by mail-wi0-f171.google.com with SMTP id hi2so7355676wib.4 for ; Wed, 20 Aug 2014 08:47:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=0uVQKsViGXGkxVeFmzulhlKMdSWG3xg5dXdgUJrHs9g=; b=neGa72CSu/Fw6ZpN9AICtBxtLyKYUDMOl4ArZ6NW4S89h3NtqRkCQq+s+ym+SbwOGc T5LulHLlcmfi7v6r1PF6C3g24BcffFxhnG7U6Mehlk8kSP5BSjYLWP/Zq0Wtoasyxni1 NJS6h+eScPs9p7iiGQtDS0Jsc8Cr35q6aCmXpPQtM9wAjmJUxkbUhYXIXvlg6BpYvyu7 k/in7b0VeraV0mkRZKW34Zu2l3TRy46xDxoCk2DhT80oqrqeZVhk8Lm4QrxzuvKnfCVk aW52c1EsNbCpO6Y8/K1K1ITBFlatekN6BqHXoqlcN4XJcxSEXN9tde5O3bBkHjlmbhRX +gjw== X-Received: by 10.194.205.70 with SMTP id le6mr59052736wjc.25.1408549657214; Wed, 20 Aug 2014 08:47:37 -0700 (PDT) Original-Received: from keima.localdomain (x2f23767.dyn.telefonica.de. [2.242.55.103]) by mx.google.com with ESMTPSA id a11sm59445053wjx.46.2014.08.20.08.47.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Aug 2014 08:47:36 -0700 (PDT) In-Reply-To: <20C7B5AE-7B12-4C57-9140-07EBFB81B88C@rna.nl> X-Mailer: Apple Mail (2.1878.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::22b; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01MF4e853 - b8be16f2fe1c - 20140820 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88507 Archived-At: --===============0556183935== Content-Type: multipart/alternative; boundary="Apple-Mail=_245978C0-8EB6-4E7D-BCE5-628EB0906B32" --Apple-Mail=_245978C0-8EB6-4E7D-BCE5-628EB0906B32 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 20.08.2014 um 17:39 schrieb Gerben Wierda : >=20 > On 20 Aug 2014, at 17:26, Wolfgang Schuster = wrote: >=20 >>=20 >> Am 20.08.2014 um 17:09 schrieb Gerben Wierda : >>=20 >>> \placefigure [] [foo] {Bar} >>> {\externalfigure[foo.pdf][rotation=3D90]} >>>=20 >>> Does not rotate my figure. It just remains as is. Am I forgetting = something? >>=20 >> You=92re using the wrong key. >>=20 >> \setupexternalfigures[location=3Ddefault] >>=20 >> \starttext >>=20 >> \externalfigure[cow][width=3D4cm] >>=20 >> \externalfigure[cow][width=3D4cm,orientation=3D90] >=20 > This one has an interesting side effect. My image is wider than high. = It was scaled too small so i wanted to rotate it and make it bigger. = With this one it seems the bounding box is not rotated, so the top of = the rotated picture is off the page. The dimensions are correct when you use MkIV. >> \rotate[rotation=3D90]{\externalfigure[cow][width=3D4cm]} >=20 > This works better, but the figure's size is not changed. Apparently, = the size is calculated before it is rotated. And these claculations = stick in different ways. What do you expect, the width setting is for the unrotated figure. Wolfgang= --Apple-Mail=_245978C0-8EB6-4E7D-BCE5-628EB0906B32 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
Am 20.08.2014 um 17:39 schrieb Gerben = Wierda <gerben.wierda@rna.nl>:

On 20 Aug 2014, at 17:26, Wolfgang = Schuster <schuster.wolfgang@gmail.com> wrote:


\placefigure [] [foo] = {Bar}
= {\externalfigure[foo.pdf][rotation=3D90]}

Does not rotate my figure. It just remains as is. = Am I forgetting something?

You=92re= using the wrong = key.

\setupexternalfigures[location=3Ddefaul= t]

\starttext

\externalf= igure[cow][width=3D4cm]

\externalfigure[cow][widt= h=3D4cm,orientation=3D90]

This one has an interesting side effect. My image is wider than high. = It was scaled too small so i wanted to rotate it and make it bigger. = With this one it seems the bounding box is not rotated, so the top of = the rotated picture is off the = page.

The dimensions are = correct when you use MkIV.

\rotate[rotation=3D90]{\externalfigure[cow][width=3D4c= m]}

This works better, but the = figure's size is not changed. Apparently, the size is calculated before = it is rotated. And these claculations stick in different = ways.

What do you expect, the = width setting is for the unrotated = figure.

Wolfgang
= --Apple-Mail=_245978C0-8EB6-4E7D-BCE5-628EB0906B32-- --===============0556183935== 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0556183935==--