From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88509 Path: news.gmane.org!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: Re: Rotate does not work on externalfigure Date: Wed, 20 Aug 2014 18:00:29 +0200 Message-ID: <99D63471-85D8-4D62-BBE7-7EAC42BEB509@rna.nl> References: <1CF7440C-A0ED-405F-AFF0-0C3B9A414076@rna.nl> <20C7B5AE-7B12-4C57-9140-07EBFB81B88C@rna.nl> <7AE55DEC-14CA-4B3B-8391-9A6AA937F90A@gmail.com> 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="===============0007970770==" X-Trace: ger.gmane.org 1408550469 10844 80.91.229.3 (20 Aug 2014 16:01:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Aug 2014 16:01:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 20 18:01:04 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 1XK8Jj-0002gS-IR for gctc-ntg-context-518@m.gmane.org; Wed, 20 Aug 2014 18:00:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3BD4310293 for ; Wed, 20 Aug 2014 18:00:55 +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 UD1pnn1lYY58 for ; Wed, 20 Aug 2014 18:00:55 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E7ABA10223 for ; Wed, 20 Aug 2014 18:00:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D25B1101E3 for ; Wed, 20 Aug 2014 18:00:42 +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 D2OeBET1gcKa for ; Wed, 20 Aug 2014 18:00:37 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 9762F101E1 for ; Wed, 20 Aug 2014 18:00:32 +0200 (CEST) Original-Received: from smtpq1.gn.mail.iss.as9143.net (smtpq1.gn.mail.iss.as9143.net [212.54.34.164]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s7KG0VEc000615 for ; Wed, 20 Aug 2014 18:00:31 +0200 Original-Received: from [212.54.34.136] (helo=smtp5.gn.mail.iss.as9143.net) by smtpq1.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1XK8JL-0005Hu-Ht for ntg-context@ntg.nl; Wed, 20 Aug 2014 18:00:31 +0200 Original-Received: from d57d7632.static.ziggozakelijk.nl ([213.125.118.50] helo=mail.rna.nl) by smtp5.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1XK8JL-0002i2-05 for ntg-context@ntg.nl; Wed, 20 Aug 2014 18:00:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by mail.rna.nl (Postfix) with ESMTP id 95698104E49E for ; Wed, 20 Aug 2014 18:00:30 +0200 (CEST) X-Virus-Scanned: amavisd-new at rna.nl Original-Received: from mail.rna.nl ([127.0.0.1]) by localhost (vanroodewierda.rna.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N9XoAhrV5g0R for ; Wed, 20 Aug 2014 18:00:29 +0200 (CEST) Original-Received: from hermione.rna.nl (hermione.rna.nl [192.168.2.86]) by mail.rna.nl (Postfix) with ESMTPSA id C4637104E485 for ; Wed, 20 Aug 2014 18:00:29 +0200 (CEST) In-Reply-To: <7AE55DEC-14CA-4B3B-8391-9A6AA937F90A@gmail.com> X-Mailer: Apple Mail (2.1878.6) X-Ziggo-spambar: - X-Ziggo-spamscore: -1.8 X-Ziggo-spamreport: ALL_TRUSTED=-1, BAYES_00=-1.9, CHW1252=0.01, FLOATLET=1.8, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.668 X-Ziggo-Spam-Status: No X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=212.54.34.164; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QMF40vPR - 4f176330b072 - 20140820 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:88509 Archived-At: --===============0007970770== Content-Type: multipart/alternative; boundary="Apple-Mail=_1A4CBEAC-2F89-42AE-83E0-3503F19CCF7D" --Apple-Mail=_1A4CBEAC-2F89-42AE-83E0-3503F19CCF7D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 20 Aug 2014, at 17:47, Wolfgang Schuster = wrote: >=20 > Am 20.08.2014 um 17:39 schrieb Gerben Wierda : >=20 >>=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. >=20 > The dimensions are correct when you use MkIV. I'd rather not change my production work to a research product :-) Too = risky. And officially mkii is still maintained (or that is what I read). >>> \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. 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. I do expect that \rotate[rotation=3D90]{\externalfigure[foo][width=3D4cm]}= gets me a height of 4cm. G >=20 > Wolfgang > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_1A4CBEAC-2F89-42AE-83E0-3503F19CCF7D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
On 20 Aug 2014, at 17:47, Wolfgang = Schuster <schuster.wolfgang@gmail.com> wrote:


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.

I'd rather not change = my production work to a research product :-) Too risky. And officially = mkii is still maintained (or that is what I read).

\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.

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

G


Wolfgang
_____________________________________________________________= ______________________
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.sup= elec.fr/projects/contextrev/
wiki     : = http://contextgarden.net
_____________________________________________________________= ______________________

= --Apple-Mail=_1A4CBEAC-2F89-42AE-83E0-3503F19CCF7D-- --===============0007970770== 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 ___________________________________________________________________________________ --===============0007970770==--