Changes

Jump to navigation Jump to search
no edit summary
}}
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>setupbackgrounds</syntax>
== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
</tr>
</table>
 
== Description ==
<code>\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.
== Comment ==Because {{cmd|showframe}} and <code>\setupbackgrounds</code> both draw frameboxes over parts of the page, the order in which they are invoked matters. In most cases, <code>\setupbackgrounds</code> should come last.
The first parameter sets the main layout area, the second one specifies the linked subarea(s) of the prior. Not all main areas have such subareas.== Example ==
Note that backgrounds may not be rendered correctly if <context source=yes>\setuppapersize[[cmd:showframe|A10]\showframe]] is used.
== Example ==% \setupbackgrounds should be placed *after* \showframe,
'''[text]''' has several linked subareas.<texcode>\setupbackgrounds[textfooter] [background=color,backgroundcolor=lightgrayblue]\setupbackgrounds[textfooter] [leftmargin] [background=color,backgroundcolor=red]</texcode>
sets a light gray \setupbackgrounds[text] [background for the =color, backgroundcolor=lightgray]\setupbackgrounds[text area and a red ] [rightmargin] [background for the left margin area.=color, backgroundcolor=yellow]
I paint modern
</context>
== See also ==
<!-- something like [[* {{cmd:goto|setupframed}}, which is the mechanism used by \goto]] -->setupbackgrounds.
== Help from ConTeXt-Mailinglist/Forum ==
{{Forum|{{SUBPAGENAME}}}}
[[Category:Command/Backgrounds|setupbackgrounds]]

Navigation menu