From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85120 Path: news.gmane.org!not-for-mail From: =?iso-8859-2?B?UHJvY2jhemthIEx1a+G5IEluZy4gLSBQb250ZXggcy4gci4gby4=?= Newsgroups: gmane.comp.tex.context Subject: Re: Sectioning from 0? Date: Wed, 06 Nov 2013 10:29:07 +0100 Message-ID: References: <87fvsh2kjl.fsf@micropit.couberia.selfip.net> <67A7C3DF-0552-46D9-8E7A-EA25990C5F32@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1383730170 24614 80.91.229.3 (6 Nov 2013 09:29:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Nov 2013 09:29:30 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 06 10:29:36 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 1VdzQa-0007S5-1A for gctc-ntg-context-518@m.gmane.org; Wed, 06 Nov 2013 10:29:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ED713101F3; Wed, 6 Nov 2013 10:29:30 +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 XgbfRMxjyVoH; Wed, 6 Nov 2013 10:29:28 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4040D101E7; Wed, 6 Nov 2013 10:29:28 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6BE93101E7 for ; Wed, 6 Nov 2013 10:29:26 +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 trXUeSrFX9zF for ; Wed, 6 Nov 2013 10:29:23 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 6AD13101E3 for ; Wed, 6 Nov 2013 10:29:20 +0100 (CET) Original-Received: from mail.pontex.cz (mail.pontex.cz [89.233.168.98]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rA69TIjK030122 for ; Wed, 6 Nov 2013 10:29:20 +0100 Original-Received: from localhost ([127.0.0.1]) by mail.pontex.cz (Kerio MailServer 6.6.2) for ntg-context@ntg.nl; Wed, 6 Nov 2013 10:29:17 +0100 In-Reply-To: <67A7C3DF-0552-46D9-8E7A-EA25990C5F32@gmail.com> User-Agent: Opera Mail/12.15 (Win32) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=89.233.168.98; country=CZ; latitude=49.7500; longitude=15.5000; http://maps.google.com/maps?q=49.7500,15.5000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QKK9tihM - 86dc4f90095a - 20131106 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:85120 Archived-At: ... It works perfectly, thanks! Lukas On Tue, 05 Nov 2013 23:31:25 +0100, Wolfgang Schuster wrote: > > 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= the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ > -- = Ing. Luk=E1=B9 Proch=E1zka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezov=E1 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038 ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________