ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: No indent with first paragraph with \item
Date: Thu, 24 Mar 2011 10:29:09 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.01.1103241021270.7470@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <alpine.LNX.2.01.1103241019350.7470@ybpnyubfg.ybpnyqbznva>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1215 bytes --]

On Thu, 24 Mar 2011, Aditya Mahajan wrote:

> On Thu, 24 Mar 2011, Cecil Westerhof wrote:
>
>> When using \startitemize … \stopitemize there is no indent for the first
>> paragraph when using \head, but there is when using \item. How can I make
>> that by \item the first paragraph also has no indentation?
>
> See 
> http://wiki.contextgarden.net/Indentation#Setting_up_indentation_inside_environments
>
> What you need is
>
> \setupindenting[big,yes]
> \setupitemize[1][indenting=next]
>
> \starttext
> \startitemize
>  \item \input knuth
> \stopitemize
> \stoptext

Actually, in MkII indenting=yes does the right thing (no indentation of 
the first line). I would consider MkIV behavior a bug.

I don't know what is the best solution. Perhaps changing


\normalexpanded{\noexpand\setupindenting[\v!reset,\v!yes,\currentitemindenting]}%

to

\normalexpanded{\noexpand\setupindenting[\v!reset,\v!next,\v!yes,\currentitemindenting]}%

Then, \setupitemize[1][indenting=first] will indent the first line, 
indenting=yes, will not (untested).

Another option is to change reset so that it sets indentfirstparagraph to 
false, but that might create havoc at other places.

Aditya

[-- 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:[~2011-03-24 14:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-24  9:59 Cecil Westerhof
2011-03-24 14:20 ` Aditya Mahajan
2011-03-24 14:29   ` Aditya Mahajan [this message]
2011-03-24 14:40     ` Wolfgang Schuster
2011-03-24 16:02   ` Cecil Westerhof
2011-03-24 16:06     ` Aditya Mahajan
2011-03-24 17:26       ` Cecil Westerhof
2011-03-24 17:40         ` Wolfgang Schuster
2011-03-24 17:46           ` Cecil Westerhof
2011-03-24 17:56             ` Wolfgang Schuster

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=alpine.LNX.2.01.1103241021270.7470@ybpnyubfg.ybpnyqbznva \
    --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).