From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73901 Path: news.gmane.org!not-for-mail From: Felix Ingram Newsgroups: gmane.comp.tex.context Subject: Re: ntg-context Digest, Vol 91, Issue 66 Date: Mon, 16 Jan 2012 16:31:04 +0000 Message-ID: References: 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 1326731503 29830 80.91.229.12 (16 Jan 2012 16:31:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jan 2012 16:31:43 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 16 17:31:38 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 1RmpT4-0002a2-Hc for gctc-ntg-context-518@m.gmane.org; Mon, 16 Jan 2012 17:31:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C935ACB1F0; Mon, 16 Jan 2012 17:31:33 +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 qYO1zw+Yuw-4; Mon, 16 Jan 2012 17:31:24 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B0AAACB1EA; Mon, 16 Jan 2012 17:31:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 28FD8CB1EA for ; Mon, 16 Jan 2012 17:31:23 +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 bMnb-qkCqD4D for ; Mon, 16 Jan 2012 17:31:06 +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 94327CB1E7 for ; Mon, 16 Jan 2012 17:31:06 +0100 (CET) Original-Received: from mail-vx0-f169.google.com (mail-vx0-f169.google.com [209.85.220.169]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0GGV59X020827 for ; Mon, 16 Jan 2012 17:31:06 +0100 Original-Received: by vcdn13 with SMTP id n13so439384vcd.14 for ; Mon, 16 Jan 2012 08:31:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=lEUvVn5z9Ga4IbrvlTMfT83yztqaXNQ59spb1N+cTeU=; b=pwPJmsEqw9q8xFbHtk+zc4jYvt3ddjSklTqM+Nes4QFNWRVaVRLpIpiW7oWKw82Sjs OX8p1qB/7HVSiGZQyZtClXRf8L1wJZWX5geutQ8oInS94hMn67eWYIFncRghhQase7TA CkZFSKJQNT5Yjp8U2ydku8uudIhWqJAQtEeAU= Original-Received: by 10.220.156.72 with SMTP id v8mr7996607vcw.45.1326731464978; Mon, 16 Jan 2012 08:31:04 -0800 (PST) Original-Received: by 10.52.184.193 with HTTP; Mon, 16 Jan 2012 08:31:04 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.169; 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: 03Gmgv5T2 - 0411570b1e03 - 20120116 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:73901 Archived-At: > By default the counter is reset with each new chapter, since you have chapters > in your first example the counter is incremented but in your second example > \startchapter sets the counter back to zero. > > To have a counter which isn?t reset you need ?way=bytext" and to remove > the chapter number from the \getnumber result you have to add ?prefix=no?. > > The full \definenumber declaration is then \definenumber[examplecounter][way=bytext,prefix=no] Thanks Wolfgang. I've updated the wiki page with this explanation. Felix ___________________________________________________________________________________ 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 ___________________________________________________________________________________