Changes

Jump to navigation Jump to search
23 bytes removed ,  15:03, 9 March 2007
made some corrections and added to Layers and Graphics categories
=My first Layer=
Define a layer that takes the whole page, but starts with an offset
<texcode>
\definelayer [mybg] % name of the layer
[x=-3mm0mm, y=-3mm0mm, % bleed over the pagefrom upper left corner of paper width=\paperwidth, height=\paperheight]% let the layer cover the full paper
</texcode>
Now you can put something on in that layer:
<texcode>
\setlayer [mybg] % name of the layer
[xhoffset=2cm1cm, yvoffset=5cm1cm] % placement (from upper left corner of the layer) {\framed[frame=on, width=3cm, height=2cm]{LAYER}} % the actual contents of the layer
</texcode>
Activate the layer as a background:
<texcode>
\setupbackgrounds [page] [background=mybg]
</texcode>
 You could also typeset This command makes the layer appear only once using <cmd>placelayer</cmd> or <cmd>flushlayer</cmd>, but then after the location depends from background is activated. If you want to repeat the upper left of layer on each page, use the text area! (Bug?) * switch off backgrounds: option <code>\setupbackgrounds[page][backgroundrepeat=]yes</code>* add a background: in the <codecmd>\setupbackgrounds[page][background={\currentvalue, mylayer}]definelayer</codecmd>command.
==Placement==
* Source: [[source:page-lyr.tex|page-lyr]]
* Example of [[alternating backgrounds and repeating layers]]
 
{{todo|We need a lot of documentation and samples for this complicated subject.}}
 
[[Category:Graphics]] [[Category:Layers]]
23

edits

Navigation menu