ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: indenting after section headings with before, after keyvals
Date: Mon, 7 Aug 2006 12:00:41 -0400 (EDT)	[thread overview]
Message-ID: <Pine.WNT.4.63.0608071155420.3468@nqvgln> (raw)
In-Reply-To: <E1G9sBa-00049d-On@approximate.corpus.cam.ac.uk>

On Sun, 6 Aug 2006, Sanjoy Mahajan wrote:

> The text after section headings is normally not indented, even if
> \setupindenting[yes] is given -- which looks good and was a pain to get
> right in my plain TeX days.  But the "don't indent that" code seems to
> get confused if before= and after= values are given in the heading
> setup.
>
> Below is a minimal example (using context 2006.07.24 10:49) showing that
> the 'before' hairline is indented, and the "Indented?" text after the
> 'after' hairline is indented.  All is fine without the \setupindenting
> or the \setuphead line.  Is there an easy fix that I missed?  I tried
> throwing in \noindent into the before or after keys but no luck.

I think that the command is \noindentation.

> \setuphead[section][before={\hairline\blank},after={\nowhitespace\hairline}]

Use instead

\setuphead[section]
           [before={\noindentation\hairline\blank},
            after={\nowhitespace\hairline\noindentation}]


> \setupindenting[medium,yes]
>
> \starttext
> \section{First}
> Indented?
> \stoptext


Aditya

  reply	other threads:[~2006-08-07 16:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-06 23:37 Sanjoy Mahajan
2006-08-07 16:00 ` Aditya Mahajan [this message]
2006-08-07 16:59   ` Sanjoy Mahajan

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=Pine.WNT.4.63.0608071155420.3468@nqvgln \
    --to=adityam@umich.edu \
    --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).