From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73898 Path: news.gmane.org!not-for-mail From: Felix Ingram Newsgroups: gmane.comp.tex.context Subject: Bug? Counters inherit chapter number Date: Mon, 16 Jan 2012 14:43:50 +0000 Message-ID: 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: dough.gmane.org 1326725049 12887 80.91.229.12 (16 Jan 2012 14:44:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jan 2012 14:44:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 16 15:44:05 2012 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.69) (envelope-from ) id 1Rmnn3-0001gQ-GP for gctc-ntg-context-518@m.gmane.org; Mon, 16 Jan 2012 15:44:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F2AC8CB1ED; Mon, 16 Jan 2012 15:44:03 +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 LeBIkolPAsT3; Mon, 16 Jan 2012 15:43:58 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A85DBCB1EE; Mon, 16 Jan 2012 15:43:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 79AFBCB1EE for ; Mon, 16 Jan 2012 15:43:56 +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 i7XG3qD9RsEf for ; Mon, 16 Jan 2012 15:43:51 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id B858FCB1ED for ; Mon, 16 Jan 2012 15:43:51 +0100 (CET) Original-Received: from mail-vw0-f41.google.com (mail-vw0-f41.google.com [209.85.212.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0GEhopp021663 for ; Mon, 16 Jan 2012 15:43:51 +0100 Original-Received: by vbbfa15 with SMTP id fa15so1146074vbb.14 for ; Mon, 16 Jan 2012 06:43:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=IXQdrPyJUqPVm+L7h+Fp76TX7tKF27Yp9OU8iV6Ur74=; b=H7eytLik1qO/Z8pTwJITXI0+05uv1ENdv2LcvLthFBotFZy5E6hvrOQ+EyZ2n70f9F +N/N5h2CppD+KX+n6T0mpI+yRhNVTxhYOA2o573NZZyOEBdLSykWEgL0oE6EUpAuALDG rLDa5CgooPvMRh0PYqmftSdECCgYfUhO5LDUQ= Original-Received: by 10.52.95.13 with SMTP id dg13mr6448939vdb.124.1326725030108; Mon, 16 Jan 2012 06:43:50 -0800 (PST) Original-Received: by 10.52.184.193 with HTTP; Mon, 16 Jan 2012 06:43:50 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.212.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05GmeHOPW - 3273ab1b08ae - 20120116 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:73898 Archived-At: Hi all, This works as expected* (empty section title with "5 6 7 8" on the next line \definenumber[examplecounter] \setnumber[examplecounter]{5} \starttext \startsection \getnumber[examplecounter] \incrementnumber[examplecounter] \getnumber[examplecounter] \incrementnumber[examplecounter] \getnumber[examplecounter] \incrementnumber[examplecounter] \getnumber[examplecounter] \incrementnumber[examplecounter] \stopsection \stoptext This does not: \definenumber[examplecounter] \setnumber[examplecounter]{5} \starttext \startchapter \getnumber[examplecounter] \incrementnumber[examplecounter] \getnumber[examplecounter] \incrementnumber[examplecounter] \getnumber[examplecounter] \incrementnumber[examplecounter] \getnumber[examplecounter] \incrementnumber[examplecounter] \stopchapter \stoptext The second example has an empty chapter heading followed by "1. 1.1 1.2 1.3". This is on version: 2011.11.29. Apologies if this is has been addressed - I'm holding off updating until I've worked out some more features in my doc. Felix * As expected by me ___________________________________________________________________________________ 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 ___________________________________________________________________________________