From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59947 Path: news.gmane.org!not-for-mail From: "Tom" Newsgroups: gmane.comp.tex.context Subject: Re: \numstr errors out in chapter star logic Date: Wed, 30 Jun 2010 18:27:58 -0400 Message-ID: <00a601cb18a3$7e07b000$7a171000$@com> References: <00e901cb16da$e492ab10$adb80130$@com> <4C290660.4010605@googlemail.com> <00f201cb1705$60bceaa0$2236bfe0$@com> <4C29106D.7040708@googlemail.com> <00fb01cb1709$86ae8580$940b9080$@com> <4C291691.3070301@googlemail.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: dough.gmane.org 1277936906 11049 80.91.229.12 (30 Jun 2010 22:28:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Jun 2010 22:28:26 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 01 00:28:23 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OU5lW-0003Eq-1a for gctc-ntg-context-518@m.gmane.org; Thu, 01 Jul 2010 00:28:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 491E3C9AF1; Thu, 1 Jul 2010 00:28:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id b1J9Ugb9GcTL; Thu, 1 Jul 2010 00:28:18 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 52B32C9AC7; Thu, 1 Jul 2010 00:28:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 84633C9AC7 for ; Thu, 1 Jul 2010 00:28:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id z5VAjHr6uPWc for ; Thu, 1 Jul 2010 00:28:04 +0200 (CEST) Original-Received: from smtp2.ctinetworks.com (smtp2.ctinetworks.com [205.166.61.227]) by balder.ntg.nl (Postfix) with ESMTP id C0323C9ABB for ; Thu, 1 Jul 2010 00:28:04 +0200 (CEST) Original-Received: from TomPC (dsl-206-251-12-162.dsl0.crls.pa.net [206.251.12.162]) by smtp2.ctinetworks.com (Postfix) with ESMTP id 3220E1A7489 for ; Wed, 30 Jun 2010 18:28:01 -0400 (EDT) In-Reply-To: <4C291691.3070301@googlemail.com> X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcsXCm08dJlmbHnDQnetCHuqTho8+gBmHsIw Content-Language: en-us X-ctinetworks-Information: Please contact the ISP for more information X-ctinetworks-MailScanner-ID: 3220E1A7489.6B0A5 X-ctinetworks-VirusCheck: Found to be clean X-ctinetworks-SpamCheck: X-ctinetworks-Watermark: 1278800883.39219@sRlj6Q5jLWpp1j3NAz0Xqw X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:59947 Archived-At: Am 28.06.10 23:33, schrieb Tom: > 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] > How should i know you're using mkii! Replace \setuphead with \setupsection: \setupsection[chapter][conversion=numstring] Wolfgang The following example converts chapter numbers to words for the \chapter logic but also converts chapter numbers to words in unwanted places such as in the TOC and section numbers in the text. \defineconversion[numstring][One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Te n,Eleven] \setupsection[chapter] [conversion=numstring] \starttext \completecontent \dorecurse{11}{\chapter{Chapter #1}\par\section{Example section}} \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________