ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* setting margin for second level of itemize
@ 2011-09-07 15:49 Aditya Mahajan
  2011-09-08  6:52 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2011-09-07 15:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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.

Thanks,
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: setting margin for second level of itemize
  2011-09-07 15:49 setting margin for second level of itemize Aditya Mahajan
@ 2011-09-08  6:52 ` Wolfgang Schuster
  2011-09-08  8:01   ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2011-09-08  6:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: setting margin for second level of itemize
  2011-09-08  6:52 ` Wolfgang Schuster
@ 2011-09-08  8:01   ` Aditya Mahajan
  0 siblings, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2011-09-08  8:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-08  8:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-07 15:49 setting margin for second level of itemize Aditya Mahajan
2011-09-08  6:52 ` Wolfgang Schuster
2011-09-08  8:01   ` Aditya Mahajan

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).