one more problem - paper height still 297 mm?




(Ctx already patched by WS' solution.)

Best regards,


On Mon, 18 Jul 2016 16:41:06 +0200, Procházka Lukáš Ing. <l...@pontex.cz> wrote:


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 a bit more flexible (like \pushpagebackground / 
or making paper size local (enclosing paper setup into group - \start 
\setupppapersize ... \stop\page) would restore the previous paper size.

Thank you anyway.

Best regards


On Mon, 18 Jul 2016 16:00:05 +0200, Wolfgang Schuster 
<schuster.wolfg...@gmail.com> wrote:

Procházka Lukáš Ing. <mailto:l...@pontex.cz>
18. Juli 2016 um 15:09

why this code doesn't restore A4-portrait for page 3?


  Page 1
  Page 2
  Page 3

- {\global\let\page_paper_reinstate\page_paper_reinstate_indeed
+ {\global\let\page_paper_reinstate\page_paper_restore

-  {\page_paper_reinstate
-   \global\let\page_paper_reinstate\relax}

+   \global\let\page_paper_reinstate\relax
\to \everyaftershipout

(I need to mix A4 portrait/landscape pages in a document...)

When I need to switch to landscape for more pages (e.g. for long large
tables; \adaptpapersize is not enough as it changes just one current
page), is there something like:

  more pages
There is no start/stop version like we have for layouts
(\startlayout[...] ... \stoplayout) but you can use named sizes.

\definepapersize [main]  [A4]           [A4]
\definepapersize [extra] [A4,landscape] [A4,landscape]

     Page 1. \page
     Page 2. \page
     Page 3. \page
     Page 4. \page
     Page 5. \page
     Page 6. \page


Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.      | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751 (+420 720 951 172)
Fax: +420 244 461 038

Attachment: PapSize2.mkiv
Description: Binary data

Attachment: PapSize2.pdf
Description: Adobe PDF document

Attachment: page-lay.mkiv
Description: Binary data

If your question is of interest to others as well, please add an entry to the 

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

Reply via email to