Hi Wolfgang

In the meantime I found another way of getting the desired result. I am now using
enumerations out of the box, without needing extra counters.
After a bit of experimenting, this is what I did

% test code
\defineenumeration[artikel][location=left,text=Artikel,headstyle=bold,stopper=.,distance=5pt,width=broad,number=yes]
\setupenumerations[subartikel][text=,location=left,stopper=.,width=broad,distance=5pt]
\starttext
\startartikel First artikel \stopartikel
\startsubartikel Text for item 1.1. \stopsubartikel
\startsubartikel Text for item 1.2 \stopsubartikel

\startartikel Second artikel \stopartikel
\startsubartikel Text for item 2.1 \stopsubartikel
\startsubartikel Text for item 2.2 \stopsubartikel
\stoptext

Anyways, thanks for your help
Kind regards
Wim Neimeijer

2007/10/23, WN <[EMAIL PROTECTED] <mailto:[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 : 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
___________________________________________________________________________________

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

Reply via email to