From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88511 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 18:07:25 +0200 Message-ID: <9FB3896D-168E-4E57-AF83-AFDA1B804DAD@gmail.com> References: <1CF7440C-A0ED-405F-AFF0-0C3B9A414076@rna.nl> <20C7B5AE-7B12-4C57-9140-07EBFB81B88C@rna.nl> <7AE55DEC-14CA-4B3B-8391-9A6AA937F90A@gmail.com> <99D63471-85D8-4D62-BBE7-7EAC42BEB509@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="===============0221455556==" X-Trace: ger.gmane.org 1408550880 16489 80.91.229.3 (20 Aug 2014 16:08:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Aug 2014 16:08:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 20 18:07:56 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 1XK8QP-00072B-3P for gctc-ntg-context-518@m.gmane.org; Wed, 20 Aug 2014 18:07:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9B573102D5 for ; Wed, 20 Aug 2014 18:07: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 kgEdTslJvnw5 for ; Wed, 20 Aug 2014 18:07:48 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4D8811022A for ; Wed, 20 Aug 2014 18:07:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 34304101E8 for ; Wed, 20 Aug 2014 18:07:37 +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 yQxalhrGmc+O for ; Wed, 20 Aug 2014 18:07:32 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 61960101E3 for ; Wed, 20 Aug 2014 18:07:32 +0200 (CEST) Original-Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s7KG7UGl011394 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 20 Aug 2014 18:07:31 +0200 Original-Received: by mail-wi0-f174.google.com with SMTP id d1so7364773wiv.13 for ; Wed, 20 Aug 2014 09:07:30 -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=IGaQrfur767x/LjEMqxpRAd/JoOVvFNc+Lk/7DdLAB0=; b=BT7cvT87FiBN+s+Mxu1n/8pTzq2it8RX+xA3rIQh4OALXuPV2Uhvf9WePHCSG5dNwL mCLeKaR5V+7Y4f2J7qTDDlpvV3OgeX7HHbhEBwmXIVuT/Pl/QRP2iurA6z/zS4VpxWnR 98ZyGm3+hDlbDdavSlsv3I9JBkPoWnF9BVXdAVWxE8pB1g9wCBZ/Pw7pgOJywX67bYXU thzqY5I2K7WxZKP42EMm5bgX70qqF6aS8a85V+TjkPJke3gQ0AgzFzethp39eWTs9Ul9 QFPHWpMz3ItoYyOvLEcn3lfV+kjcfn61v5YOx70RjRKNHPx4Gy0k7pRUbmFtchyuvEAb x2sw== X-Received: by 10.180.101.65 with SMTP id fe1mr16443135wib.53.1408550850095; Wed, 20 Aug 2014 09:07:30 -0700 (PDT) Original-Received: from keima.localdomain (x2f23767.dyn.telefonica.de. [2.242.55.103]) by mx.google.com with ESMTPSA id ba1sm10494319wib.24.2014.08.20.09.07.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Aug 2014 09:07:28 -0700 (PDT) In-Reply-To: <99D63471-85D8-4D62-BBE7-7EAC42BEB509@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::22e; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03MF47vcw - 8030dc374c2a - 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:88511 Archived-At: --===============0221455556== Content-Type: multipart/alternative; boundary="Apple-Mail=_F38308D1-79D6-4193-9F4B-21AEEB302C63" --Apple-Mail=_F38308D1-79D6-4193-9F4B-21AEEB302C63 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 20.08.2014 um 18:00 schrieb Gerben Wierda : >>>> \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. >>=20 >> What do you expect, the width setting is for the unrotated figure. >=20 > Actually, I was not using width at all, just \externalfigure[foo] >=20 > I expected that \externalfigure[foo][orientation=3D90] would first = rotate the figure and then calculate its size. But it did not. It put in = a figure of 4x8, while telling TeX the box was 8x4. It=92s a \framed bug in MkII but you can use \rotate to avoid it. > I do expect that \rotate[rotation=3D90]{\externalfigure[foo][width=3D4cm= ]} gets me a height of 4cm. As you can see the figure has a height of 4cm. \setupexternalfigures[location=3Ddefault] \starttext \dontleavehmode\blackrule[height=3D4cm] = \rotate[rotation=3D90]{\externalfigure[cow][width=3D4cm]} \stoptext Wolfgang --Apple-Mail=_F38308D1-79D6-4193-9F4B-21AEEB302C63 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
Am 20.08.2014 um 18:00 schrieb Gerben = Wierda <gerben.wierda@rna.nl>:
\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.

Actually, I was not using = width at all, just \externalfigure[foo]

I = expected that \externalfigure[foo][orientation=3D90] would first rotate = the figure and then calculate its size. But it did not. It put in a = figure of 4x8, while telling TeX the box was = 8x4.

It=92s a = \framed bug in MkII but you can use \rotate to avoid = it.

I do expect that = \rotate[rotation=3D90]{\externalfigure[foo][width=3D4cm]} gets me a = height of 4cm.

As you can see the = figure has a height of = 4cm.

\setupexternalfigures[location=3Ddefaul= t]

\starttext

\dontleave= hmode\blackrule[height=3D4cm] = \rotate[rotation=3D90]{\externalfigure[cow][width=3D4cm]}

\stoptext

Wolfgang

= --Apple-Mail=_F38308D1-79D6-4193-9F4B-21AEEB302C63-- --===============0221455556== 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 ___________________________________________________________________________________ --===============0221455556==--