From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75471 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: why is \getnumber an undefined control sequence? Date: Mon, 2 Apr 2012 17:15:33 +0200 Message-ID: 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 (Apple Message framework v1257) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1333379758 11992 80.91.229.3 (2 Apr 2012 15:15:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2012 15:15:58 +0000 (UTC) Cc: Hans Hagen , "Thomas A. Schmitz" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 02 17:15:53 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 1SEiz3-0006Pa-8e for gctc-ntg-context-518@m.gmane.org; Mon, 02 Apr 2012 17:15:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B7805101F4; Mon, 2 Apr 2012 17:15:52 +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 kRTh3572zSqD; Mon, 2 Apr 2012 17:15:48 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5B4AA101E2; Mon, 2 Apr 2012 17:15:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 086D5101E2 for ; Mon, 2 Apr 2012 17:15:47 +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 oL8v9vUMZYZF for ; Mon, 2 Apr 2012 17:15:43 +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 6436210194 for ; Mon, 2 Apr 2012 17:15:43 +0200 (CEST) Original-Received: from mail-ey0-f169.google.com (mail-ey0-f169.google.com [209.85.215.169]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q32FFgwi011828 for ; Mon, 2 Apr 2012 17:15:42 +0200 Original-Received: by eaal1 with SMTP id l1so983440eaa.14 for ; Mon, 02 Apr 2012 08:15:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=RKdr1XuQnqMUENUKdfTaPNPOfxyLKGU6eCFeJCeLjPI=; b=Mf1vwwC7LVAayINBHvL+SBVMYpaR9T+8Pvo2MlZ1iIB+JBH7Jqp5WNumdle6SPjTA3 AypLwPLrGZEW5y5tVVvOfU10GSCGsINY2Cy7efjd8qGOuWa0yYolDusKm1dJqLgqrGl4 NCeTV2wsZ2RjvNMGM4apm1uBuN0A9Di+9KhEhgJ6P3zPdLU0GnxbtvaGGWSYI01KQkC8 AAqlObSOTMYDs9ZU2s8zaGFw1xGo1F68Ff0f05buerasRcgE0dd+kISLzjeFPrq6YfwS PoTeDzuhGfxwenGfKcCbe0shDb03Y1isAEE48+xFhjVUec9GHmemsOjLxXhEycxzl0Ep hACA== Original-Received: by 10.14.96.6 with SMTP id q6mr1522503eef.64.1333379741900; Mon, 02 Apr 2012 08:15:41 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AFC110.dip.t-dialin.net. [87.175.193.16]) by mx.google.com with ESMTPS id m42sm63876123eef.0.2012.04.02.08.15.38 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 02 Apr 2012 08:15:40 -0700 (PDT) In-Reply-To: <4F79BE31.5000300@wxs.nl> X-Mailer: Apple Mail (2.1257) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.169; country=US; latitude=38.0000; longitude=-97.0000; http://maps.google.com/maps?q=38.0000,-97.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TGR3fGB0 - 78af9bdf5ccd - 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:75471 Archived-At: Am 02.04.2012 um 16:56 schrieb Hans Hagen: > On 2-4-2012 16:46, Thomas A. Schmitz wrote: >> Hi all, >> >> what's wrong with this code? >> >> \definenumber [testnumber] [way=bytext,prefix=no] >> >> \starttext >> >> \incrementnumber[testnumber] >> >> A \getnumber[testnumber] >> >> \stoptext >> >> Works with older betas, craps out with latest. > > they were already for a while synonyms ... recently all 'structurecounter' names became 'counter' (the structure was a transition addition in order to have old and new code alongside) > > in the process we got rid of the 'number' synonyms > > so, just replace number by counter 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________