From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: setting margin for second level of itemize
Date: Thu, 8 Sep 2011 04:01:30 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.02.1109080358400.11941@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <ADB9FA32-D03D-48CA-B3A2-FF9EDB3CC04B@googlemail.com>
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
___________________________________________________________________________________
prev parent reply other threads:[~2011-09-08 8:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-07 15:49 Aditya Mahajan
2011-09-08 6:52 ` Wolfgang Schuster
2011-09-08 8:01 ` Aditya Mahajan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.02.1109080358400.11941@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).