Command/setupframed

From ConTeXt wiki
< Command
Revision as of 15:49, 11 April 2010 by Patrick Gundlach (talk | contribs) (cleanup)

\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 none empty
strut yes no global local
align no left right middle normal high low lohi
bottom command
top command
frame on off none overlay
topframe on off
bottomframe on off
leftframe on off
rightframe on off
frameoffset dimension
framedepth dimension
framecorner round rectangular
frameradius dimension
framecolor name
background screen color none foreground name
backgroundscreen number
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


Description

width
  broad: ~ \textwidth
  local: inherit the width from parent box
  fixed: 
  fit: according to content
offset
  none=0pt: if the frame is inside another frame then
            frame line is doubled
  overlay: if the frame is inside another one then frame lines overlaped
  default=.25ex
location
  low=\inframed: lower framed box about: \strutdp+offset+framelinewidth
  depth: lower framed box about: \strutdp
  hanging: lower framed box about: box height (baseline is on the top)
empty
  yes: do not type contents of the box
rulethickness: sets the thickness of the frame border


Example

See also