Difference between revisions of "Command/setupframed"

From ConTeXt wiki
m (Text replace - "Category:(.*)" to "Category:Command/$1")
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
Line 160: Line 160:
 
|-
 
|-
 
|<tt>location</tt>
 
|<tt>location</tt>
|<tt>low</tt> (resembles [[cmd:inframed|\inframed]]): lower framed box about: <tt>\strutdp+offset+framelinewidth</tt>; <tt>depth</tt>: lower framed box about: <tt>\strutdp</tt>; <tt>hanging</tt>: lower framed box about: box height (baseline is on the top).
+
|<tt>low</tt> (resembles {{cmd|inframed}}): lower framed box about: <tt>\strutdp+offset+framelinewidth</tt>; <tt>depth</tt>: lower framed box about: <tt>\strutdp</tt>; <tt>hanging</tt>: lower framed box about: box height (baseline is on the top).
 
|-
 
|-
 
|<tt>empty</tt>
 
|<tt>empty</tt>
Line 173: Line 173:
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
<!-- something like {{cmd|goto}} -->
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Revision as of 05:24, 23 March 2012

\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 flushleft flushright 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
rulethickness dimension

Description

key possible values
width broad: sets width to ~ \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 frame line is doubled; overlay set to 0pt, if the frame is inside another one then frame lines overlaped; default set to .25ex.
location low (resembles \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

Help from ConTeXt-Mailinglist/Forum

All issues with: