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: Feature Request: \startitemize[text]
Date: Tue, 21 Oct 2008 09:11:52 +0200	[thread overview]
Message-ID: <115224fb0810210011m17253031i3067006010f34e1d@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.1.00.0810171253450.18257@nqv-yncgbc>

On Fri, Oct 17, 2008 at 7:01 PM, Aditya Mahajan <adityam@umich.edu> wrote:
> Hi Wolfgang,
>
> On Fri, 17 Oct 2008, Wolfgang Schuster wrote:
>
>> On Sun, Jan 13, 2008 at 11:41 PM, Aditya Mahajan <adityam@umich.edu> wrote:
>>> Hi Hans,
>>>
>>> I have always found the space at the beginning of each item in
>>> \startitemize[text] to be too large. Currently, this is hard coded to be
>>> \emwidth plus \intertwordstretch minus \interwordshrink (line 1132 of
>>> core-itm.tex with the comment "new per 2006/10/20"). I always end of
>>> copying the definition of complexdoitemgroupitem to my private modules and
>>> changing the emwidth in the definition to 0.5\emwidth. Can you please keep
>>> this key to be configurable with a key (textinbetween)?
>>>
>>> BTW, any particular reason not to simply say
>>> \removeunwantedspaces\space\ignorespaces instead of
>>> \removeunwantedspaces\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax
>>> \stopitemgroup uses just the first variant.
>>>
>>> Thanks,
>>> Aditya
>>
>> Hi Aditya,
>>
>> what do you about the following solution, the space between each
>> item is configurable with the "space" key, the fourth parameter
>> \dostartitemgroup gobbles we get from \startitemize if we use two
>> parameters.
>
> Thank you for looking into this old request. This does exactly what I
> want. I just have one comment regarding the default. Maybe, for
> consistency, the space key should behave as in \setupinterlinespace
>
> space=none|small|medium|big|dimension

\processaction
  [\getitemparameter\currentitemlevel\c!space]
  [   \v!none=>\let\textitemdistance\zeropoint,
   \s!unknown=>\assignvalue\commalistelement\textitemdistance{.5\interwordspace\!!plus.5\emwidth}{\interwordspace\!!plus\emwidth}{\emwidth\!!plus\interwordstretch\!!minus\interwordshrink}]%
\removeunwantedspaces\hskip\textitemdistance\relax

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2008-10-21  7:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-13 21:41 Aditya Mahajan
2008-10-17  6:27 ` Wolfgang Schuster
2008-10-17 17:01   ` Aditya Mahajan
2008-10-21  7:11     ` Wolfgang Schuster [this message]
2008-10-21 17:37     ` Hans Hagen

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=115224fb0810210011m17253031i3067006010f34e1d@mail.gmail.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).