Am 12.11.2014 um 17:05 schrieb Pablo Rodriguez
: Dear list,
I have the following sample kindly provided to me by Jaroslav:
\unexpanded\def\lineaction{ \Name\crlf \Address\crlf \Postcode--\City\crlf \page }
Well, how can I put this (or a similar) structure inside a layer?
A minimal layer would be:
\definelayer[MyLayer][state=start] \setlayerframed[MyLayer][frame=off]{merge fields} \setupbackgrounds[page][background={MyLayer}] \starttext a \stoptext
Many thanks for your help,
Move the \setlayer… command after \starttext or load a font with \setupbodyfont before you set the content. \setvariables [address] [name=John Doe, street=21 Jumpstreet, zip=12345, town=TeX-City] \definelayer[MyLayer][state=start] \setupbackgrounds[page][background={MyLayer}] \starttext \setlayerframed[MyLayer][frame=off,align=right] {\getvariable{address}{name}\\ \getvariable{address}{street}\\ \getvariable{address}{zip} – \getvariable{address}{town}} a \stoptext Wolfgang