Am 16.12.2009 um 11:43 schrieb Andreas Harder:
Hi all,
how can I prevent the indent after a \startline[…]-construct. Here is an example:
\setupindenting[medium,next,yes]
\def\NoIndent{\noindentation{\red\bf Indent?}\enspace}
\startbuffer
\dorecurse{3}{\dorecurse{10}{some text, } \par }
\stopbuffer
\starttext \showframe
\getbuffer \blank
\startlinenumbering
\startline[lin:1]
\NoIndent \getbuffer
\stopline[lin:1]
\NoIndent \getbuffer
\stoplinenumbering
\blank \getbuffer
\stoptext
To make myself clear, I want indenting but not inside the linenumbering-environment. I tried already to play with \setuplinenumbering but there is no ‘before’-key in the setup and ‘command’ only applies to the numbers.
Define your own environment.
\definestartstop
[Linenumbering]
[before={\setupindenting[no]\startlinenumbering},
after=\stoplinenumbering]