scrn-pag.mkiv: Set custom values for the page dimensions
Hi Hans, can you add a command to set own values for \clf_setupcanvas, e.g. \def\scrn_canvas_synchronize_set#1#2% {\clf_setupcanvas paperwidth \dimexpr#1\relax paperheight \dimexpr#2\relax \relax} \let\scrn_canvas_synchronize_reset\scrn_canvas_synchronize_only This is needed for the \pageinjection command when I include larger images which spread over multiple pages. Wolfgang
On 3/18/2018 4:58 PM, Wolfgang Schuster wrote:
Hi Hans,
can you add a command to set own values for \clf_setupcanvas, e.g.
\def\scrn_canvas_synchronize_set#1#2% {\clf_setupcanvas paperwidth \dimexpr#1\relax paperheight \dimexpr#2\relax \relax}
\let\scrn_canvas_synchronize_reset\scrn_canvas_synchronize_only
This is needed for the \pageinjection command when I include larger images which spread over multiple pages. So this is for non-interactive mode yes? I think we could do this:
\def\scrn_canvas_synchronize_only {\clf_setupcanvas paperwidth \interactionscreenparameter\c!width paperheight \interactionscreenparameter\c!height \relax} as they default to the values that are there now. That way you can use the width and height parameters of setupinteractionscreen instead of a low level call. Or do I misunderstand it. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Wolfgang Schuster