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 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
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 -----------------------------------------------------------------
Hans Hagen mailto:pragma@wxs.nl 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
On 12/28/2015 3:11 PM, Wolfgang Schuster wrote:
Hans Hagen mailto:pragma@wxs.nl 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.
hm, but i saw a size change in your test ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Hans Hagen mailto:pragma@wxs.nl 28. Dezember 2015 um 15:14
hm, but i saw a size change in your test Not for me, only the layout changes but the paper has always the same size.
Wolfgang
participants (2)
-
Hans Hagen
-
Wolfgang Schuster