issues with rotated paper size
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
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 ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
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
participants (3)
-
Hans Hagen
-
Pablo Rodriguez
-
Wolfgang Schuster