From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55020 Path: news.gmane.org!not-for-mail From: "Wolfgang Werners-Lucchini" Newsgroups: gmane.comp.tex.context Subject: Re: How to count with chapter Date: Thu, 03 Dec 2009 23:02:17 +0100 Message-ID: <4B184379.19683.31DE48F@wwl.musensturm.de> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1259877732 5137 80.91.229.12 (3 Dec 2009 22:02:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Dec 2009 22:02:12 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 03 23:02:05 2009 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.50) id 1NGJkO-000868-GC for gctc-ntg-context-518@m.gmane.org; Thu, 03 Dec 2009 23:02:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1D526C9D0C; Thu, 3 Dec 2009 22:58:41 +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 fJ85i5Eb6jBf; Thu, 3 Dec 2009 22:58:38 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 68A2BC9D02; Thu, 3 Dec 2009 22:58:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 69AF4C9C35 for ; Thu, 3 Dec 2009 22:58: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 amyAXrAa-fZf for ; Thu, 3 Dec 2009 22:58:24 +0100 (CET) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by balder.ntg.nl (Postfix) with ESMTP id 5BEEFC9C89 for ; Thu, 3 Dec 2009 22:58:23 +0100 (CET) Original-Received: from [192.168.178.23] (p4FC791DB.dip0.t-ipconnect.de [79.199.145.219]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0Luphl-1OGMMN09BJ-00zyK3; Thu, 03 Dec 2009 23:01:38 +0100 Priority: normal In-reply-to: X-mailer: Pegasus Mail for Windows (4.41, DE v4.41 R1) Content-description: Mail message body X-Provags-ID: V01U2FsdGVkX18Ji6KuOXPWe6y2TiAtFpjedPe3X3EtpyVxGjM 6WPXt0Qy9edeXrFSL8J+zyFzaTNsY/WuyZkWcRipBsx1hBbXT+ rzMTPsKiLATwYNeRbEZNw== 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:55020 Archived-At: On 3 Dec 2009 at 18:17, ntg-context-request@ntg.nl wrote: Von: ntg-context-request@ntg.nl Betreff: ntg-context Digest, Vol 66, Issue 16 An: ntg-context@ntg.nl Antwort an: ntg-context@ntg.nl Datum: Thu, 03 Dec 2009 18:17:05 +0100 > > is this a bug too? > > ----------------------------------- > > %\chapter{Bla} > > \definenumber[PC]\getnumber[PC] > > \setnumber[PC]{1}\getnumber[PC] > > \incrementnumber[PC]\getnumber[PC] > > \incrementnumber[PC]\getnumber[PC] > > ----------------------------------- > > Without \chapter I get: 0 1 2 3 > > With \chapter: 0 1 1 2 > = > by default counters are reset per chapter and incrementnumber does > the check > = Hmm. But isn't it wrong to reset a counter who doesn't even exist = with chapter start? Why not do the same check with setnumber? Gru=DF, 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 ___________________________________________________________________________= ________