Re: [NTG-context] issues with rotated paper size

2019-05-15 Thread Pablo Rodriguez
On 5/15/19 8:59 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 14.05.2019 um 21:39:
>> [...]
>> I see that a more complex method is deployed to get the box sizes.
>>
>> I simply thought that this could be a bug.
>
> What is the reason for this page rotation, maybe there is a better
> solution for this?

I want to avoid enabling auto rotate in the screens where these
documents are viewed.

In any case, as long as I use "\setupinteractionscreen[option={none,
max}]", everything works as expected.

May thanks for your help,

Pablo
--
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issues with rotated paper size

2019-05-15 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 14.05.2019 um 21:39:

On 5/14/19 8:05 PM, Wolfgang Schuster wrote:

Pablo Rodriguez schrieb am 14.05.2019 um 18:51:

[...]
I think it might be a bug.

When you add \setupinteractionscreen to your document ConTeXt uses a
more complex method to save the page size which includes calculations
for the different box types. Part of these calculations are the width
and height of the document and paper but when you rotate one of them you
get unexpected values for them.

Many thanks for your reply, Wolfgang.

I see that a more complex method is deployed to get the box sizes.

I simply thought that this could be a bug.
What is the reason for this page rotation, maybe there is a better 
solution for this?


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issues with rotated paper size

2019-05-14 Thread Pablo Rodriguez
On 5/14/19 8:05 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 14.05.2019 um 18:51:
>> [...]
>> I think it might be a bug.
>
> When you add \setupinteractionscreen to your document ConTeXt uses a
> more complex method to save the page size which includes calculations
> for the different box types. Part of these calculations are the width
> and height of the document and paper but when you rotate one of them you
> get unexpected values for them.

Many thanks for your reply, Wolfgang.

I see that a more complex method is deployed to get the box sizes.

I simply thought that this could be a bug.

Many thanks four your help,

Pablo


> \setuppapersize [A4,landscape,90] [A4]
>
> \starttext
>
> \starttabulate
> \NC Printpaperwidth  \EQ \the\printpaperwidth  \NC\NR
> \NC Paperwidth   \EQ \the\paperwidth   \NC\NR
> \TB
> \NC Printpaperheight \EQ \the\printpaperheight \NC\NR
> \NC Paperheight  \EQ \the\paperheight  \NC\NR
> \stoptabulate
>
> \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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
>


--
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issues with rotated paper size

2019-05-14 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 14.05.2019 um 18:51:

On 5/14/19 4:53 PM, Hans Hagen wrote:

i have no clue what you want to achieve

Hans and Wolfgang,

I think I have found a weird behaviour in ConTeXt (latest beta from
2019.05.12 19:05).

This is a sample of what I want to achieve (thanks to Wolfgang’s help):

 \setuppapersize [A4,landscape,90] [A4]
 \setupinteractionscreen[option={none, max}]
 \showframe
 \starttext
 \showlayout
 \stoptext

If I set "option=max" (instead of "option={none, max}", I get a square
paper of 210x210mm.

These are the right page dimensions in PDF with the sample above:

   /MediaBox [ 0 0 595.2756 841.8898 ]
   /CropBox [ 0 0 595.2756 841.8898 ]
   /TrimBox [ 0 0 595.2756 841.8898 ]

These are the dimensions with "\setupinteractionscreen[option=max]":

   /MediaBox [ 0 0 841.8898 595.2756 ]
   /CropBox [ 0 -246.61417 595.2756 595.2756 ]
   /TrimBox [ 0 -246.61417 595.2756 595.2756 ]

I think it might be a bug.
When you add \setupinteractionscreen to your document ConTeXt uses a 
more complex method to save the page size which includes calculations 
for the different box types. Part of these calculations are the width 
and height of the document and paper but when you rotate one of them you 
get unexpected values for them.


\setuppapersize [A4,landscape,90] [A4]

\starttext

\starttabulate
\NC Printpaperwidth  \EQ \the\printpaperwidth  \NC\NR
\NC Paperwidth   \EQ \the\paperwidth   \NC\NR
\TB
\NC Printpaperheight \EQ \the\printpaperheight \NC\NR
\NC Paperheight  \EQ \the\paperheight  \NC\NR
\stoptabulate

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issues with rotated paper size

2019-05-14 Thread Pablo Rodriguez
On 5/14/19 4:53 PM, Hans Hagen wrote:
> i have no clue what you want to achieve

Hans and Wolfgang,

I think I have found a weird behaviour in ConTeXt (latest beta from
2019.05.12 19:05).

This is a sample of what I want to achieve (thanks to Wolfgang’s help):

\setuppapersize [A4,landscape,90] [A4]
\setupinteractionscreen[option={none, max}]
\showframe
\starttext
\showlayout
\stoptext

If I set "option=max" (instead of "option={none, max}", I get a square
paper of 210x210mm.

These are the right page dimensions in PDF with the sample above:

  /MediaBox [ 0 0 595.2756 841.8898 ]
  /CropBox [ 0 0 595.2756 841.8898 ]
  /TrimBox [ 0 0 595.2756 841.8898 ]

These are the dimensions with "\setupinteractionscreen[option=max]":

  /MediaBox [ 0 0 841.8898 595.2756 ]
  /CropBox [ 0 -246.61417 595.2756 595.2756 ]
  /TrimBox [ 0 -246.61417 595.2756 595.2756 ]

I think it might be a bug.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issues with rotated paper size

2019-05-14 Thread Pablo Rodriguez
On 5/14/19 5:16 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 14.05.2019 um 16:12:
>> Dear list,
>>
>> I have the following sample:
>>
>>  \setuppapersize[A4, landscape][A4, 90]
>>  %~ \setupinteractionscreen[option=max]
>>  \showframe
>>  \starttext
>>  \showlayout
>>  \stoptext
>>
>> For some reason, the page is displaced from the paper bottom.
> \setuppapersize [A4,landscape,90] [A4] ?

Many thanks for your reply, Wolfgang.

This is exactly what I want.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issues with rotated paper size

2019-05-14 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 14.05.2019 um 16:12:

Dear list,

I have the following sample:

 \setuppapersize[A4, landscape][A4, 90]
 %~ \setupinteractionscreen[option=max]
 \showframe
 \starttext
 \showlayout
 \stoptext

For some reason, the page is displaced from the paper bottom.

\setuppapersize [A4,landscape,90] [A4] ?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issues with rotated paper size

2019-05-14 Thread Hans Hagen

On 5/14/2019 4:12 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \setuppapersize[A4, landscape][A4, 90]
 %~ \setupinteractionscreen[option=max]
 \showframe
 \starttext
 \showlayout
 \stoptext

For some reason, the page is displaced from the paper bottom. And if
fullscreen is set, the real paper size is a square.

I think this may be a bug. Could anyone explain me what I’m doing wrong
or confirm the issue?

i have no clue what you want to achieve

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] issues with rotated paper size

2019-05-14 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setuppapersize[A4, landscape][A4, 90]
%~ \setupinteractionscreen[option=max]
\showframe
\starttext
\showlayout
\stoptext

For some reason, the page is displaced from the paper bottom. And if
fullscreen is set, the real paper size is a square.

I think this may be a bug. Could anyone explain me what I’m doing wrong
or confirm the issue?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___