From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37033 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Numbered subitems Date: Wed, 24 Oct 2007 15:25:44 +0200 Message-ID: <115224fb0710240625x491b0272u81a666d82326b551@mail.gmail.com> References: <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="===============1992187403==" X-Trace: ger.gmane.org 1193232981 5230 80.91.229.12 (24 Oct 2007 13:36:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Oct 2007 13:36:21 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 24 15:36:20 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 1IkgPE-0006Kg-FJ for gctc-ntg-context-518@m.gmane.org; Wed, 24 Oct 2007 15:36:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BE5141FB5B; Wed, 24 Oct 2007 15:36:11 +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 10929-02-3; Wed, 24 Oct 2007 15:35:58 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 037751FBA0; Wed, 24 Oct 2007 15:35:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1602F1FBA0 for ; Wed, 24 Oct 2007 15:35:55 +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 10929-02-2 for ; Wed, 24 Oct 2007 15:35:49 +0200 (CEST) Original-Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by ronja.ntg.nl (Postfix) with ESMTP id 52D451FB5B for ; Wed, 24 Oct 2007 15:35:46 +0200 (CEST) Original-Received: by wx-out-0506.google.com with SMTP id i27so203641wxd for ; Wed, 24 Oct 2007 06:35:45 -0700 (PDT) Original-Received: by 10.90.50.1 with SMTP id x1mr505586agx.1193232344224; Wed, 24 Oct 2007 06:25:44 -0700 (PDT) Original-Received: by 10.90.98.20 with HTTP; Wed, 24 Oct 2007 06:25:44 -0700 (PDT) In-Reply-To: <471E1B1E.2060307@tiscali.nl> 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:37033 Archived-At: --===============1992187403== Content-Type: multipart/alternative; boundary="----=_Part_7367_23155022.1193232344201" ------=_Part_7367_23155022.1193232344201 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/10/23, WN : > > 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 ------=_Part_7367_23155022.1193232344201 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

2007/10/23, WN <wneimeijer@tiscali.nl>:
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
 


------=_Part_7367_23155022.1193232344201-- --===============1992187403== 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 ___________________________________________________________________________________ --===============1992187403==--