From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71077 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: setting margin for second level of itemize Date: Thu, 8 Sep 2011 04:01:30 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1315468822 5301 80.91.229.12 (8 Sep 2011 08:00:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Sep 2011 08:00:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 08 10:00:18 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R1ZWz-0007sU-UQ for gctc-ntg-context-518@m.gmane.org; Thu, 08 Sep 2011 10:00:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C3EB1CAF77; Thu, 8 Sep 2011 10:00:15 +0200 (CEST) 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 nrQckoz0FVn2; Thu, 8 Sep 2011 10:00:13 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B209BCAF68; Thu, 8 Sep 2011 10:00:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 53E20CAF66 for ; Thu, 8 Sep 2011 10:00:11 +0200 (CEST) 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 OZ6HM6WFOEz8 for ; Thu, 8 Sep 2011 10:00:09 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 09720CAF68 for ; Thu, 8 Sep 2011 10:00:07 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p88804MW031989 for ; Thu, 8 Sep 2011 10:00:06 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096682717.dsl.bell.ca [65.94.12.221]) By hellskitchen.mr.itd.umich.edu ID 4E687603.1FA51.25961 ; Authuser adityam; 8 Sep 2011 04:00:03 EDT In-Reply-To: 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.82; 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: 05Fu8053b - 0afb1282163f - 20110908 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:71077 Archived-At: On Thu, 8 Sep 2011, Wolfgang Schuster wrote: > > Am 07.09.2011 um 17:49 schrieb Aditya Mahajan: > >> Hi, >> >> I want items to display as follows (| represents the text area edge) >> >> | 1. First item >> | 2. Second item >> | 2.1 Sub item >> | 2.2 Sub item >> | 3. Third item >> >> I could not find a way to control the margin of the second level. Setting >> >> \setupitemize[1][margin=2em] >> \setupitemize[2][margin=4em] >> >> does not work. > > \setupitemize[1][margin=2em,width=2em] > \setupitemize[1][margin=2em,width=2em] % margin 2 = margin 1 + width 1 Thanks. I prefer using itemalign=flushright with [broad,fit], which looks really ugly with an explicit width. For example \setupitemize[1][margin=2em,width=2em, distance=0.5em, itemalign=flushright] \setupitemize[broad,fit] \showframe \starttext \startitemize[n] \item One \item Two \startitemize[n] \item Sub one \item Sub two \stopitemize \dorecurse{10}{\item Item \recurselevel} \stopitemize \stoptext But I guess that in this case I'll just remove \setupitemize[broad,fit]. 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 ___________________________________________________________________________________