From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35128 Path: news.gmane.org!not-for-mail From: "Hamid Kamrani" 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 15:20:47 -0400 Message-ID: References: <20070624141806.f90665b8.schuster.wolfgang@googlemail.com> <467EA7FB.4070903@elvenkind.com> <467F680A.6090701@elvenkind.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: sea.gmane.org 1182799265 8433 80.91.229.12 (25 Jun 2007 19:21:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2007 19:21:05 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 25 21:21:03 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 1I2u7Q-0002c2-SP for gctc-ntg-context-518@m.gmane.org; Mon, 25 Jun 2007 21:21:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 518731FFC9; Mon, 25 Jun 2007 21:21:00 +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 04969-02; Mon, 25 Jun 2007 21:20:53 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D15E31FFBA; Mon, 25 Jun 2007 21:20:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 74FC01FFBA for ; Mon, 25 Jun 2007 21:20: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 02704-05-2 for ; Mon, 25 Jun 2007 21:20:48 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by ronja.ntg.nl (Postfix) with ESMTP id 5FC541FBD9 for ; Mon, 25 Jun 2007 21:20:48 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id o2so1340955uge for ; Mon, 25 Jun 2007 12:20:48 -0700 (PDT) Original-Received: by 10.78.185.15 with SMTP id i15mr2741735huf.1182799247656; Mon, 25 Jun 2007 12:20:47 -0700 (PDT) Original-Received: by 10.78.154.11 with HTTP; Mon, 25 Jun 2007 12:20:47 -0700 (PDT) In-Reply-To: <467F680A.6090701@elvenkind.com> Content-Disposition: inline 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:35128 Archived-At: Thank you both, Taco and Wolfgang. I will make use of your suggestions and solutions. BTW. It seems that now I have to put some of the styling of the numerals, such as using small caps in the setups of right and left. For example: \unprotect \startsetups [numberitemleft] \hbox to \dimexpr\getitemparameter\itemlevel \c!width - \getitemparameter\itemlevel \c!distance\relax \bgroup\hfill \cap\bgroup( \stopsetups \startsetups [numberitemright] )\egroup \egroup \stopsetups \protect \starttext \startitemize[n][style=bold] \item As a college student, how do you rate yourself? \startitemize[R,packed][left={\setups[numberitemleft]}, right={\setups[numberitemright]}, stopper={.}, width=4.5em, style=\sl, distance=2em] \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. \stopitemize \stopitemize \stoptext Thanks again, -Hamid On 6/25/07, Taco Hoekwater wrote: > 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 > > > > > > ___________________________________________________________________________________ > 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 ___________________________________________________________________________________