Am 16.12.2009 um 18:40 schrieb Wolfgang Schuster:

> 
> 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]

Thank you! It works if I put  \setupindenting[no] after \startlinenumbering. 

Andreas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to