From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36794 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: numbered subitems Date: Sun, 30 Sep 2007 18:11:43 +0200 Message-ID: <115224fb0709300911m37bb63a7oe649b8a5cff7632d@mail.gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1191168745 13347 80.91.229.12 (30 Sep 2007 16:12:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Sep 2007 16:12:25 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 30 18:12: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 1Ic1P2-0000it-02 for gctc-ntg-context-518@m.gmane.org; Sun, 30 Sep 2007 18:12:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D9AF51FB71; Sun, 30 Sep 2007 18:12:15 +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 30836-01-6; Sun, 30 Sep 2007 18:11:59 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 149541FB21; Sun, 30 Sep 2007 18:11:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 520A81FB21 for ; Sun, 30 Sep 2007 18:11:53 +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 30836-01-5 for ; Sun, 30 Sep 2007 18:11:45 +0200 (CEST) Original-Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by ronja.ntg.nl (Postfix) with ESMTP id 87A211FAB6 for ; Sun, 30 Sep 2007 18:11:44 +0200 (CEST) Original-Received: by an-out-0708.google.com with SMTP id b20so429738ana for ; Sun, 30 Sep 2007 09:11:43 -0700 (PDT) Original-Received: by 10.90.93.6 with SMTP id q6mr1048839agb.1191168703321; Sun, 30 Sep 2007 09:11:43 -0700 (PDT) Original-Received: by 10.90.70.1 with HTTP; Sun, 30 Sep 2007 09:11:43 -0700 (PDT) In-Reply-To: Content-Disposition: inline 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:36794 Archived-At: 2007/9/30, Alan Bowen : > I need to produce an lengthy itemization of the form: > 1.AAAA > 1.1 aaaa > 1.2 bbbb > 2.BBBB > 2.1 cccc > > I can get: > 1.AAAA > 1 aaaa > 2 bbbb > 2.BBBB > 1 cccc > easily enough, but how can I get the main division number to repeat in the > subitem numeration? > > Alan \def\firstlevelnumber#1{\xdef\thefirstlevelnumber{#1}#1} \defineconversion[firstlevelnumber][\firstlevelnumber] \def\secondlevelnumber#1{\thefirstlevelnumber.#1} \defineconversion[secondlevelnumber][\secondlevelnumber] \starttext \startitemize[firstlevelnumber] \item AAAA \startitemize[secondlevelnumber] \item aaaa \item bbbb \stopitemize \item BBBB \startitemize[secondlevelnumber] \item cccc \item dddd \stopitemize \stopitemize \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 ___________________________________________________________________________________