From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13306 Path: main.gmane.org!not-for-mail From: "Pawel Jackowski na Onet" Newsgroups: gmane.comp.tex.context Subject: Re: beginner question re: counters Date: Wed, 17 Sep 2003 19:41:23 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <001201c37d42$f1066eb0$0500a8c0@best> References: <3F68970B.4050205@zam.att.ne.jp> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1063820913 8012 80.91.224.253 (17 Sep 2003 17:48:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 17 Sep 2003 17:48:33 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Sep 17 19:48:31 2003 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 19zgPn-0003Jm-00 for ; Wed, 17 Sep 2003 19:48:31 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 334BA10B74; Wed, 17 Sep 2003 19:48:26 +0200 (MEST) Original-Received: from smtp4.poczta.onet.pl (smtp4.poczta.onet.pl [213.180.130.28]) by ref.ntg.nl (Postfix) with ESMTP id 6455210B6F for ; Wed, 17 Sep 2003 19:42:28 +0200 (MEST) Original-Received: from pa36.debniki.sdi.tpnet.pl ([213.77.147.36]:29444 "HELO best") by ps4.test.onet.pl with SMTP id ; Wed, 17 Sep 2003 19:41:37 +0200 Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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:13306 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13306 > I apologize for asking such a basic question. What is the correct way > to increment a counter such that each time a macro is used, the counter > is augmented by 1. So far, I have \newcount\MyCounter and have tried > \advance\MyCounter by1 and a few other things I found online, but > whenever I try to increase its value by 1, all references to it's value > return 1. Not a particularly useful counter ;-) . Hmmm... It can happens for many reasons. Try for instance \global\advance\MyCounter by 1\relax \the\MyCounter % \relax is not always obligatory but treat it as a goode habit