From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35122 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: How to align numerals in lists on the dot or paranthesis that follows the numeral? Date: Mon, 25 Jun 2007 09:00:26 +0200 Message-ID: <467F680A.6090701@elvenkind.com> References: <20070624141806.f90665b8.schuster.wolfgang@googlemail.com> <467EA7FB.4070903@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060909040400040507080701" X-Trace: sea.gmane.org 1182754848 1237 80.91.229.12 (25 Jun 2007 07:00:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2007 07:00:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 25 09:00:45 2007 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 1I2iZ2-00062J-Up for gctc-ntg-context-518@m.gmane.org; Mon, 25 Jun 2007 09:00:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 56B2620077; Mon, 25 Jun 2007 09:00:44 +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 06194-03; Mon, 25 Jun 2007 09:00:31 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 09CD320020; Mon, 25 Jun 2007 09:00:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BEC2120020 for ; Mon, 25 Jun 2007 09:00:29 +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 07512-01-10 for ; Mon, 25 Jun 2007 09:00:27 +0200 (CEST) Original-Received: from post-25.mail.nl.demon.net (post-25.mail.nl.demon.net [194.159.73.195]) by ronja.ntg.nl (Postfix) with ESMTP id 0D0C21FFFD for ; Mon, 25 Jun 2007 09:00:27 +0200 (CEST) Original-Received: from boo.demon.nl ([82.161.175.147]:57530 helo=[10.10.0.6]) by post-25.mail.nl.demon.net with esmtp (Exim 4.51) id 1I2iYk-000GFY-UK for ntg-context@ntg.nl; Mon, 25 Jun 2007 07:00:27 +0000 User-Agent: Thunderbird 1.5.0.10 (X11/20070305) In-Reply-To: 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:35122 Archived-At: This is a multi-part message in MIME format. --------------060909040400040507080701 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hamid Kamrani wrote: > > Taco, I very much appreciate your solution. It allows me to continue > for now but I humbly ask, in fact, beg to have a solution built in the > core of ConTeXt. See the attached file how to make a special version of itemize that has default behaviour like you want. I could have used \setupitemgroup[itemize] directly instead, but I assume you don't want your bullet lists right aligned as well. Since ConTeXt cannot know beforehand how wide the number space should be (neither do eplain and latex), the 'width' key has to be a fixed quantity, but you can still change all of the default parameters where you call \startenumerate, just like you did before with \startitemize, so that should be only a minor nuisance. I do agree it would be better if the core was extended so that the two setups were not necessary. Best wishes, Taco --------------060909040400040507080701 Content-Type: text/x-tex; name="align.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="align.tex" \unprotect \startsetups [numberitemleft] \hbox to \dimexpr\getitemparameter\itemlevel \c!width - \getitemparameter\itemlevel \c!distance\relax \bgroup \hfill \stopsetups \startsetups [numberitemright] \egroup \stopsetups \protect \defineitemgroup [enumerate] \setupitemgroup [enumerate] [each] [n,packed] [left={\setups[numberitemleft]}, right={\setups[numberitemright]}, stopper={.}, width=2pc] \starttext \startenumerate \item The first item. \item The second item. \item The third item. \item The fourth item. \item The fifth item. \item The sixth item. \item The seventh item. \item The eighth item. \item The ninth item. \item The tenth item. \stopenumerate \stoptext --------------060909040400040507080701 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --------------060909040400040507080701--