From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35121 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" 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 08:26:20 +0200 Message-ID: <115224fb0706242326w25dcdb41id554dd8d452d3961@mail.gmail.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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1182752799 28444 80.91.229.12 (25 Jun 2007 06:26:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2007 06:26:39 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 25 08:26:37 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 1I2i1x-0001S0-Vt for gctc-ntg-context-518@m.gmane.org; Mon, 25 Jun 2007 08:26:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 81990200D8; Mon, 25 Jun 2007 08:26:33 +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 03015-10; Mon, 25 Jun 2007 08:26:26 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B6DFD200C7; Mon, 25 Jun 2007 08:26:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CC992200C7 for ; Mon, 25 Jun 2007 08:26:24 +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 03789-02-5 for ; Mon, 25 Jun 2007 08:26:22 +0200 (CEST) Original-Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.236]) by ronja.ntg.nl (Postfix) with ESMTP id CADAB200BB for ; Mon, 25 Jun 2007 08:26:21 +0200 (CEST) Original-Received: by wx-out-0506.google.com with SMTP id s10so1585162wxc for ; Sun, 24 Jun 2007 23:26:20 -0700 (PDT) Original-Received: by 10.90.92.7 with SMTP id p7mr3791894agb.1182752780426; Sun, 24 Jun 2007 23:26:20 -0700 (PDT) Original-Received: by 10.90.70.3 with HTTP; Sun, 24 Jun 2007 23:26:20 -0700 (PDT) In-Reply-To: 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:35121 Archived-At: 2007/6/25, Hamid Kamrani : > On 6/24/07, Hamid Kamrani wrote: > > On 6/24/07, Taco Hoekwater wrote: > > > Hamid Kamrani wrote: > > > > Taco and Wolfang, > > > > > > > > Thanks both for your responses. > > > > But: > > > > 1. The setup offered by Taco does not line up the numerals on the > > > > dots. Maybe my problem was misunderstood. > > > > > > Did you miss this? > On a follow-up to previous note: > I think this is how I missed the width issue. In my testing, I had > both distance and width parameters. I may be doing something wrong > but these two conflict. The width value need to be larger than the distance value because the resulting width for the number in your example is width (below 3em) - distance (below 5em) = -2em (5em - 3em). The same problem did also appear in my solution. Wolfgang > \unprotect > \startsetups [numberitemleft] > \hbox to \dimexpr\getitemparameter\itemlevel \c!width - > \getitemparameter\itemlevel \c!distance\relax > \bgroup\hfill > \stopsetups > > \startsetups [numberitemright] > \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=3em, > style=\sc, > distance=5em] > \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 > > Best, > -Hamid > > > > > I certainly did. I'm sorry, the misunderstanding was on my part. > > > > I do like your solution. But how to make it the default? This should > > be the default behavior and in fact the required width should be > > calculated by ConTeXt. Otherwise ConTeXt is behaving like MS Word. > > > > Please note that, second to paragraphs, lists are the most widely used > > text blocks. It is imperative that they format correctly. > > > > If you're using Arabic numerals then you have the chance to list your > > first 9 items correctly.But, alas, if you have to use roman numeral. > > The problem shows up in the second item. (you would not itemize if you > > had only one item!) > > > > 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. > > > > My apologies for discounting your solution too quickly. > > > > Best regards, > > -Hamid > > > > > > > > > > > > > > > > Taco wrote: > > > > You probably want to increase the 'width' parameter, but that should be > > > > straightforward. > > > > > > It should work with width=2pc (two digits and a dot do not fit in the > > > default allocated space, so the 10. sticks out to the right) > > > > > > 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 ___________________________________________________________________________________