From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/33989 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: page numbering in words? Date: Wed, 28 Mar 2007 14:09:26 +0200 Message-ID: <115224fb0703280509v3c7b575cse0c45245d55face9@mail.gmail.com> References: <39FF4EA0-9392-4D97-B347-BB50F6593F80@mac.com> <08CABBFD-D65F-414F-AE63-5ACEB9EFB7D6@mac.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0099604544==" X-Trace: sea.gmane.org 1175083791 29416 80.91.229.12 (28 Mar 2007 12:09:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2007 12:09:51 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 28 14:09:40 2007 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 1HWWyB-0008On-Ef for gctc-ntg-context-518@m.gmane.org; Wed, 28 Mar 2007 14:09:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AE4512021A; Wed, 28 Mar 2007 14:09:38 +0200 (CEST) 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 05330-01; Wed, 28 Mar 2007 14:09:32 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 560792016B; Wed, 28 Mar 2007 14:09:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 392722016B for ; Wed, 28 Mar 2007 14:09:30 +0200 (CEST) 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 05228-01 for ; Wed, 28 Mar 2007 14:09:26 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by ronja.ntg.nl (Postfix) with ESMTP id 97A65200A6 for ; Wed, 28 Mar 2007 14:09:26 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id p77so2256693nfc for ; Wed, 28 Mar 2007 05:09:26 -0700 (PDT) Original-Received: by 10.78.185.7 with SMTP id i7mr4204891huf.1175083766119; Wed, 28 Mar 2007 05:09:26 -0700 (PDT) Original-Received: by 10.78.29.14 with HTTP; Wed, 28 Mar 2007 05:09:26 -0700 (PDT) In-Reply-To: <08CABBFD-D65F-414F-AE63-5ACEB9EFB7D6@mac.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:33989 Archived-At: --===============0099604544== Content-Type: multipart/alternative; boundary="----=_Part_32532_11816987.1175083766071" ------=_Part_32532_11816987.1175083766071 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/3/28, cormullion@mac.com : > > On 2007-03-26, at 17:39.0, cormullion@mac.com wrote: > > > is it possible to adjust options so as to get page numbering done in > > words? Eg > > > > "one" "two" ..... "eighty-nine" ... "three hundred and sixty seven" ? > > I can't see how to do this in ConText. I can see that the first task > - converting an integer to a string - could be done by a macro or > external command, such as Wolfgang's zahl2string.... But how to do > the second job - feed in a 'raw' pagenumber and output and print a > converted one? Hi, the last to feed in the pagenumber is very easy. I show in next example how the print the pagenumber in the header with words rather than numbers: \usemodule[zahl2string] \starttext \setuppagenumbering[location=] \setupheadertexts[\numstr\pagenumber] Text \stoptext BTW, these are not my macros, they come from Jonathan Sauerand I convertred them only to plain TeX. Wolfgang ------=_Part_32532_11816987.1175083766071 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

2007/3/28, cormullion@mac.com <cormullion@mac.com>:
On 2007-03-26, at 17:39.0, cormullion@mac.com wrote:

> is it possible to adjust options so as to get page numbering done in
> words? Eg
>
> "one" "two" ..... "eighty-nine" ... "three hundred and sixty seven" ?

I can't see how to do this in ConText. I can see that the first task
- converting an integer to a string - could be done by a macro or
external command, such as Wolfgang's zahl2string.... But how to do
the second job - feed in a 'raw' pagenumber and output and print a
converted one?

Hi,

the last to feed in the pagenumber is very easy. I show in next example
how the print the pagenumber in the header with words rather than numbers:

\usemodule[zahl2string]

\starttext

\setuppagenumbering[location=]
\setupheadertexts[\numstr\pagenumber]

Text

\stoptext

BTW, these are not my macros, they come from Jonathan Sauerand
I convertred them only to plain TeX.

Wolfgang

------=_Part_32532_11816987.1175083766071-- --===============0099604544== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============0099604544==--