[NTG-context] why is \getnumber an undefined control sequence?

Wolfgang Schuster schuster.wolfgang at googlemail.com
Mon Apr 2 18:37:01 CEST 2012

Am 02.04.2012 um 17:20 schrieb Thomas A. Schmitz:

> 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?)

There is no need for a \getcounter command, you can fix it by making both synonyms for the \convertedcounter command.

\let\getnumber     \convertedcounter


More information about the ntg-context mailing list