Changes

Jump to navigation Jump to search
add links and hints about Layers
</table>
== Description == <code>\{{cmd|setupbackgrounds</code> }} is used to draw frames or backgrounds that cover specific areas of the page, under the text layer.
The first parameter sets the main layout area; the optional second one specifies the linked subarea(s) of the prior. Not all main areas have such subareas.
Because {{cmd|showframe}} and <code>\{{cmd|setupbackgrounds</code> }} both draw frameboxes over parts of the page, the order in which they are invoked matters. In most cases, {{cmd|setupbackgrounds}} should come last. Backgrounds are essential for working with [[Layers]]. You enable your defined layers like <code>\setupbackgrounds[page][backgrounds=mylayer]</code>. The <tt>backgrounds</tt> key also takes a list, and if you include "foregrounds", you can also set something on top of your general content, e.g. <code>\setupbackgrounds[page][backgrounds={mybacklayer,foreground,mytoplayer}]</code> should come last.
== Example ==
== See also ==
* [[Layers]]
* {{cmd|setupframed}}, which is the mechanism used by \setupbackgrounds.

Navigation menu