From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75472 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: why is \getnumber an undefined control sequence? Date: Mon, 02 Apr 2012 17:20:03 +0200 Message-ID: <4F79C3A3.8040708@uni-bonn.de> References: <4F79BBC3.2060203@uni-bonn.de> <4F79BE31.5000300@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1333380016 14281 80.91.229.3 (2 Apr 2012 15:20:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2012 15:20:16 +0000 (UTC) Cc: mailing list for ConTeXt users , Hans Hagen To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 02 17:20:10 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 1SEj3B-0001CP-T6 for gctc-ntg-context-518@m.gmane.org; Mon, 02 Apr 2012 17:20:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 58607101E9; Mon, 2 Apr 2012 17:20:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id YVeGnmP3k-Nw; Mon, 2 Apr 2012 17:20:07 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 347A6101E2; Mon, 2 Apr 2012 17:20:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 33C64101E2 for ; Mon, 2 Apr 2012 17:20: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 (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vcXG6-qqskkR for ; Mon, 2 Apr 2012 17:20:05 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 7E1F710194 for ; Mon, 2 Apr 2012 17:20:05 +0200 (CEST) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q32FK4i0015972 for ; Mon, 2 Apr 2012 17:20:04 +0200 Original-Received: from [87.178.54.174] (account tschmit1@uni-bonn.de HELO localhost.localdomain) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.4.4) with ESMTPSA id 13596541; Mon, 02 Apr 2012 17:20:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120319 Thunderbird/11.0 In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TGR3k42G - 4fe4dd79d0fc - 20120402 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:75472 Archived-At: On 04/02/2012 05:15 PM, Wolfgang Schuster wrote: > The problem are these two synonyms: > > \let \getnumber \getcounter % [name] > \let \convertednumber \getcounter % [name] > > There is a \convertedcounter but no \getcounter. > > @Thomas: You can \rawcounter to print only the numeric value of the counter or \convertedcounter for a formatted form of the counter (you can apply a conversion, e.g. romannumerals or add a prefix, e.g. the current chapter or section number). > > Wolfgang Ah, thank you Wolfgang! \rawcounter is sufficient for me in my real-life case, but I assume you will want to add \getcounter? (And are the number synonyms here to stay, or will they be deleted?) All best Thomas ___________________________________________________________________________________ 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 ___________________________________________________________________________________