ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Rotate does not work on externalfigure
@ 2014-08-20 15:09 Gerben Wierda
  2014-08-20 15:26 ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Gerben Wierda @ 2014-08-20 15:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

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

G

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

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rotate does not work on externalfigure
  2014-08-20 15:09 Rotate does not work on externalfigure Gerben Wierda
@ 2014-08-20 15:26 ` Wolfgang Schuster
  2014-08-20 15:39   ` Gerben Wierda
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2014-08-20 15:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


Am 20.08.2014 um 17:09 schrieb Gerben Wierda <gerben.wierda@rna.nl>:

> \placefigure [] [foo] {Bar}
> 	{\externalfigure[foo.pdf][rotation=90]}
> 
> Does not rotate my figure. It just remains as is. Am I forgetting something?

You’re using the wrong key.

\setupexternalfigures[location=default]

\starttext

\externalfigure[cow][width=4cm]

\externalfigure[cow][width=4cm,orientation=90]

\rotate[rotation=90]{\externalfigure[cow][width=4cm]}

\stoptext

Wolfgang


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

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rotate does not work on externalfigure
  2014-08-20 15:26 ` Wolfgang Schuster
@ 2014-08-20 15:39   ` Gerben Wierda
  2014-08-20 15:47     ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Gerben Wierda @ 2014-08-20 15:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


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

> 
> Am 20.08.2014 um 17:09 schrieb Gerben Wierda <gerben.wierda@rna.nl>:
> 
>> \placefigure [] [foo] {Bar}
>> 	{\externalfigure[foo.pdf][rotation=90]}
>> 
>> Does not rotate my figure. It just remains as is. Am I forgetting something?
> 
> You’re using the wrong key.
> 
> \setupexternalfigures[location=default]
> 
> \starttext
> 
> \externalfigure[cow][width=4cm]
> 
> \externalfigure[cow][width=4cm,orientation=90]

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.

> \rotate[rotation=90]{\externalfigure[cow][width=4cm]}

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.

> 
> \stoptext
> 
> 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.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


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

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rotate does not work on externalfigure
  2014-08-20 15:39   ` Gerben Wierda
@ 2014-08-20 15:47     ` Wolfgang Schuster
  2014-08-20 16:00       ` Gerben Wierda
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2014-08-20 15:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


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:
> 
>> 
>> Am 20.08.2014 um 17:09 schrieb Gerben Wierda <gerben.wierda@rna.nl>:
>> 
>>> \placefigure [] [foo] {Bar}
>>> 	{\externalfigure[foo.pdf][rotation=90]}
>>> 
>>> Does not rotate my figure. It just remains as is. Am I forgetting something?
>> 
>> You’re using the wrong key.
>> 
>> \setupexternalfigures[location=default]
>> 
>> \starttext
>> 
>> \externalfigure[cow][width=4cm]
>> 
>> \externalfigure[cow][width=4cm,orientation=90]
> 
> 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=90]{\externalfigure[cow][width=4cm]}
> 
> 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

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

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rotate does not work on externalfigure
  2014-08-20 15:47     ` Wolfgang Schuster
@ 2014-08-20 16:00       ` Gerben Wierda
  2014-08-20 16:07         ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Gerben Wierda @ 2014-08-20 16:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


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

> 
> 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:
>> 
>>> 
>>> Am 20.08.2014 um 17:09 schrieb Gerben Wierda <gerben.wierda@rna.nl>:
>>> 
>>>> \placefigure [] [foo] {Bar}
>>>> 	{\externalfigure[foo.pdf][rotation=90]}
>>>> 
>>>> Does not rotate my figure. It just remains as is. Am I forgetting something?
>>> 
>>> You’re using the wrong key.
>>> 
>>> \setupexternalfigures[location=default]
>>> 
>>> \starttext
>>> 
>>> \externalfigure[cow][width=4cm]
>>> 
>>> \externalfigure[cow][width=4cm,orientation=90]
>> 
>> 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=90]{\externalfigure[cow][width=4cm]}
>> 
>> 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=90] 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=90]{\externalfigure[foo][width=4cm]} 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.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


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

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rotate does not work on externalfigure
  2014-08-20 16:00       ` Gerben Wierda
@ 2014-08-20 16:07         ` Wolfgang Schuster
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2014-08-20 16:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


Am 20.08.2014 um 18:00 schrieb Gerben Wierda <gerben.wierda@rna.nl>:

>>>> \rotate[rotation=90]{\externalfigure[cow][width=4cm]}
>>> 
>>> 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=90] 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’s a \framed bug in MkII but you can use \rotate to avoid it.

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

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

\setupexternalfigures[location=default]

\starttext

\dontleavehmode\blackrule[height=4cm] \rotate[rotation=90]{\externalfigure[cow][width=4cm]}

\stoptext

Wolfgang


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

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-08-20 16:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-20 15:09 Rotate does not work on externalfigure Gerben Wierda
2014-08-20 15:26 ` Wolfgang Schuster
2014-08-20 15:39   ` Gerben Wierda
2014-08-20 15:47     ` Wolfgang Schuster
2014-08-20 16:00       ` Gerben Wierda
2014-08-20 16:07         ` Wolfgang Schuster

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