From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51301 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: Re: new structure code Date: Sun, 14 Jun 2009 20:16:30 +0200 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <200906142016.30458.alan.braslau@cea.fr> References: <79305CB2-8502-48F2-A8A1-688CAE1FC2AF@gmail.com> <200906141330.26279.alan.braslau@cea.fr> <4A34F824.9010908@wxs.nl> 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: ger.gmane.org 1245003457 25323 80.91.229.12 (14 Jun 2009 18:17:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Jun 2009 18:17:37 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 14 20:17:34 2009 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 1MFuGp-0008OS-0n for gctc-ntg-context-518@m.gmane.org; Sun, 14 Jun 2009 20:17:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0941A1FBCC; Sun, 14 Jun 2009 20:17:26 +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 10887-01; Sun, 14 Jun 2009 20:16:45 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 243301FB8F; Sun, 14 Jun 2009 20:16:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7A06F1FB8F for ; Sun, 14 Jun 2009 20:16:43 +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 10843-02 for ; Sun, 14 Jun 2009 20:16:34 +0200 (CEST) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by ronja.ntg.nl (Postfix) with ESMTP id 687AD1FB89 for ; Sun, 14 Jun 2009 20:16:34 +0200 (CEST) Original-Received: from smtp4-g21.free.fr (smtp4-g21.free.fr [212.27.42.4]) by filter4-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n5EIGWVO003814 for ; Sun, 14 Jun 2009 20:16:33 +0200 Original-Received: from smtp4-g21.free.fr (localhost [127.0.0.1]) by smtp4-g21.free.fr (Postfix) with ESMTP id E0BC34C80F8 for ; Sun, 14 Jun 2009 20:16:30 +0200 (CEST) Original-Received: from iram-hb-003386.localnet (cev75-1-81-57-248-225.fbx.proxad.net [81.57.248.225]) by smtp4-g21.free.fr (Postfix) with ESMTP id EEF414C813F for ; Sun, 14 Jun 2009 20:16:27 +0200 (CEST) User-Agent: KMail/1.11.4 (Linux/2.6.29; KDE/4.2.4; x86_64; ; ) In-Reply-To: <4A34F824.9010908@wxs.nl> Content-Disposition: inline X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.27.42.4; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 242887939 - cbeea255fb9b - 20090614 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:51301 Archived-At: On Sunday 14 June 2009 15:16:20 Hans Hagen wrote: > keys like 'partnumber' are gone in mkiv; we now have sets and segments; > here is the variant with segments: (2 = section 2 == chapter) > > \setuphead[part] [resetnumber=no,placehead=yes] > % \setuphead[chapter][sectionsegments=2:100] > % \setuphead[section][sectionsegments=2:100] > > \setupstructureheads[sectionsegments=2:100] > > you can tune each number (also at list placement time or whatever) Thanks. But I am not sure that I understand the syntax, sorry. I tried looking at the code, but did not get very far. Blindly using the following minimal example, I almost get the desired result, but the parts are unnumbered. I would like: Part I. part one Chapter 1. chapter one 1.1 section one\setuplist[part,chapter,section][partnumber=no] 1.2 section two Chapter 2. chapter two 2.1 section one 2.2 section two Part II. part two Chapter 3. chapter three 3.1 section one 3.2 section two Chapter 4. chapter four 4.1 section one 4.2 section two \setuphead[part][resetnumber=no,placehead=yes] %mkii \setuplist[part,chapter,section][partnumber=no] \setupstructureheads[sectionsegments=2:100] \starttext \part{part one} \chapter{chapter one} \section{section one} \section{section two} \chapter{chapter two} \section{section one} \section{section two} \part{part two} \chapter{chapter three} \section{section one} \section{section two} \chapter{chapter four} \section{section one} \section{section two} \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________