Chapter number conversion to words
![](https://secure.gravatar.com/avatar/468d45d9f34c99f0697f0e59e2e73b46.jpg?s=120&d=mm&r=g)
I would like to display chapter headings spelling out the numbers into words. For example: Chapter One Chapter Two Chapter Three etc. I thought that I could put a conversion in the setuphead function; however, it doesn't appear to be supported. So how to I do the conversion? Thanks, Bart
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Bart C. Wise wrote:
I would like to display chapter headings spelling out the numbers into words. For example:
Chapter One Chapter Two Chapter Three etc.
I thought that I could put a conversion in the setuphead function; however, it doesn't appear to be supported. So how to I do the conversion?
By using \setupsection, like this: \def\englishnumbers#1% {\ifcase#1 \or One\or Two\or Three\or Four\or Five\fi} \defineconversion[englishnumbers][\englishnumbers] \setupsection[chapter][conversion=englishnumbers] Best wishes, Taco
![](https://secure.gravatar.com/avatar/b9366f5030567ca4a11c63ac89c078a8.jpg?s=120&d=mm&r=g)
Thanks again! Works great! On Friday February 8 2008, Taco Hoekwater wrote:
Bart C. Wise wrote:
I would like to display chapter headings spelling out the numbers into words. For example:
Chapter One Chapter Two Chapter Three etc.
I thought that I could put a conversion in the setuphead function; however, it doesn't appear to be supported. So how to I do the conversion?
By using \setupsection, like this:
\def\englishnumbers#1% {\ifcase#1 \or One\or Two\or Three\or Four\or Five\fi} \defineconversion[englishnumbers][\englishnumbers]
\setupsection[chapter][conversion=englishnumbers]
Best wishes, Taco ___________________________________________________________________________ ________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________ ________
participants (3)
-
Bart C. Wise
-
Bart C. Wise
-
Taco Hoekwater