Re: [NTG-context] Restoring/switching paper size?

2016-07-20 Thread Procházka Lukáš Ing .
Great, thank you! Lukas On Mon, 18 Jul 2016 17:12:04 +0200, Wolfgang Schuster wrote: A normal environment should be enough (push and pop are used to save and restore states etc.) which inserts are the necessary page breaks. \unprotect \def\startpapersize

Re: [NTG-context] Restoring/switching paper size?

2016-07-18 Thread Wolfgang Schuster
Procházka Lukáš Ing. 18. Juli 2016 um 16:41 Hello, thank you for the patch. A solution which would not require named page sizes might be better as we don't necessary need to know the name of the "previous" (or "pushed") paper size (mostly we use "anonymous" page sizes,

Re: [NTG-context] Restoring/switching paper size?

2016-07-18 Thread Wolfgang Schuster
Procházka Lukáš Ing. 18. Juli 2016 um 16:59 Hello, one more problem - paper height still 297 mm? \definepapersize[A4L][A4,landscape] \showframe \starttext \setuppapersize[A4L] A4L \stoptext Look at Hans answer, you need at the moment a third argument for

Re: [NTG-context] Restoring/switching paper size?

2016-07-18 Thread Procházka Lukáš Ing .
Hello, one more problem - paper height still 297 mm? \definepapersize[A4L][A4,landscape] \showframe \starttext \setuppapersize[A4L] A4L \stoptext (Ctx already patched by WS' solution.) Best regards, Lukas On Mon, 18 Jul 2016 16:41:06 +0200, Procházka Lukáš Ing.

Re: [NTG-context] Restoring/switching paper size?

2016-07-18 Thread Procházka Lukáš Ing .
Hello, thank you for the patch. A solution which would not require named page sizes might be better as we don't necessary need to know the name of the "previous" (or "pushed") paper size (mostly we use "anonymous" page sizes, set up once in the document preamble). Thus push/pop way would be

Re: [NTG-context] Restoring/switching paper size?

2016-07-18 Thread Pablo Rodriguez
On 07/18/2016 03:27 PM, Henri Menke wrote: > This is a bug. The following example from the wiki > (http://wiki.contextgarden.net/PaperSetup) does not work either. At > least not with ConTeXt MkIV in TL2016. Hi Lukáš and Henri, this seems to work with latest beta: \showframe

Re: [NTG-context] Restoring/switching paper size?

2016-07-18 Thread Hans Hagen
On 7/18/2016 3:27 PM, Henri Menke wrote: This is a bug. The following example from the wiki (http://wiki.contextgarden.net/PaperSetup) does not work either. At least not with ConTeXt MkIV in TL2016. \showframe \definepapersize[main] [A4] \definepapersize[extra][A4,landscape]

Re: [NTG-context] Restoring/switching paper size?

2016-07-18 Thread Wolfgang Schuster
Procházka Lukáš Ing. 18. Juli 2016 um 15:09 Hello, why this code doesn't restore A4-portrait for page 3? \showframe \starttext Page 1 \page \adaptpapersize[A4,landscape] Page 2 \page Page 3 \stoptext page-lay.mkiv \unexpanded\def\adaptpapersize -

Re: [NTG-context] Restoring/switching paper size?

2016-07-18 Thread Henri Menke
This is a bug. The following example from the wiki (http://wiki.contextgarden.net/PaperSetup) does not work either. At least not with ConTeXt MkIV in TL2016. \showframe \definepapersize[main] [A4] \definepapersize[extra][A4,landscape] \setuppapersize[main] \starttext Page 1. Portrait \page

[NTG-context] Restoring/switching paper size?

2016-07-18 Thread Procházka Lukáš Ing .
Hello, why this code doesn't restore A4-portrait for page 3? \showframe \starttext Page 1 \page \adaptpapersize[A4,landscape] Page 2 \page Page 3 \stoptext (I need to mix A4 portrait/landscape pages in a document...) When I need to switch to landscape for more pages