On 12/28/2015 10:34 AM, Wolfgang Schuster wrote:
Hi Hans,
these settings in scrn-pag.mkvi to change the paperwidth and paperheight values in the PDF file have to be done also for the \setupapersize command.
\appendtoks \global\let\scrn_canvas_synchronize_simple \scrn_canvas_synchronize_simple_indeed \global\let\scrn_canvas_synchronize_complex\scrn_canvas_synchronize_complex_indeed
\to \everysetuplayout
so \appendtoks \global\let\scrn_canvas_synchronize_simple \scrn_canvas_synchronize_simple_indeed \global\let\scrn_canvas_synchronize_complex\scrn_canvas_synchronize_complex_indeed \to \everysetuplayouttarget
As seen in this example the size for the second page isn’t changed from A4 to A5 because of the missing changes above which are done by \setuplayout.
%%%% begin example \starttext
\input ward
\page \setuppapersize[A5][A5]
% uncomment this to have the correct page size in the pdf % \setuplayout
\input ward
\stoptext %%%% end example
BTW: Are these settings for \setupinteractionscreen (also in scrn-pag.mkvi) correct because nothing changes?
\appendtoks \global\let\scrn_canvas_synchronize_simple \scrn_canvas_synchronize_simple \global\let\scrn_canvas_synchronize_complex\scrn_canvas_synchronize_complex \to \everysetupinteractionscreen
Wolfgang _______________________________________________ dev-context mailing list dev-context@ntg.nl http://mailman.ntg.nl/mailman/listinfo/dev-context
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------