From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21237 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: enumerated lists Date: Thu, 07 Jul 2005 22:32:02 +0200 Message-ID: <42CD9142.2070801@gmail.com> References: <427530A1.4050108@online-resourcen.de> <42CCDA63.8000204@online-resourcen.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1120768408 8161 80.91.229.2 (7 Jul 2005 20:33:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2005 20:33:28 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 07 22:33:19 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dqd33-0007ki-2m for gctc-ntg-context-518@m.gmane.org; Thu, 07 Jul 2005 22:32:41 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6509212839; Thu, 7 Jul 2005 22:32:40 +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 25498-06-4; Thu, 7 Jul 2005 22:32:36 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3A61012831; Thu, 7 Jul 2005 22:32:36 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B2DD112831 for ; Thu, 7 Jul 2005 22:32:34 +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 25498-06-3 for ; Thu, 7 Jul 2005 22:32:33 +0200 (CEST) Original-Received: from avs3.arnes.si (avs3.arnes.si [193.2.1.68]) by ronja.ntg.nl (Postfix) with ESMTP id A4E661282C for ; Thu, 7 Jul 2005 22:32:33 +0200 (CEST) Original-Received: from localhost (avs3.arnes.si [193.2.1.68]) by avs3.arnes.si (Postfix) with ESMTP id 24CE91D7922 for ; Thu, 7 Jul 2005 22:32:33 +0200 (CEST) Original-Received: from avs3.arnes.si ([193.2.1.68]) by localhost (avs3.arnes.si [193.2.1.68]) (amavisd-new, port 10024) with ESMTP id 39743-01 for ; Thu, 7 Jul 2005 22:32:32 +0200 (CEST) Original-Received: from [141.84.28.148] (a148.lmu.vpn.lrz-muenchen.de [141.84.28.148]) by avs3.arnes.si (Postfix) with ESMTP id 2233F1D7910 for ; Thu, 7 Jul 2005 22:32:31 +0200 (CEST) User-Agent: Mozilla/4.5-4.75 (Windows; U; Windows NT 5.1; sl-SI; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: sl, en, en-us, de Original-To: mailing list for ConTeXt users In-Reply-To: <42CCDA63.8000204@online-resourcen.de> X-Virus-Scanned: by amavisd-new at arnes.si X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21237 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21237 Frank Grieshaber wrote: > Hello all (esp. the ConTeXt-Developers), > > some time ago I sent the following email to this list and got no reply > so I'm resending it. > > Is there any possibility that this feature will be part of the next/one > of the next ConTeXt-versions? > > Frank I'm affraid that despite the huge amount of features that "itemize" offers, it should be rewritten one day. Sometimes it doesn't really work as expected (some comments can be found in my post "\setupitemize[packed,paragraph]") and the features you are mentioning here are missing, although they would be sensible. >> Dear all, >> I have a manuscript with long nested numbered enumerations and I want >> the numbers of all levels to be printed automatically like: >> >> 1. one >> 1.1 one-one >> 1.2 one-two >> 2. two >> 2.1 two-one >> 2.2.1 two-two-one >> ... >> >> Using the following prints only the current level's number, not all >> levels: >> >> \startitemize[n,packed] >> \item >> \item >> \startitemize[m,packed] >> \item >> \item >> \stopitemize >> \item >> \item >> \stopitemize >> >> >> For Latex there is the package paralist.sty for doing the desired >> numbering, how can this be done with ConTeXt? >> >> Frank Here's a solution that: - doesn't work (well, it's actually not far away from working) - may not be taken as an example of nice programming habits: so use it at your own risk!!! (You have been warned!) - if someone can help me to define this command, it will work: % the command to be defined: \def\deleteeverythingbehindthelastdot#1{#1} \def\MyCommand{\deleteeverythingbehindthelastdot{\itemreference}} \starttext \setupitemize[1][n][indentnext=no] % what should indentnext do? % % I thought it would not try to indent further % Is there a way to itemize like % 1. one % 1.1. one-one % 1.2. one-two % 2. two % % instead of % 1. one % 1.1. one-one % 1.2. one-two % 2. two \setupitemize[2][n,3*broad][left={\MyCommand}] \setupitemize[3][n,4*broad][left={\MyCommand}] \startitemize \item bla \item blabla \startitemize \item bla \item blabla \startitemize \item bla \item blabla \stopitemize \item bla \item bla \item bla \startitemize \item bla \item blabla \stopitemize \item bla \item bla \item bla \stopitemize \item bla \startitemize \item bla \item blabla \startitemize \item bla \item blabla \stopitemize \item bla \stopitemize \item bla \item bla \stopitemize \stoptext Mojca PS: But once again - If anyone will be reading this post in the mail archive: please, don't use this trick!!! Please check first if this feature has been added in the meantime.