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>
<tr valign="top" class="third">
<td class="cmd">[[Reference/enCommand/keyword:state|state]]</td> <td>[[Reference/enCommand/value:start|start]] [[Reference/enCommand/value:stop|stop]] [[Reference/enCommand/value:repeat|repeat]] </td>
</tr>
<tr valign="top" class="third">
<td class="cmd">[...,...=...,...]</td>
<td>see [[Reference/enCommand/setupframed|\setupframed]] </td>
</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 == The first parameter sets Because {{cmd|showframe}} and <code>\setupbackgrounds</code> both draw frameboxes over parts of the main layout areapage, the second one specifies the linked subarea(s) of the priororder in which they are invoked matters. Not all main areas have such subareasIn most cases, <code>\setupbackgrounds</code> should come last.
== Example ==
<context source=yes>
\setuppapersize[A10]
\showframe
% \setupbackgrounds should be placed *after* \showframe,
\setupbackgrounds[footer] [background=color, backgroundcolor= Example blue]\setupbackgrounds[footer] [leftmargin] [background=color, backgroundcolor=red]
'''[text]''' has several linked subareas.<texcode>\setupbackgrounds[text] [background=color,backgroundcolor=lightgray]\setupbackgrounds[text] [leftmarginrightmargin] [background=color,backgroundcolor=redyellow]</texcode>
sets a light gray background for the text area and a red background for the left margin area.I paint modern</context>
== See also ==
* {{cmd|setupframed}}, which is the mechanism used by \setupbackgrounds.
== See also Help from ConTeXt-Mailinglist/Forum ==<!-- something like [[cmdAll issues with:goto{{Forum|\goto]] -->{{SUBPAGENAME}}}}
[[Category:ReferenceCommand/enBackgrounds|setupbackgrounds]]

Navigation menu