From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39048 Path: news.gmane.org!not-for-mail From: "Bart C. Wise" Newsgroups: gmane.comp.tex.context Subject: Re: Chapter number conversion to words Date: Fri, 8 Feb 2008 07:22:48 -0700 Message-ID: <200802080722.48503.bart@wiseguysweb.com> References: <200802072357.45424.bntgcontext@wiseguysweb.com> <47AC0A71.9020603@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1202542597 16542 80.91.229.12 (9 Feb 2008 07:36:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Feb 2008 07:36:37 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 09 08:36:59 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1JNkGf-00067v-3g for gctc-ntg-context-518@m.gmane.org; Sat, 09 Feb 2008 08:36:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6F7B11FC06; Sat, 9 Feb 2008 08:36:23 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28372-10-7; Sat, 9 Feb 2008 08:36:12 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 26D071FBBD; Sat, 9 Feb 2008 08:36:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F01C61FC27 for ; Fri, 8 Feb 2008 15:25:51 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26728-04 for ; Fri, 8 Feb 2008 15:25:18 +0100 (CET) Original-Received: from out01.mta.xmission.com (out01.mta.xmission.com [166.70.13.231]) by ronja.ntg.nl (Postfix) with ESMTP id EF2E41FC32 for ; Fri, 8 Feb 2008 15:22:50 +0100 (CET) Original-Received: from [166.70.13.201] (helo=mgr1.xmission.com) by out01.mta.xmission.com with esmtp (Exim 4.62) (envelope-from ) id 1JNU7w-0003kp-VP for ntg-context@ntg.nl; Fri, 08 Feb 2008 07:22:52 -0700 Original-Received: from bwise1.provo.novell.com ([137.65.171.141] helo=bwise1) by mgr1.xmission.com with esmtpa (Exim 4.50) id 1JNU7u-00050Y-3I for ntg-context@ntg.nl; Fri, 08 Feb 2008 07:22:50 -0700 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) In-Reply-To: <47AC0A71.9020603@elvenkind.com> Content-Disposition: inline Received-SPF: none (mgr1.xmission.com: 137.65.171.141 is neither permitted nor denied by domain of wiseguysweb.com) client-ip=137.65.171.141; envelope-from=bart@wiseguysweb.com; helo=bwise1; X-SA-Exim-Connect-IP: 137.65.171.141 X-SA-Exim-Mail-From: bart@wiseguysweb.com X-Spam-DCC: XMission; sa04 1397; Body=1 Fuz1=1 Fuz2=1 X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100) X-SA-Exim-Scanned: Yes (on mgr1.xmission.com) X-Virus-Scanned: amavisd-new at ntg.nl X-Mailman-Approved-At: Sat, 09 Feb 2008 08:36:10 +0100 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:39048 Archived-At: 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 ___________________________________________________________________________________