Dear Contexers,
I have succeeded in creating letters on my pdf stationary-1. Beautiful.
Now I want to print the second and following pages on paper with on a slightly different stationary (stationary-2), as is costumary.
Does anyone how to set this up?
(The example on the wiki is too complicated for me. I sticked to sample files from Hans Hagen, which makes it possible to use an xml address database.)
The present set up for the background is given below.
Kind regards,
Robert Ermers
\useexternalfigure[achtergrond][stationary-1.pdf][] \definelayer[achtergrond]
\setupbackgrounds[page][state=repeat,background={achtergrond}]
\setlayer[achtergrond][x=0in,y=0in]{\externalfigure[stationary-1.pdf]}
An option is to use the logo features but since layers are more fun i will probably turn that into an optional module some day (is anyone using it?)
put this in cont-new.tex:
\unprotect \unexpanded\def\flushlayer[#1]% {\doifelsevalue{\??ll#1\c!state}\v!next {\global\letvalue{\??ll#1\c!state}\v!start} % dangerous, stack-built-up {\doifelsevalue{\??ll#1\c!state}\v!continue {\global\letvalue{\??ll#1\c!state}\v!repeat} % dangerous, stack-built-up {\doifelsevalue{\??ll#1\c!doublesided}\v!yes {\doifundefinedelse{\@@layerbox#1}% {\dodoflushlayerA[#1]} {\doifbothsidesoverruled \dodoflushlayerB\v!left [#1]% left \orsideone \dodoflushlayerB\v!right[#1]% right \orsidetwo \dodoflushlayerB\v!left [#1]% left \od}} {\dodoflushlayerA[#1]}}}} \protect
Then you can say:
\definelayer[achtergrond-1][width=\paperwidth,height=\paperheight] \definelayer[achtergrond-2][width=\paperwidth,height=\paperheight,state=continue]
\setupbackgrounds[page][background={achtergrond-1,achtergrond-2}]
\setlayer[achtergrond-1][preset=lefttop] {\externalfigure[stationary-1.pdf]} \setlayer[achtergrond-2][preset=leftbottom]{\externalfigure[stationary-2.pdf]}
\starttext
test \page test \page test \page test \page
\stoptext
(i added the 'continue' option)
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context