From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15074 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: behavior of counter - bug or feature? Date: Tue, 04 May 2004 17:56:49 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <6.0.1.1.2.20040504175527.01d3e288@server-1> References: <200404191750.10425.john@wexfordpress.com> <20040419220851.GA2852@puritan.pcp.ath.cx> <3D80FFB0-9BA8-11D8-A94F-000A95B9ADE2@uni-bonn.de> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1083686386 23600 80.91.224.253 (4 May 2004 15:59:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 May 2004 15:59:46 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Tue May 04 17:59:28 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BL2KN-0000kc-00 for ; Tue, 04 May 2004 17:59:27 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id D60C410B2D; Tue, 4 May 2004 17:55:21 +0200 (MEST) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ref.ntg.nl (Postfix) with ESMTP id 7436610B2D for ; Tue, 4 May 2004 17:53:07 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i44Fsrqx027406 for ; Tue, 4 May 2004 17:54:53 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 8E73817A2A; Tue, 4 May 2004 17:57:07 +0200 (CEST) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 265AA179E6 for ; Tue, 4 May 2004 15:57:05 +0000 (UTC) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Original-To: ntg-context@ntg.nl In-Reply-To: <3D80FFB0-9BA8-11D8-A94F-000A95B9ADE2@uni-bonn.de> Original-References: <200404191750.10425.john@wexfordpress.com> <20040419220851.GA2852@puritan.pcp.ath.cx> <3D80FFB0-9BA8-11D8-A94F-000A95B9ADE2@uni-bonn.de> X-Virus-Scanned: clamd / ClamAV version devel-20040415, clamav-milter version 0.70i Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:15074 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15074 At 21:46 01/05/2004, you wrote: >Hi all, > >though I'm not 100 \% certain, I think this behavior came up in the latest >release of ConTeXt. For my manuscripts for talks, I have defined a nice >little counter like this > >\newcounter\slidecounter > >\define\sln{\increment\slidecounter \color[red]{[\slidecounter]} } > >which allows me to just type \sln when I want to mark a spot where I want >to show a new slide, and it will give the number in red, between brackets. >OK, this has been working for quite a while, but recently, I have observed >a strange behavior: if I use the command within an itemize-group, it will >count normally, but after the \stopitemize, the counter will be reset to >the value before the itemization. I can't swear to it, but I'm reasonably >certain that this wasn't the case before. Is it possible that something >was broken, Hans? > >Best wishes (especially to our new fellow-citizens) use \doglobal\increment instead (also, use names like \Sln so that there will never be conflicts with existing macros; i wouldnot be surprised if there will be a math function sln some day) Hans