From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37024 Path: news.gmane.org!not-for-mail From: WN Newsgroups: gmane.comp.tex.context Subject: Numbered subitems Date: Tue, 23 Oct 2007 18:02:38 +0200 Message-ID: <471E1B1E.2060307@tiscali.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1533075707==" X-Trace: ger.gmane.org 1193155126 30744 80.91.229.12 (23 Oct 2007 15:58:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2007 15:58:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 23 17:58:47 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IkM9V-0006z8-NI for gctc-ntg-context-518@m.gmane.org; Tue, 23 Oct 2007 17:58:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CA3301FBC9; Tue, 23 Oct 2007 17:58:37 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28337-05-5; Tue, 23 Oct 2007 17:58:27 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B33171FBBA; Tue, 23 Oct 2007 17:58:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 749591FB47 for ; Tue, 23 Oct 2007 17:58:06 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28337-05-2 for ; Tue, 23 Oct 2007 17:57:56 +0200 (CEST) Original-Received: from smtp-out3.tiscali.nl (smtp-out3.tiscali.nl [195.241.79.178]) by ronja.ntg.nl (Postfix) with ESMTP id 831621FB5B for ; Tue, 23 Oct 2007 17:57:54 +0200 (CEST) Original-Received: from [82.171.198.174] (helo=[192.168.1.36]) by smtp-out3.tiscali.nl with esmtp (Tiscali http://www.tiscali.nl) id 1IkM8g-000290-KC for ; Tue, 23 Oct 2007 17:57:54 +0200 User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:37024 Archived-At: This is a multi-part message in MIME format. --===============1533075707== Content-Type: multipart/alternative; boundary="------------030609060807040901070503" This is a multi-part message in MIME format. --------------030609060807040901070503 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 \defineitemgroup[mylist][levels=2] \setupitemgroup[mylist][1][atmargin][n,repeat] \setupitemgroup[mylist][1][width=5em,stopper=.,headstyle=bold,left=Artikel ] \setupitemgroup[mylist][2][atmargin][n,repeat] \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 --------------030609060807040901070503 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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
\defineitemgroup[mylist][levels=2]
\setupitemgroup[mylist][1][atmargin][n,repeat]
\setupitemgroup[mylist][1][width=5em,stopper=.,headstyle=bold,left=Artikel ]
\setupitemgroup[mylist][2][atmargin][n,repeat]
\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
--------------030609060807040901070503-- --===============1533075707== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1533075707==--