[NTG-context] \numstr errors out in chapter star logic

Tom Tom at tuxedo-press.com
Mon Jun 28 23:33:18 CEST 2010





Am 28.06.10 23:03, schrieb Tom:
> Making the following changes resulted in ! Missing Number, treated as
zero.
>    

I'm lazy:

\defineconversion[numstring][One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Te
n,...]
\setuphead[chapter][conversion=numstring]
\starttext
\dorecurse{11}{\chapter{Chapter #1}}
\stoptext

Wolfgang

The "lazy" method below yields eleven pages, each of which is headed by n
Chapter n, where n represents the numerals from 1 to 11. The text version of
the chapter numbers do not appear.

\defineconversion[numstring][One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Te
n,Eleven]

\setuphead[chapter]
 [conversion=numstring]  

\starttext

\dorecurse{11}{\chapter{Chapter #1}}

\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey




More information about the ntg-context mailing list