Difference between revisions of "Command/setupbackgrounds"

From Wiki
Jump to navigation Jump to search
m (Text replace - "Category:(.*)" to "Category:Command/$1")
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
Line 35: Line 35:
 
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.
 
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.
  
Note that backgrounds may not be rendered correctly if [[cmd:showframe|\showframe]] is used.
+
Note that backgrounds may not be rendered correctly if {{cmd|showframe}} is used.
  
 
== Example ==
 
== Example ==
Line 49: Line 49:
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
<!-- something like {{cmd|goto}} -->
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Revision as of 05:18, 23 March 2012

\setupbackgrounds

Syntax

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


Description

Comment

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.

Note that backgrounds may not be rendered correctly if \showframe is used.

Example

[text] has several linked subareas.

\setupbackgrounds[text] [background=color,backgroundcolor=lightgray]
\setupbackgrounds[text] [leftmargin] [background=color,backgroundcolor=red]

sets a light gray background for the text area and a red background for the left margin area.


See also

Help from ConTeXt-Mailinglist/Forum

All issues with: