Command/setupbackgrounds

Unofficial ConTeXt Wiki mirror

Last modified: 2025-01-05

Syntax (autogenerated)

\setupbackgrounds[...,...][...,...][...=...,...]
[...,...] top header text footer bottom
[...,...] leftedge leftmargin text rightmargin rightedge
...=...,... inherits from \setupframed
\setupbackgrounds[...,...][...=...,...]
[...,...] paper page leftpage rightpage text hidden
state start stop
...=...,... inherits from \setupframed

Syntax

\setupbackgrounds[...][...,...,...][...,...=...,...]
[...] top header text footer bottom page paper leftpage rightpage
[...,...,...] leftedge leftmargin text rightmargin rightedge
state start stop repeat
[...,...=...,...] see \setupframed

Description

\setupbackgrounds is used to draw frames or backgrounds that cover specific areas of the page, under the text layer.

Because \showframe and \setupbackgrounds both draw frameboxes over parts of the page, the order in which they are invoked matters. In most cases, \setupbackgrounds should come last.

Backgrounds are essential for working with Layers. You enable your defined layers like \setupbackgrounds[page][background=mylayer].

The background key also takes a list, and if you include "foreground", you can also set something on top of your general content, e.g. \setupbackgrounds[page][background={mybacklayer,foreground,mytoplayer}].

Example

Example of dynamic positioning of page numbering

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: