ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* issues with rotated paper size
@ 2019-05-14 14:12 Pablo Rodriguez
  2019-05-14 14:53 ` Hans Hagen
  2019-05-14 15:16 ` Wolfgang Schuster
  0 siblings, 2 replies; 9+ messages in thread
From: Pablo Rodriguez @ 2019-05-14 14:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

* Re: issues with rotated paper size
  2019-05-14 14:12 issues with rotated paper size Pablo Rodriguez
@ 2019-05-14 14:53 ` Hans Hagen
  2019-05-14 16:51   ` Pablo Rodriguez
  2019-05-14 15:16 ` Wolfgang Schuster
  1 sibling, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2019-05-14 14:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

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
___________________________________________________________________________________

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

* Re: issues with rotated paper size
  2019-05-14 14:12 issues with rotated paper size Pablo Rodriguez
  2019-05-14 14:53 ` Hans Hagen
@ 2019-05-14 15:16 ` Wolfgang Schuster
  2019-05-14 16:31   ` Pablo Rodriguez
  1 sibling, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2019-05-14 15:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

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
___________________________________________________________________________________

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

* Re: issues with rotated paper size
  2019-05-14 15:16 ` Wolfgang Schuster
@ 2019-05-14 16:31   ` Pablo Rodriguez
  0 siblings, 0 replies; 9+ messages in thread
From: Pablo Rodriguez @ 2019-05-14 16:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

* Re: issues with rotated paper size
  2019-05-14 14:53 ` Hans Hagen
@ 2019-05-14 16:51   ` Pablo Rodriguez
  2019-05-14 18:05     ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Pablo Rodriguez @ 2019-05-14 16:51 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

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

* Re: issues with rotated paper size
  2019-05-14 16:51   ` Pablo Rodriguez
@ 2019-05-14 18:05     ` Wolfgang Schuster
  2019-05-14 19:39       ` Pablo Rodriguez
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2019-05-14 18:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

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
___________________________________________________________________________________

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

* Re: issues with rotated paper size
  2019-05-14 18:05     ` Wolfgang Schuster
@ 2019-05-14 19:39       ` Pablo Rodriguez
  2019-05-15 18:59         ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Pablo Rodriguez @ 2019-05-14 19:39 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

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

* Re: issues with rotated paper size
  2019-05-14 19:39       ` Pablo Rodriguez
@ 2019-05-15 18:59         ` Wolfgang Schuster
  2019-05-15 19:47           ` Pablo Rodriguez
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2019-05-15 18:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

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
___________________________________________________________________________________

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

* Re: issues with rotated paper size
  2019-05-15 18:59         ` Wolfgang Schuster
@ 2019-05-15 19:47           ` Pablo Rodriguez
  0 siblings, 0 replies; 9+ messages in thread
From: Pablo Rodriguez @ 2019-05-15 19:47 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

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

end of thread, other threads:[~2019-05-15 19:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-14 14:12 issues with rotated paper size Pablo Rodriguez
2019-05-14 14:53 ` Hans Hagen
2019-05-14 16:51   ` Pablo Rodriguez
2019-05-14 18:05     ` Wolfgang Schuster
2019-05-14 19:39       ` Pablo Rodriguez
2019-05-15 18:59         ` Wolfgang Schuster
2019-05-15 19:47           ` Pablo Rodriguez
2019-05-14 15:16 ` Wolfgang Schuster
2019-05-14 16:31   ` Pablo Rodriguez

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