ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Andreas Harder <aharder@uni-koblenz.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re:  Indent after \startline[…]
Date: Thu, 17 Dec 2009 00:28:01 +0100	[thread overview]
Message-ID: <B495F35A-04D6-4AF4-96CC-153F35D45144@uni-koblenz.de> (raw)
In-Reply-To: <5BD41161-8FE9-413E-A806-6A8857258CCF@googlemail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1149 bytes --]


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

[-- Attachment #1.2: Type: text/html, Size: 2600 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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	other threads:[~2009-12-16 23:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <16826CAD-526A-4908-8188-6F3191CEED39@boede.nl>
2009-12-15 12:05 ` Call for papers Martin Schröder
2009-12-15 13:15   ` Call for papers (pracjourn & mkiv) Alan BRASLAU
2009-12-15 13:25     ` Aditya Mahajan
2009-12-15 16:16       ` Aditya Mahajan
2009-12-15 17:46         ` Hans Hagen
2009-12-15 21:30           ` Aditya Mahajan
2009-12-15 17:53         ` Hans Hagen
2009-12-15 21:29           ` Aditya Mahajan
2009-12-15 22:39             ` Hans Hagen
2009-12-15 17:54         ` Wolfgang Schuster
2009-12-15 18:16           ` Aditya Mahajan
2009-12-15 19:29             ` Wolfgang Schuster
2009-12-16 10:43               ` Indent after \startline[…] Andreas Harder
2009-12-16 17:40                 ` Wolfgang Schuster
2009-12-16 23:28                   ` Andreas Harder [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B495F35A-04D6-4AF4-96CC-153F35D45144@uni-koblenz.de \
    --to=aharder@uni-koblenz.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).