Command/setupframed

From ConTeXt wiki

\setupframed

Syntax

\setupframed[...,...=...,...]
height fit broad dimension
width fit broad fixed local dimension
autowidth yes no force
offset none overlay default dimension
location depth hanging high lohi low top middle bottom
option (unset) none empty
strut yes no global local
align no flushleft flushright middle normal high low lohi
bottom command
top command
frame on off none overlay
topframe (unset) on off
bottomframe (unset) on off
leftframe (unset) on off
rightframe (unset) on off
frameoffset dimension
framedepth dimension
framecorner round rectangular
frameradius dimension
framecolor name
background color none foreground name
backgroundcolor name
backgroundoffset frame dimension
backgrounddepth dimension
backgroundcorner round rectangular
backgroundradius dimension
depth dimension
corner round rectangular
radius dimension
empty yes no
foregroundcolor name
foregroundstyle name
rulethickness dimension

Description

Set the default parameters for \framed. The \framed command produces a box with (optionally) a frame, certain dimensions, a background, etc. If the align parameter is unspecified, \framed produces an \hbox, inside which linebreaks (if any) will appear as spaces; when align is specified, \framed will produce a \vbox.

Key Possible values
width
  • broad: sets width to approximately \textwidth.
  • local: inherit the width from parent box.
  • fixed: ??;
  • fit: according to content.
offset
  • none: set to 0pt. If the frame is inside another frame then the frame lines are doubled.
  • overlay: set to 0pt. If the frame is inside another one then the frame lines will overlap.
  • default: set to .25ex.
  • dimension
location
  • low (resembles \inframed): lowers the framed box by about
    \strutdp+offset+framelinewidth;
  • depth: lower framed box about \strutdp.
  • hanging: lower framed box by approx. its own height (baseline is on the top).
empty
  • yes: do not display contents of the box.
  • no: display the contents
rulethickness sets the thickness of the frame border.

Example

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: