Command/setuptextbackground

Unofficial ConTeXt Wiki mirror

Last modified: 2025-10-08

Summary

The command \setuptextbackground is used for settings of a text background area.

Settings

\setuptextbackground[...,...][...=...,...]
[...,...] name
state start stop
location text paragraph always none
criterium number
alternative number
mp name
method name
background color
backgroundcolor color
corner rectangular round
level number
backgroundoffset dimension
before command
after command
align see \setupalign
dash number
radius dimension
frame on off
framecolor color
rulethickness dimension
voffset dimension
frameoffset dimension
leftoffset yes no standard dimension
rightoffset yes no standard dimension
topoffset small medium big line dimension
bottomoffset small medium big line dimension
style style command
color color

Option Explanation
location
text background for running text, like a highlight
paragraph background for full paragraphs, like a box
mp
MetaPost background graphic
background
color necessary to set the background color
align
text alignment
style
text style
color
text color

Description

Most options are from \framed/\setupframed.

Examples

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: