From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53577 Path: news.gmane.org!not-for-mail From: Joshua Lee Newsgroups: gmane.comp.tex.context Subject: Re: section numbers Date: Tue, 20 Oct 2009 07:47:34 +0800 Message-ID: <20091019234734.GA29021@josh-dev> References: <200910191817.15103.alan.braslau@cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="k+w/mQv8wyuph6w0" X-Trace: ger.gmane.org 1255995887 17832 80.91.229.12 (19 Oct 2009 23:44:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2009 23:44:47 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 20 01:44:35 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1N01tz-000152-LR for gctc-ntg-context-518@m.gmane.org; Tue, 20 Oct 2009 01:44:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C68B4C9AB7; Tue, 20 Oct 2009 01:44:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PeJe6SxfJXwB; Tue, 20 Oct 2009 01:44:31 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 09EE1C9A8A; Tue, 20 Oct 2009 01:44:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 027F2C9A8A for ; Tue, 20 Oct 2009 01:44:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id emKaQQfPFbyf for ; Tue, 20 Oct 2009 01:44:19 +0200 (CEST) Original-Received: from mail-ew0-f221.google.com (mail-ew0-f221.google.com [209.85.219.221]) by balder.ntg.nl (Postfix) with ESMTP id 6CDBCC9A3D for ; Tue, 20 Oct 2009 01:44:19 +0200 (CEST) Original-Received: by ewy21 with SMTP id 21so3443303ewy.8 for ; Mon, 19 Oct 2009 16:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=34rJ3avOpDag4s2lueRjeSgk2rePJgSfLUTIbrH8QmM=; b=Ptk/dzJPbpLHkUepoWJYDmUIsE1yrS1JqZRjUrUaqxHfHTzyqDwDFzrJ1SfpHt1rzA ji8xp1s058w+tJJZT/zy/cv+i9n3d5GdYY1Ta+SVusDfLomgVf2xKdkQV1+nG9tfX/NO ZFdNsbXLIj6MG3izoMk7jQOj0bFUXOSeEwNYU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=B5ZF5xgr2yqVwipeKBDcfSBJmDI/Jentyqt+8E9trkgS9pgeX2/H8ET8YP2S82gaZn 3FV1ZSWkaed2HkbL3WUyOEmBQqgnZ737ems4OK/FA+5rDoe28r8UUk6K8We2Rr4eqmkP UMrPivxTENyhsJteMZ8fRdOx9IAB0WtPhJUqc= Original-Received: by 10.211.173.17 with SMTP id a17mr273200ebp.77.1255995859266; Mon, 19 Oct 2009 16:44:19 -0700 (PDT) Original-Received: from josh-dev ([220.248.45.83]) by mx.google.com with ESMTPS id 7sm3645863eyb.40.2009.10.19.16.44.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 19 Oct 2009 16:44:18 -0700 (PDT) Content-Disposition: inline In-Reply-To: <200910191817.15103.alan.braslau@cea.fr> User-Agent: Mutt/1.5.20 (2009-06-14) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:53577 Archived-At: --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Alan, Try attached example.tex. Best regards, Joshua On Mon, 19 Oct 2009, Alan BRASLAU wrote: > Hello, > > I did not understand that this be the answer to the question, > but, of course, I cannot contradict he who posted the question > in the beginning. However, I understood that Thomas still wanted > chapters to be numbered, but that sections be numbered independently. > > In my case, I have been struggling to have parts numbered > (I, II, III, IV) and to have chapters numbered independently > (1, 2, 3, 4, ...), such as: > > Part I > Chapter 1 > Chapter 2 > Part II > Chapter 3 > Chapter 4 > Part III > Chapter 5 > > For this, I have > > \setuplabeltext[chapter=Chapter ] % By default, blank when using \part > \doifmodeelse{mkiv}{ > \setupstructureheads[sectionsegments=2:100] > \setupstructurehead[part][resetnumber=no,placehead=yes] > }{ % mkii > \setuplist[chapter,section,subsection,subsubsection][partnumber=no] > } > > but this is not quite right (works fine in mkii): > - the parts are not numbered > - the chapters are numbered 1, 2, 1, 2, 1, ... > > I have not yet figured this out (another problem kept me from > using mkiv on this problem, resolved only recently). > > Alan > > On Monday 19 October 2009 16:28:10 Thomas A. Schmitz wrote: > > On Oct 19, 2009, at 4:10 PM, Wolfgang Schuster wrote: > > > \setuphead > > > [section] > > > [sectionsegments=3:100] % show only the numbers for level 3 > > > (=section) till 100 (subsubsub...section) > > > > > > Wolfgang > > > > Thank you Wolfgang, that does it! At the risk of sounding like a > > crybaby: would one of the two people who have understood how the new > > structure code works please add some documentation somewhere? Just > > imagine what would happen if Hans and Wolfgang were struck by > > lightning on the same day :-) > > > > Thanks, and all best > > > > Thomas > ___________________________________________________________________________________ > 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 : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ -- Joshua Lee Alpha Networks(Chengdu) Co., LTD Shanghai Branch TEL: (86-21)61609650 EXT: 8020 FAX: (86-21)61609650 EXT: 8041 ADD: Suite 301, No.10, 198 Lane, Zhangheng Road, ZJ Hi-Tech Park, Shanghai, China 201204 --k+w/mQv8wyuph6w0 Content-Type: application/x-tex Content-Disposition: attachment; filename="example.tex" Content-Transfer-Encoding: quoted-printable \definestructureresetset[default][0,0][1]=0A=0A\setuphead[part][sectionrese= tset=3Ddefault]=0A\setuphead[part][resetnumber=3Dno,placehead=3Dyes,convers= ion=3DR]=0A\setuphead[chapter,section,subsection][resetnumber=3Dno,placehea= d=3Dyes,sectionsegments=3D2:100]=0A\starttext=0A\part{part one}=0A\chapter{= chapter one}=0A\section{section one}=0A\section{section two}=0A\chapter{cha= pter two}=0A\section{section one}=0A\section{section two}=0A\part{part two}= =0A\chapter{chapter three}=0A\section{section one}=0A\section{section two}= =0A\chapter{chapter four}=0A\section{section one}=0A\section{section two}= =0A\stoptext=0A=0A --k+w/mQv8wyuph6w0 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --k+w/mQv8wyuph6w0--