From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78497 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: counter reseting at every heading Date: Sun, 30 Sep 2012 23:07:18 +0200 Message-ID: <47167081-90B1-45AA-AA1E-A30FB994DCC0@gmail.com> References: <20120930222938.039d4f9d@freenet.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.1 \(1498\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1349039253 18562 80.91.229.3 (30 Sep 2012 21:07:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Sep 2012 21:07:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 30 23:07:37 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 1TIQjg-0008C1-9N for gctc-ntg-context-518@m.gmane.org; Sun, 30 Sep 2012 23:07:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6E305101F5; Sun, 30 Sep 2012 23:07:30 +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 HmybYIpGhbq6; Sun, 30 Sep 2012 23:07:28 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 95B43101EB; Sun, 30 Sep 2012 23:07:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B4646101EB for ; Sun, 30 Sep 2012 23:07:27 +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 rKmr+MFRJzGA for ; Sun, 30 Sep 2012 23:07:27 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 0AC36101E0 for ; Sun, 30 Sep 2012 23:07:27 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8UL7KGd014866 for ; Sun, 30 Sep 2012 23:07:21 +0200 Original-Received: by bkcjm1 with SMTP id jm1so5104174bkc.14 for ; Sun, 30 Sep 2012 14:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=1PbN/KO3Xkuc0Js01YMH7GqCan0E4z9A1WYr3hkr/LM=; b=f4bvw+G3cwn0HCSqnMKFNrJn2WCI8z1L2FcQw4Od8t+uZWV+Ij3/MZ0UNgXwglhJ32 4YtvBbTzcab1oE6ncqwxCWgBMm3hKELN5Qt4CcNENrPEkGgdcQqhLYJQ5UhZcGP6Ds/g MtTmCWJd/qNaDcfL5HMIgfRiitQCyr4jpMBkYHQjeK6bGF+O4eHHdosmEOSR4YpfcRN6 4lV1oaybWfLzh7OysovX4Jlj5XsRzaNAPSsDrB9MHq1Z5B24AI2XWhaZTzknyj7MTB40 FmAOEmZWhQJg2kqIHHyukNlnIk21ReCaZTanUIP3dVUinp7uDeEcflv2s3nbIK1sc736 H6ow== Original-Received: by 10.204.156.11 with SMTP id u11mr5249020bkw.69.1349039240237; Sun, 30 Sep 2012 14:07:20 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbf8d9d.pool.mediaWays.net. [77.191.141.157]) by mx.google.com with ESMTPS id hy11sm9902695bkc.5.2012.09.30.14.07.18 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 30 Sep 2012 14:07:19 -0700 (PDT) In-Reply-To: <20120930222938.039d4f9d@freenet.de> X-Mailer: Apple Mail (2.1498) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 07I5x7kOz - 7070bce46889 - 20120930 (trained as not-spam) 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:78497 Archived-At: Am 30.09.2012 um 22:29 schrieb Peter Schorsch : > 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=3Dno,way=3D{bychapter,bysection,by= subsection,bysubsubsection}] > = > 2) > \definecounter[ParagraphNumber][prefix=3Dno,way=3Dbyheader] > = > 3) > \setuphead[chapter,section,subsection,subsubsection][after=3D{\resetcount= er[ParagraphNumber]}] > as soon the spaces are defined over spaceafter instead of after. > = > Is there a forth option out? When you use the start/stop commands for the headings you can use the insid= e section key to reset the counter, e.g. \setuphead[insidesection=3D{\reset= counter[=85]}] > Or can anyone tell me what the defaults spaces are so that I can copy the= m manually? = Here are the default values taken from strc-def.mkiv, the subsection etc. i= nherit the settings from section. part, chapter: before =3D \blank[2*big] after =3D \blank[2*big] section: before =3D \blank[2*big] after =3D \blank 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 ___________________________________________________________________________= ________