[NTG-context] \description - indenting lines, "alternative=top"
Wolfgang Schuster
schuster.wolfgang at googlemail.com
Mon Apr 9 22:31:11 CEST 2012
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
More information about the ntg-context
mailing list