Changes

Jump to navigation Jump to search
878 bytes added ,  07:46, 19 May 2011
Use of \setlayerframed
* next: layer appears on the following page
* continue: layer appears on all pages except the first
 
==Line breaking and fixed size==
 
You may experience cases where the defined size of your layer is ignored and you can’t get linebreaking or multiple lines at all.
This is due to <cmd>setlayer</cmd> using <cmd>hbox</cmd> internally. You can work around the problem using <cmd>setlayerframed</cmd>:
 
<texcode>
\definelayer[AddressBg][x=20mm,y=30mm,width=65mm,height=30mm,state=start] % size is ignored!
\setupbackgrounds[paper][setups=ALayer,background=AddressBg,state=start]
 
\starttext
 
\strut
\startsetups ALayer
 
\setlayerframed[AddressBg][width=65mm,height=30mm,frame=off,hoffset=0mm,voffset=0mm,align=right]%
{
PRAGMA Advanced Document Engineering\crlf
Mr. Hans Hagen (the wizard who wrote it all, \CONTEXT\ and everything else, with the help of his little elves)\crlf
Ridderstraat 27\crlf
8061GH Hasselt\crlf
THE NETHERLANDS
}
 
\stopsetups
 
\page
 
\stoptext
</texcode>

Navigation menu