From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78496 Path: news.gmane.org!not-for-mail From: Peter Schorsch Newsgroups: gmane.comp.tex.context Subject: counter reseting at every heading Date: Sun, 30 Sep 2012 22:29:38 +0200 Message-ID: <20120930222938.039d4f9d@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: ger.gmane.org 1349037138 3702 80.91.229.3 (30 Sep 2012 20:32:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Sep 2012 20:32:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 30 22:32:24 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 1TIQBc-0000fj-Ap for gctc-ntg-context-518@m.gmane.org; Sun, 30 Sep 2012 22:32:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 54F7D101F9; Sun, 30 Sep 2012 22:32:18 +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 Fdqe87NP1xdW; Sun, 30 Sep 2012 22:32:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4D7C7101EB; Sun, 30 Sep 2012 22:32:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9204D101EB for ; Sun, 30 Sep 2012 22:32:13 +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 NGmaQmqRD52S for ; Sun, 30 Sep 2012 22:32:12 +0200 (CEST) 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 59713101E0 for ; Sun, 30 Sep 2012 22:32:12 +0200 (CEST) Original-Received: from mout3.freenet.de (mout3.freenet.de [IPv6:2001:748:100:40::2:5]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8UKbSPv030913 for ; Sun, 30 Sep 2012 22:37:28 +0200 Original-Received: from [195.4.92.142] (helo=mjail2.freenet.de) by mout3.freenet.de with esmtpa (ID tralalas@freenet.de) (port 25) (Exim 4.76 #1) id 1TIQBP-0003Wk-6D for ntg-context@ntg.nl; Sun, 30 Sep 2012 22:32:11 +0200 Original-Received: from localhost ([::1]:57982 helo=mjail2.freenet.de) by mjail2.freenet.de with esmtpa (ID tralalas@freenet.de) (Exim 4.76 #1) id 1TIQBP-0001Kd-0R for ntg-context@ntg.nl; Sun, 30 Sep 2012 22:32:11 +0200 Original-Received: from [195.4.92.20] (port=57641 helo=10.mx.freenet.de) by mjail2.freenet.de with esmtpa (ID tralalas@freenet.de) (Exim 4.76 #1) id 1TIQ8y-0000iP-Fm for ntg-context@ntg.nl; Sun, 30 Sep 2012 22:29:40 +0200 Original-Received: from 31-18-179-213-dynip.superkabel.de ([31.18.179.213]:46345 helo=freenet.de) by 10.mx.freenet.de with esmtpsa (ID tralalas@freenet.de) (UNKNOWN:AES128-SHA:128) (port 25) (Exim 4.76 #1) id 1TIQ8y-00053z-5F for ntg-context@ntg.nl; Sun, 30 Sep 2012 22:29:40 +0200 X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) X-Bayes-Prob: 0.8077 (Score 2, tokens from: @@RPTN) X-CanIt-Geo: ip=2001:748:100:40::2:5; country=DE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01I5wBs1z - 4f48b392a1af - 20120930 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:78496 Archived-At: Hi, few months ago (18th may) I asked about how to setup a counter that resets after each heading (chapter, section, subsection, subsubsection and so on. I got three possibilities then but none of them was implemented (and still is not): 1) \definecounter[ParagraphNumber][prefix=no,way={bychapter,bysection,bysubsection,bysubsubsection}] 2) \definecounter[ParagraphNumber][prefix=no,way=byheader] 3) \setuphead[chapter,section,subsection,subsubsection][after={\resetcounter[ParagraphNumber]}] as soon the spaces are defined over spaceafter instead of after. Is there a forth option out? Or can anyone tell me what the defaults spaces are so that I can copy them manually? 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 ___________________________________________________________________________________