From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74888 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Itemize Prefixes Date: Mon, 5 Mar 2012 22:10:27 -0500 (EST) Message-ID: References: <1330919525.17258.48.camel@kip-laptop> <1331000195.17258.59.camel@kip-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1331003445 17578 80.91.229.3 (6 Mar 2012 03:10:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Mar 2012 03:10:45 +0000 (UTC) Cc: mailing list for ConTeXt users To: Kip Warner Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 06 04:10:44 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S4knU-00051u-F4 for gctc-ntg-context-518@m.gmane.org; Tue, 06 Mar 2012 04:10:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D59E6CB2A2; Tue, 6 Mar 2012 04:10:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 8gNbm+wvIhnU; Tue, 6 Mar 2012 04:10:41 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E7DCACB2A5; Tue, 6 Mar 2012 04:10:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CB318CB2A5 for ; Tue, 6 Mar 2012 04:10:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7fYPom5Phq6a for ; Tue, 6 Mar 2012 04:10:37 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id E02FACB2A2 for ; Tue, 6 Mar 2012 04:10:37 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q263F1J8009866 for ; Tue, 6 Mar 2012 04:15:02 +0100 Original-Received: FROM adi-netbook (bas3-montreal02-1096681081.dsl.bell.ca [65.94.6.121]) By hackers.mr.itd.umich.edu ID 4F558027.817B3.17244 ; Authuser adityam; 5 Mar 2012 22:10:31 EST In-Reply-To: <1331000195.17258.59.camel@kip-laptop> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0IGG3f1Kc - 91d60e8cf58e - 20120306 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:74888 Archived-At: On Mon, 5 Mar 2012, Kip Warner wrote: > On Sun, 2012-03-04 at 23:26 -0500, Aditya Mahajan wrote: >> On Sun, 4 Mar 2012, Kip Warner wrote: >> >>> Hey list, >>> >>> I'd like an itemized list using the following format... >>> >>> Article I ... >>> Article II ... >>> Article III ... >>> >>> ...and so on. I've tried defining the behaviour with... >>> >>> \defineenumeration[article] >>> [location=top, >>> text=Article, >>> between=\blank, >>> before=\blank, >>> after=\blank] >>> \setupenumerations[article][R] >>> >>> ...but the problem is that after a list of items provided with matching >>> \startarticle \stoparticle pairs, the last count persists to the next >>> list of items which should start at 'I' again. I am assuming I am not >>> doing this correctly and would appreciate any suggestions. >> >> Use itemgroup rather than enumerations. > > Thanks Aditya, but could you give me an example of how to do this? As > usual, I am not able to take much away from the ConTeXt wiki. Sorry. \defineitemgroup[article] \setupitemgroup [article] [ left={Article }, stopper=, symbol=R, before=\blank, after=\blank, distance=0.5em, ] \setupitemgroup [article] [broad,fit] \starttext \startarticle \item First article \item Second article \stoparticle Again \startarticle \item First article \item Second article \stoparticle \stoptext Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________