From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39032 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Chapter number conversion to words Date: Fri, 08 Feb 2008 08:53:21 +0100 Message-ID: <47AC0A71.9020603@elvenkind.com> References: <200802072357.45424.bntgcontext@wiseguysweb.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 1202457234 22103 80.91.229.12 (8 Feb 2008 07:53:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Feb 2008 07:53:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 08 08:54:17 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 1JNO3s-0007H2-1w for gctc-ntg-context-518@m.gmane.org; Fri, 08 Feb 2008 08:54:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 278451FBFB; Fri, 8 Feb 2008 08:53:46 +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 31387-03-3; Fri, 8 Feb 2008 08:53:36 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 77BD61FBEB; Fri, 8 Feb 2008 08:53:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E6BB31FBF1 for ; Fri, 8 Feb 2008 08:53:34 +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 25944-03-6 for ; Fri, 8 Feb 2008 08:53:27 +0100 (CET) Original-Received: from www.bittext.nl (unknown [195.86.58.132]) by ronja.ntg.nl (Postfix) with ESMTP id E37D61FBEB for ; Fri, 8 Feb 2008 08:53:25 +0100 (CET) Original-Received: from localhost (vz3.aanhet.net [127.0.0.1]) by www.bittext.nl (Postfix) with ESMTP id 99F251E8C2B4 for ; Fri, 8 Feb 2008 08:53:23 +0100 (CET) X-Virus-Scanned: amavisd-new at bittext.nl Original-Received: from www.bittext.nl ([127.0.0.1]) by localhost (vz3.aanhet.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U4id1rv1xdh1 for ; Fri, 8 Feb 2008 08:53:19 +0100 (CET) Original-Received: from [10.10.0.6] (boo.demon.nl [82.161.175.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by www.bittext.nl (Postfix) with ESMTP id CAA361E8C2B3 for ; Fri, 8 Feb 2008 08:53:19 +0100 (CET) User-Agent: Thunderbird 1.5.0.10 (X11/20070305) In-Reply-To: <200802072357.45424.bntgcontext@wiseguysweb.com> X-Virus-Scanned: amavisd-new at ntg.nl 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:39032 Archived-At: 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 ___________________________________________________________________________________