Difference between revisions of "Command/setupframed"
< Command
Jump to navigation
Jump to search
(describe more options (added undocumented "dash")) |
|||
(One intermediate revision by one other user not shown) | |||
Line 302: | Line 302: | ||
| <context>\setuppapersize[A5]\framed[corner=round]{corner=round}</context> | | <context>\setuppapersize[A5]\framed[corner=round]{corner=round}</context> | ||
|- valign="top" | |- valign="top" | ||
− | | Other values: any number between '''0''' and ''' | + | | Other values: any number between '''0''' and '''33''' |
| <context> | | <context> | ||
\setuppapersize[A5] | \setuppapersize[A5] | ||
Line 340: | Line 340: | ||
\vskip1em | \vskip1em | ||
\dontleavehmode\dostepwiserecurse{25}{28}{1}{\framed | \dontleavehmode\dostepwiserecurse{25}{28}{1}{\framed | ||
+ | [corner=\recurselevel,frame=on] | ||
+ | {\tttf corner=\twodigits\recurselevel}% | ||
+ | \quad} | ||
+ | \vskip1em | ||
+ | \dontleavehmode\dostepwiserecurse{29}{32}{1}{\framed | ||
+ | [corner=\recurselevel,frame=on] | ||
+ | {\tttf corner=\twodigits\recurselevel}% | ||
+ | \quad} | ||
+ | \vskip1em | ||
+ | \dontleavehmode\dostepwiserecurse{33}{36}{1}{\framed | ||
[corner=\recurselevel,frame=on] | [corner=\recurselevel,frame=on] | ||
{\tttf corner=\twodigits\recurselevel}% | {\tttf corner=\twodigits\recurselevel}% | ||
Line 354: | Line 364: | ||
<cd:wikipage originator="system" page="Keywords:Background"></cd:wikipage> | <cd:wikipage originator="system" page="Keywords:Background"></cd:wikipage> | ||
<cd:commandref name="setupframedtext"></cd:commandref> | <cd:commandref name="setupframedtext"></cd:commandref> | ||
− | <cd:commandref name="setlayerframed"></cd:commandref></cd:seealso> | + | <cd:commandref name="setlayerframed"></cd:commandref> |
+ | <cd:wikipage page="Framed"></cd:wikipage></cd:seealso> | ||
</cd:commandgroup> | </cd:commandgroup> |
Latest revision as of 16:04, 2 June 2024
Contents
\setupframed
Summary
Settings
\setupframed[...,...][...=...,...] | |
[...,...] | name |
corner | rectangular round number |
framecorner | rectangular round number |
backgroundcorner | rectangular round number |
radius | dimension |
frameradius | dimension |
backgroundradius | dimension |
depth | dimension |
framedepth | dimension |
backgrounddepth | dimension |
framecolor | color |
topframe | on off small name |
bottomframe | on off small name |
leftframe | on off small name |
rightframe | on off small name |
region | yes no |
rulethickness | dimension |
frameoffset | dimension |
frame | on off overlay small closed none |
background | foreground color name |
backgroundoffset | frame dimension |
backgroundcolor | |
component | name |
extras | command |
foregroundstyle | style command |
foregroundcolor | color |
setups | name |
offset | default overlay none dimension |
width | local fit max broad fixed dimension |
height | fit max broad dimension |
minheight | dimension |
align | see \setupalign |
strut | yes no none local global |
autostrut | yes no |
location | height depth high low top middle bottom line lohi hanging keep formula mathematics normal |
autowidth | yes no force |
lines | number |
top | command |
bottom | command |
blank | yes no |
profile | name |
empty | yes no |
loffset | dimension |
roffset | dimension |
toffset | dimension |
boffset | dimension |
orientation | number |
anchoring | normal up down left right top bottom name |
xanchor | dimension |
yanchor | dimension |
linedirection | normal reverse |
Option | Explanation | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
corner |
| ||||||||||
framecorner |
| ||||||||||
backgroundcorner |
| ||||||||||
radius |
| ||||||||||
frameradius |
| ||||||||||
backgroundradius |
| ||||||||||
framecolor |
| ||||||||||
topframe |
| ||||||||||
bottomframe |
| ||||||||||
leftframe |
| ||||||||||
rightframe |
| ||||||||||
rulethickness |
| ||||||||||
frameoffset |
| ||||||||||
frame |
| ||||||||||
background |
| ||||||||||
backgroundoffset |
| ||||||||||
backgroundcolor |
| ||||||||||
offset |
| ||||||||||
width |
| ||||||||||
height |
| ||||||||||
align |
| ||||||||||
strut |
| ||||||||||
location |
| ||||||||||
empty |
| ||||||||||
loffset |
| ||||||||||
roffset |
| ||||||||||
toffset |
| ||||||||||
boffset |
| ||||||||||
orientation |
|
Description
Set the default parameters for \framed. The \framed command produces a box with (optionally) a frame, certain dimensions, a background, etc.
Examples
corner option values
This option determines whether or not the corners are round. It also allows drawing only selected corners.
Default value: rectangular | |
Most common alternative: round | |
Other values: any number between 0 and 33 |