Difference between revisions of "Command/setupbackground"

From Wiki
Jump to navigation Jump to search
Line 27: Line 27:
 
<!-- something like {{cmd|goto}} -->
 
<!-- something like {{cmd|goto}} -->
 
* [[TextBackground]]
 
* [[TextBackground]]
 +
* {{cmd|setupbackgrounds}}
 
* {{cmd|background}}
 
* {{cmd|background}}
 
* {{cmd|startbackground}}
 
* {{cmd|startbackground}}

Revision as of 08:24, 27 April 2024

\setupbackground

Syntax (autogenerated)

\setupbackground[...,...][...=...,...]
[...,...]name
statestart stop
leftoffsetdimension
rightoffsetdimension
topoffsetdimension
bottomoffsetdimension
beforecommand
aftercommand
...=...,...inherits from \setupframed


Description

This mechanism is sort of obsolete and textbackgrounds should be used instead.

Examples

\setupbackground
    [frame=on]
\setupbackground
    [background=color, backgroundcolor=blue]

Add “location=paragraph” to \setuptextbackground, to remove the empty line after the itemize environment add “nowhite” to \startitemize.

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: