Difference between revisions of "Command/setupbackgrounds"

From Wiki
Jump to navigation Jump to search
(Create reference page)
 
m (cleanup)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->
 
{{Reference_Cleanup}}
 
 
{{Reference
 
{{Reference
 
|name=setupbackgrounds
 
|name=setupbackgrounds
Line 31: Line 29:
  
 
== Description ==  
 
== Description ==  
== comment ==
+
 
 +
 
 +
== 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.
 
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.
Line 41: Line 41:
  
 
'''[text]''' has several linked subareas.
 
'''[text]''' has several linked subareas.
<pre class="example">
+
<texcode>
 
\setupbackgrounds[text] [background=color,backgroundcolor=lightgray]
 
\setupbackgrounds[text] [background=color,backgroundcolor=lightgray]
 
\setupbackgrounds[text] [leftmargin] [background=color,backgroundcolor=red]
 
\setupbackgrounds[text] [leftmargin] [background=color,backgroundcolor=red]
</pre>
+
</texcode>
  
 
sets a light gray background for the text area and a red background for the left margin area.
 
sets a light gray background for the text area and a red background for the left margin area.

Revision as of 13:10, 16 April 2010

\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.



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