From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44800 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Feature Request: \startitemize[text] Date: Fri, 17 Oct 2008 13:01:12 -0400 (EDT) Message-ID: References: <115224fb0810162327j41395473l1fe35369585b23d3@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224262999 7739 80.91.229.12 (17 Oct 2008 17:03:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2008 17:03:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 17 19:04:18 2008 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KqskA-0001kt-6x for gctc-ntg-context-518@m.gmane.org; Fri, 17 Oct 2008 19:04:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 136A71FBB9; Fri, 17 Oct 2008 19:02:59 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31043-03-7; Fri, 17 Oct 2008 19:01:53 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 549551FBFB; Fri, 17 Oct 2008 19:01:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D78A01FBB9 for ; Fri, 17 Oct 2008 19:01:51 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01797-02-4 for ; Fri, 17 Oct 2008 19:01:15 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with ESMTP id E1BAD1FBFB for ; Fri, 17 Oct 2008 19:01:14 +0200 (CEST) Original-Received: FROM adi-laptop.local (c-71-234-195-113.hsd1.ct.comcast.net [71.234.195.113]) BY hackers.mr.itd.umich.edu ID 48F8C4D9.16F82.31107 ; 17 Oct 2008 13:01:13 -0400 In-Reply-To: <115224fb0810162327j41395473l1fe35369585b23d3@mail.gmail.com> User-Agent: Alpine 1.00 (DEB 882 2007-12-20) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:44800 Archived-At: Hi Wolfgang, On Fri, 17 Oct 2008, Wolfgang Schuster wrote: > On Sun, Jan 13, 2008 at 11:41 PM, Aditya Mahajan 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 Other than this, it is perfect. Thanks a lot. Hans, can this be included in the core? Thanks, Aditya > \unprotect > > \def\complexdoitemgroupitem[#1]% > {\ifconditional\textlistitem > % begin of item > \else > \par > \fi > % \ignorespaces > \ifconditional\concatnextitem % new, concat > \doitembreak\nobreak % new, concat > \fi % new, concat > \doadvanceitem > \ifcase\itemcolumndepth \ifnum\noflistelements>0\relax > % wrong, but why was this here in the first place, probably some > % mistaken change when cleaning up: \doitembreak\nobreak > \fi\fi > \ifconditional\firstlistitem > \setfalse\firstlistitem > \begingroup > \ifcase\currentitemlevel > \or % 1 > \ifcase\itemcolumndepth > \ifconditional\introlistitem\doitembreak\nobreak\fi > \itembeforecommand % \getitemparameter\currentitemlevel\c!before > \ifconditional\introlistitem\doitembreak\nobreak\fi > \fi > \else % 2 en hoger > \ifconditional\paragraphlistitem \else > \let\previtemlevel\currentitemlevel > \decrement\previtemlevel > \ifcase\autoitemgroupspacing\relax % nieuw > \itembeforecommand > \or > \doifelsenothing{\itembeforecommand} > {\itembeforecommand} > {\getitemparameter\previtemlevel\c!inbetween}% > \else > \getitemparameter\previtemlevel\c!inbetween % == itemlevel-1 > \fi > \fi > \fi > \else > \ifconditional\textlistitem % was bugged: \inlinelistitem > \removeunwantedspaces > % \removeunwantedspaces\hskip\interwordspace\!!plus\emwidth\relax > % new per 2006/10/20 > % \removeunwantedspaces\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax > % new per 2006/10/20 > % begin wolf > \doifsomethingelse{\getitemparameter\currentitemlevel\c!space} > {\hskip\getitemparameter\currentitemlevel\c!space\relax} > {\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax}% > % end wolf > \else > \iteminbetweencommand > \fi > \fi > \ifconditional\concatnextitem % new, concat > \vskip-\lastskip % new, concat > \vskip-\lineheight % new, concat > \nobreak % new, concat > \fi % new, concat > % \ignorespaces > \dolistitem > \relax > \ifconditional\packlistitem > \setupwhitespace[\v!none]% > \fi > \getitemparameter\currentitemlevel\c!inner > \marsymbol > \let\marsymbol\relax > \doifsomething{#1} > {\doifnot\itemreference\unknownitemreference > {\bgroup > \protectconversion > \rawreference\s!lst{#1}\itemreference > \egroup}}% > \strut % added 11-08-99 > \setfalse\concatnextitem % new, concat > \nobreak % else problems with intext items > \hskip\itemsignal % new, concat > \getitemparameter\currentitemlevel\c!command} % \defaultitemcommand > > \def\startitemgroup > {\doquadrupleempty\dostartitemgroup} > > \def\dostartitemgroup[#1][#2][#3][]% > {\bgroup > \ifnum\currentitemlevel=\zerocount > \def\currentitemgroup{#1}% no nested mixing of itemgroups > \fi > \ifthirdargument > \dodostartitemgroup[#2][#3]% > \else > \doifassignmentelse{#2} > {\dodostartitemgroup[][#2]} > {\dodostartitemgroup[#2][]}% > \fi} > > \setupitemgroups > [\c!space=] > > \protect > > \showframe > > \starttext > > before > \startitemize[text][space=\interwordspace] > \item text > \item text > \item text > \stopitemize > after > > \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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > > > ___________________________________________________________________________________ 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 ___________________________________________________________________________________