Am 09.04.2012 um 14:50 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Hello,
another case of description (following http://www.mail-archive.com/ntg-context@ntg.nl/msg62775.html), now with "alternative=top" - I'm trying to get:
XXXXXX
blablabla bla bla blablabla blabla.
| | |-| A constant of indenting - to be specified by the user.
| | |<------------>| Text width.
But my trials give just:
---- XXXXX bla bla blablabl bla bla.
= "alternative=hanging" - unwanted
Or:
XXXXX
bla bla blabla bl bla bla.
= Lines after head are not indented; unwanted. ----
Does \description support any options to get the required shape?
You can indent the text with the margin parameter, the indenting of the head can be corrected with the \offset command. \define[1]\TestHeadCommand {\offset[x=-1em]{#1}} \definedescription [test] [alternative=top, margin=1em, %headcommand={\offset[x=-1em]}, headcommand=\TestHeadCommand] \starttext \input knuth \starttest{Knuth} \input knuth \stoptest \input knuth \stoptext Wolfgang