From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76276 Path: news.gmane.org!not-for-mail From: Peter Schorsch Newsgroups: gmane.comp.tex.context Subject: counter reseting at every heading Date: Fri, 18 May 2012 15:00:11 +0200 Message-ID: <20120518150011.457afb54@freenet.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1337346171 9080 80.91.229.3 (18 May 2012 13:02:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 May 2012 13:02:51 +0000 (UTC) To: ConTeXt NTG Original-X-From: ntg-context-bounces@ntg.nl Fri May 18 15:02:50 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SVMpV-0002kg-AF for gctc-ntg-context-518@m.gmane.org; Fri, 18 May 2012 15:02:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 62A4B101DD; Fri, 18 May 2012 15:02:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cJhAQdd9OScP; Fri, 18 May 2012 15:02:46 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E048B101DF; Fri, 18 May 2012 15:02:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 89B2C101DF for ; Fri, 18 May 2012 15:02:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ccEAozAuAap0 for ; Fri, 18 May 2012 15:02:41 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id D3D49101DD for ; Fri, 18 May 2012 15:02:41 +0200 (CEST) Original-Received: from mout0.freenet.de (mout0.freenet.de [IPv6:2001:748:100:40::2:2]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q4ID2efO011899 for ; Fri, 18 May 2012 15:02:41 +0200 Original-Received: from [195.4.92.140] (helo=mjail0.freenet.de) by mout0.freenet.de with esmtpa (ID tralalas@freenet.de) (port 25) (Exim 4.76 #1) id 1SVMpM-0006si-AG for ntg-context@ntg.nl; Fri, 18 May 2012 15:02:40 +0200 Original-Received: from localhost ([::1]:42713 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID tralalas@freenet.de) (Exim 4.76 #1) id 1SVMpM-0006Cv-7P for ntg-context@ntg.nl; Fri, 18 May 2012 15:02:40 +0200 Original-Received: from [195.4.92.18] (port=58148 helo=8.mx.freenet.de) by mjail0.freenet.de with esmtpa (ID tralalas@freenet.de) (Exim 4.76 #1) id 1SVMmz-0005L5-AL for ntg-context@ntg.nl; Fri, 18 May 2012 15:00:13 +0200 Original-Received: from 31-18-187-91-dynip.superkabel.de ([31.18.187.91]:37982 helo=freenet.de) by 8.mx.freenet.de with esmtpsa (ID tralalas@freenet.de) (UNKNOWN:AES128-SHA:128) (port 25) (Exim 4.76 #1) id 1SVMmz-0000Aj-0U for ntg-context@ntg.nl; Fri, 18 May 2012 15:00:13 +0200 X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) X-Bayes-Prob: 0.9408 (Score 4.2, tokens from: @@RPTN) X-CanIt-Geo: ip=2001:748:100:40::2:2; country=DE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06Hbp2F2w - 0493bdfee146 - 20120518 X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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:76276 Archived-At: Hi, I realized yesterday that my counter for the module does not reset itself as before. What I need is a counter that resets after each heading (chapter, section, subsection, subsubsection and so on). This is what I know about counter reseting at the moment: \definecounter[ParagraphNumber][prefix=no,way=bysection] - way=bychapter: reseting counter at every chapter (default) - way=bysection: reseting counter at every section (not at chapters) - way={bychapter,bysection,bysubsection,bysubsubsection}: does not work \setuphead[chapter,section,subsection,subsubsection][after={\resetcounter[ParagraphNumber]}] does work but it messes with the distance between heading and normal text. What is the correct/best way to make the counter reseting every heading without messing around? Thanks P. ___________________________________________________________________________________ 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 ___________________________________________________________________________________