From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62777 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Thoughts about counters Date: Wed, 20 Oct 2010 17:11:32 +0200 Message-ID: <2F38E738-80EA-4301-989F-CEDA45FEF95D@gmail.com> References: <4CBEF9DB.2080702@amolf.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1287587531 2974 80.91.229.12 (20 Oct 2010 15:12:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 20 Oct 2010 15:12:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 20 17:12:09 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 1P8aKn-0005HI-PM for gctc-ntg-context-518@m.gmane.org; Wed, 20 Oct 2010 17:12:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 503A6CA765; Wed, 20 Oct 2010 17:12:08 +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 6HIrHTcyTMDT; Wed, 20 Oct 2010 17:12:05 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8EA12CA756; Wed, 20 Oct 2010 17:12:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 09415CA756 for ; Wed, 20 Oct 2010 17:12:04 +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 otSuIzu4uRpn for ; Wed, 20 Oct 2010 17:11:53 +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 EEEA2CA6F4 for ; Wed, 20 Oct 2010 17:11:52 +0200 (CEST) Original-Received: from mail-yw0-f41.google.com (mail-yw0-f41.google.com [209.85.213.41]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9KExjlS024830 for ; Wed, 20 Oct 2010 16:59:46 +0200 Original-Received: by ywi4 with SMTP id 4so513470ywi.14 for ; Wed, 20 Oct 2010 08:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=sFOnc3IHwW6srlEx2r1tt1Lbu6qR+9TjtXcy4P30DU0=; b=IyFXwKb0qbGkzcu+Lgyai5wifPEqmP0yqWXljzEMer5gBlActDKN9j6OH1MeVJ03gJ otmQ4jw8PwAIc1ToSc4q6k8v2CzqjheVbwyNBoNlu9em+xWIu3UERlzr8/ig2+Zn7kaz yctzuQog86iCKLVe4E+gNvfZLQZsPopYwycUU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=qsLUhRXNmFfeejOJLzzaeq8ytxigkXNUQmnXwCXnXm3eUt7Zhg5CbV1NPHXXyb4Pi1 +xTZ/Zq4RdKv6UHd56tFSKAAAtR1lZNKEpZgPDHLCJAWuzRDmSPIJpc1H9tbpGIVWcm1 E69It5eRhLGUyetnkP5iQSa1vEmfC+MVVUEIQ= Original-Received: by 10.103.251.4 with SMTP id d4mr857298mus.131.1287587510268; Wed, 20 Oct 2010 08:11:50 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B2968C6.dip.t-dialin.net [91.41.104.198]) by mx.google.com with ESMTPS id o6sm174273fal.15.2010.10.20.08.11.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 20 Oct 2010 08:11:48 -0700 (PDT) In-Reply-To: <4CBEF9DB.2080702@amolf.nl> X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.213.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: 0aDl2XJos - a0e81eadcaca - 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:62777 Archived-At: Am 20.10.2010 um 16:16 schrieb Bela Mulder: > Wolfgang: thanks for the tips, I'll try them out. Be aware that prefix/numbersegments is only available in mkiv. > Hans: Here is the example, which produced the output in my Thoughts docum= ent (http://dl.dropbox.com/u/5718469/counters.pdf) > = > \definetyping[cmds] > \setuptyping[cmds][option=3Dcommands] > \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. Can=92t reproduce your problem here (using latest minimals) neither with mk= ii nor with mkiv but why do you write =84/stopcmds=93 and not =84\stopcmds=93? 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 ___________________________________________________________________________= ________