* Chapter number conversion to words @ 2008-02-08 6:57 Bart C. Wise 2008-02-08 7:53 ` Taco Hoekwater 0 siblings, 1 reply; 3+ messages in thread From: Bart C. Wise @ 2008-02-08 6:57 UTC (permalink / raw) To: ntg-context 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Chapter number conversion to words 2008-02-08 6:57 Chapter number conversion to words Bart C. Wise @ 2008-02-08 7:53 ` Taco Hoekwater 2008-02-08 14:22 ` Bart C. Wise 0 siblings, 1 reply; 3+ messages in thread From: Taco Hoekwater @ 2008-02-08 7:53 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Chapter number conversion to words 2008-02-08 7:53 ` Taco Hoekwater @ 2008-02-08 14:22 ` Bart C. Wise 0 siblings, 0 replies; 3+ messages in thread From: Bart C. Wise @ 2008-02-08 14:22 UTC (permalink / raw) To: ntg-context 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 > ___________________________________________________________________________ >________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-02-08 14:22 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-02-08 6:57 Chapter number conversion to words Bart C. Wise 2008-02-08 7:53 ` Taco Hoekwater 2008-02-08 14:22 ` Bart C. Wise
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).