Command/definedescription
< Command
Jump to navigation
Jump to search
\definedescription
Syntax
\definedescription[...][...][...=...,...] | |
[...] | name |
[...] | name |
...=...,... | inherits from \setupdescription |
inherits from
\setupdescription[...,...][...=...,...] | |
[...,...] | name |
title | yes no |
level | number |
text | text |
headcommand | oneargument |
before | command |
after | command |
inbetween | command |
alternative | left right inmargin inleft inright margin leftmargin rightmargin innermargin outermargin serried hanging top empty command name |
align | see \setupalign |
headalign | see \setupalign |
indenting | see \setupindenting |
display | yes no |
indentnext | yes no auto |
width | fit broad line dimension |
distance | none dimension |
stretch | number |
shrink | number |
hang | fit broad none margin number |
closesymbol | command |
closecommand | oneargument |
expansion | yes no xml |
referenceprefix | + - text |
sample | text |
margin | yes no standard dimension |
style | style command |
color | color |
headstyle | style command |
headcolor | color |
aligntitle | yes no |
\definedescription[...][...,...=...,...] | |
[...] | name |
[...,...=...,...] | see \setupdescriptions |
Description
Define a new description with an associated style.
Example
Sample 1
\definedescription [concept] [alternative=serried, headstyle=bold, width=broad] \concept{Hasselter juffer} A sort of biscuit made of puff pastry and covered with sugar. It tastes very sweet. \par
yields
Sample 2
\definedescription[T] [headstyle=bold, width=fit, % Width of the running text indenting={yes,medium}, % (Internal) indenting of the running text text={\hbox to1.5em{$\bullet$}}, % Put in the front of each label hang=5, % Revert indenting after 5 lines ] \startTEXpage \startT{My Label} \input knuth \stopT \T{Another label} \input ward \stopTEXpage
Gives:
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: