From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62776 Path: news.gmane.org!not-for-mail From: Bela Mulder Newsgroups: gmane.comp.tex.context Subject: Re: Thoughts about counters Date: Wed, 20 Oct 2010 16:16:59 +0200 Message-ID: <4CBEF9DB.2080702@amolf.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1287584231 17035 80.91.229.12 (20 Oct 2010 14:17:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 20 Oct 2010 14:17:11 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 20 16:17:08 2010 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 1P8ZTY-0002BB-9l for gctc-ntg-context-518@m.gmane.org; Wed, 20 Oct 2010 16:17:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6032ACA769; Wed, 20 Oct 2010 16:17:06 +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 Et5pEZFwvnrK; Wed, 20 Oct 2010 16:17:02 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7D870CA756; Wed, 20 Oct 2010 16:17:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 26FF1CA756 for ; Wed, 20 Oct 2010 16:17:01 +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 jwxyvPv2Rm9d for ; Wed, 20 Oct 2010 16:16:58 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id C9FF7CA6F4 for ; Wed, 20 Oct 2010 16:16:58 +0200 (CEST) Original-Received: from mailsrv.amolf.nl (mailsrv.amolf.nl [192.16.189.221]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9KE4qfu004224 for ; Wed, 20 Oct 2010 16:04:52 +0200 Original-Received: from mail.amolf.nl (mail.amolf.nl [192.16.189.219]) by mailsrv.amolf.nl (8.14.3/8.14.3) with ESMTP id o9KEGvfb008935 for ; Wed, 20 Oct 2010 16:16:57 +0200 Original-Received: from [127.0.0.1] (bureau.amolf.nl [194.171.69.8]) by mail.amolf.nl (Postfix) with ESMTP id D1D22779B6 for ; Wed, 20 Oct 2010 16:16:57 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=192.16.189.221; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aDl24QcS - 30aad3ec1a71 - 20101020 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:62776 Archived-At: Wolfgang: thanks for the tips, I'll try them out. Hans: Here is the example, which produced the output in my Thoughts document (http://dl.dropbox.com/u/5718469/counters.pdf) \definetyping[cmds] \setuptyping[cmds][option=commands] \starttext \startcmds \def\MySectionCounter{P\currentcounter[part].C\currentcounter[chapter]-\currentcounter[section]} /stopcmds \stoptext which has inserted spaces before the opening square brackets and between e.g. \def and \MySectionCounter. -- Bela Mulder Group Leader Theory of Biomolecular matter FOM Institute AMOLF Science Park 104, 1098XG Amsterdam, THE NETHERLANDS Tel: + 31 20 7547100 FAX: + 31 20 7547290 web: http://www.amolf.nl/research/theory_of_biomolecular_matter/ ___________________________________________________________________________________ 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 ___________________________________________________________________________________