From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85118 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Sectioning from 0? Date: Tue, 5 Nov 2013 23:31:25 +0100 Message-ID: <67A7C3DF-0552-46D9-8E7A-EA25990C5F32@gmail.com> References: <87fvsh2kjl.fsf@micropit.couberia.selfip.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1816\)) Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1383690706 7114 80.91.229.3 (5 Nov 2013 22:31:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Nov 2013 22:31:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 05 23:31:44 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vdp9t-0001FI-UQ for gctc-ntg-context-518@m.gmane.org; Tue, 05 Nov 2013 23:31:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D47F510233; Tue, 5 Nov 2013 23:31:36 +0100 (CET) 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 YjnmRa6pd6vr; Tue, 5 Nov 2013 23:31:34 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 74253101EF; Tue, 5 Nov 2013 23:31:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AF167101EF for ; Tue, 5 Nov 2013 23:31:32 +0100 (CET) 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 mBQq2KiO8D9k for ; Tue, 5 Nov 2013 23:31:29 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id A6A07101E3 for ; Tue, 5 Nov 2013 23:31:29 +0100 (CET) Original-Received: from mail-ee0-x232.google.com (mail-ee0-x232.google.com [IPv6:2a00:1450:4013:c00::232]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rA5MbeLg002379 for ; Tue, 5 Nov 2013 23:37:40 +0100 Original-Received: by mail-ee0-f50.google.com with SMTP id b45so1362807eek.37 for ; Tue, 05 Nov 2013 14:31:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=F0qlm43MrjEHse5QaY2MHRBbmyVucYklTrfdqDbwpVY=; b=vzBDiAc4TS1yOJN9977MOM/euXdzLyf75CxACcHSwUwvEbJS9n8BeW3pvePG7FtSiF 0XohXUBC5Gff7UaAVVhL3hz1644hIVvzxEie7HqX5a5h2akmIAlgq/7uKhBk7x78Gc8M 8CPFjDGxZ7aahkdZEBEzylutj8+yYQBSEtvpXCLAyzBMtFcg0+tc72HPF77VqeipsFzc RslnJc9kDOd391uDEnfvlNH0QLydrSYVZFJ3ris3Sei6T6XpFvTnTR+eFmmdvT/Lilhe ICIdDl77LC8w7kET+t804wGrM1xPFIaLeCH6m/O20NjLyhhjSxgu9zpKUUx95aboaqhF COyw== X-Received: by 10.14.193.198 with SMTP id k46mr15158een.128.1383690688989; Tue, 05 Nov 2013 14:31:28 -0800 (PST) Original-Received: from keima.localdomain (x2f2292b.dyn.telefonica.de. [2.242.41.43]) by mx.google.com with ESMTPSA id b42sm65721908eem.9.2013.11.05.14.31.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Nov 2013 14:31:27 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1816) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c00::232; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01KJWBE0U - 3ec62665d819 - 20131105 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85118 Archived-At: Am 05.11.2013 um 13:22 schrieb Proch=E1zka Luk=E1=B9 Ing. - Pontex s. r. o.= : > Hello, > = > I noticed now that: > = > ---- > \starttext > \startsection[ownnumber=3D0,title=3DA] > bla > \stopsection > = > \startsection[title=3DB] > bla > \stopsection > \stoptext > ---- > = > gives: > = > " > 0 A > = > bla > = > 2 B <- 1 should be here instead of 2; automatically > = > bla > " > = > instead of: > = > " > 0 A > = > bla > = > 1 B > = > bla > " > = > So my original question remains: > = > How to start counting sections (locally) from 0, not from 1? \defineexpandable[1]\PreviousNumber{\number\numexpr#1-1\relax} \defineconversion[PreviousNumber][\PreviousNumber] \setuphead[section][conversion=3DPreviousNumber] \starttext \startsection[title=3DA] bla \stopsection \startsection[title=3DB] bla \stopsection \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________