ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re:  Indent after \startline[…]
Date: Wed, 16 Dec 2009 18:40:29 +0100	[thread overview]
Message-ID: <5BD41161-8FE9-413E-A806-6A8857258CCF@googlemail.com> (raw)
In-Reply-To: <58891952-980B-4FBE-9441-787383A1DDB8@uni-koblenz.de>


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]

\starttext

...

\startLinenumbering
...
\stopLinenumbering

...

\stoptext

Wolfgang

___________________________________________________________________________________
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 17:40 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 [this message]
2009-12-16 23:28                   ` Andreas Harder

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=5BD41161-8FE9-413E-A806-6A8857258CCF@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).