2007/10/23, WN <[EMAIL PROTECTED]>:
>
> Hi,
>
> I want to make a numbered list as follows
>
> *Artikel 1. First artikel
>
> *1.1. Text for item 1.1.
> 1.2. Text for item 1.2
>
> *Artikel 2. Second artikel*
>
> 2.1. Text for item 2.1
> 2.2. Text for item 2.2
>
> etc.
>
> I am trying to accomplish this with \setupitemgroup and \defineitemgroup
> as
> follows, but the second level start also with Artikel and is indented.
> I looked at the some of the emails relating to numbered subitems
> but could not find a working example.
>
> Thanks for any help
> Wim
>
>
> % test code
>
\def\firstlevelnumber#1{\xdef\thefirstlevelnumber{#1}#1}
\defineconversion[firstlevelnumber][\firstlevelnumber]
\def\secondlevelnumber#1{\thefirstlevelnumber.#1}
\defineconversion[secondlevelnumber][\secondlevelnumber]
\defineitemgroup[mylist][levels=2]
> \setupitemgroup[mylist][1][atmargin][n,repeat]
>
\setupitemgroup[mylist][1][atmargin][n,firstlevelnumber]
\setupitemgroup[mylist][1][width=5em,stopper=.,headstyle=bold,left=Artikel ]
> \setupitemgroup[mylist][2][atmargin][n,repeat]
>
\setupitemgroup[mylist][2][atmargin][n,secondlevelnumber]
\setupitemgroup[mylist][2][width=2em,stopper=.,left=]
>
> \startext
> \startmylist
> \head First artikel
>
> \startmylist
> \item Text for item 1.1.
> \item Text for item 1.1.
> \stopmylist
>
> \head Second artikel
>
> \startmylist
> \item Text for item 2.1
> \item Text for item 2.2
> \stopmylist
>
> \stopmylist
> \stoptext
>
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________