Hans Hagen
28. Dezember 2015 um 15:05
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
This won’t work because \setuppapersize uses \setupcurrentlayouttarget which doesn’t flush the \everysetuplayouttarget register.

Wolfgang