From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84056 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Numbering sections Date: Mon, 2 Sep 2013 15:28:56 +0200 Message-ID: <055BEF3D-7D21-491D-A60D-A3AE1289EF5E@gmail.com> References: <522490E1.2050007@mmnetz.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1378128538 12486 80.91.229.3 (2 Sep 2013 13:28:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Sep 2013 13:28:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 02 15:29:02 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 1VGUBh-0005G7-5L for gctc-ntg-context-518@m.gmane.org; Mon, 02 Sep 2013 15:29:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B234D101E4; Mon, 2 Sep 2013 15:27:32 +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 orzlngTMoLNs; Mon, 2 Sep 2013 15:27:31 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1299B10208; Mon, 2 Sep 2013 15:27:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D5C6810208 for ; Mon, 2 Sep 2013 15:27:29 +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 PuQ8-rtRsUwl for ; Mon, 2 Sep 2013 15:27:29 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 19AE6101E4 for ; Mon, 2 Sep 2013 15:27:29 +0200 (CEST) Original-Received: from mail-ee0-x229.google.com (mail-ee0-x229.google.com [IPv6:2a00:1450:4013:c00::229]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r82DStgC011893 for ; Mon, 2 Sep 2013 15:28:56 +0200 Original-Received: by mail-ee0-f41.google.com with SMTP id d17so2373200eek.0 for ; Mon, 02 Sep 2013 06:28:55 -0700 (PDT) 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=38L5m/fRfJZ2Xi5JXAqL9lfnK/eOp/l+1x3RHj8qL0g=; b=juE3EC1H6cTGJv0sqnPxJo/v8RdydbNHWMvAbu78SeuNMD/tnnlk4S2ZJ1lt5TLqh6 cmpj1L7+CQMSCeoPsWNQelp+qhJWsI0kO7TMGmQx2LlLYiDIUfC4y+C4nF1BEhUQup/J 2tDDHDA9XyGC8G4JKmD07jmOCvLTOc5tYBDd+inw/+LNRkpQsZ/l+yYAnYh+/oMeMcdz /O1WdE8ZH5JAXl4UsWKqzfUcimZvKsyEDp0uKKcLKKjYlVpjxgPcvfrGqJY2lcEG5g+g l6I43KXgPSH+GEsuroWDZIoOsxoC10hBcLvR7Mi5MLoZXhuZ2AEBq4QDHpiA79vyi62L 93CQ== X-Received: by 10.15.100.198 with SMTP id bn46mr36924732eeb.11.1378128535593; Mon, 02 Sep 2013 06:28:55 -0700 (PDT) Original-Received: from keima.localdomain (x2f23dda.dyn.telefonica.de. [2.242.61.218]) by mx.google.com with ESMTPSA id p5sm22216029eeg.5.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Sep 2013 06:28:55 -0700 (PDT) In-Reply-To: <522490E1.2050007@mmnetz.de> X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c00::229; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07KkdsTnr - 87d995d245c1 - 20130902 (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:84056 Archived-At: Am 02.09.2013 um 15:21 schrieb "H. =D6zoguz" : >> You can the section number with \getmarking[sectionnumber], the chapter = number with \getmarking[chapternumber] etc. > = > Thanks Wolfgang! > = > And another question about numbering: How can I let start the numbering o= f chapters with the number n (not 1, as default)? E.g. with n=3D0 or n=3D2? To start chapters with a larger number you have to add \setupheadnumber[cha= pter][] to your document, when the first chapter should start with 0 you need a conversion which prin= ts always 1 less than the real number. \defineexpandable[1]\Previousnumber {\number\numexpr#1-1\relax} \defineconversion[previousnumber][\Previousnumber] \setuphead[chapter][conversion=3Dpreviousnumber] \starttext \dorecurse{5}{\chapter{Chapter #1}} \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 ___________________________________________________________________________= ________