ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: page numbering in words?
Date: Wed, 28 Mar 2007 14:09:26 +0200	[thread overview]
Message-ID: <115224fb0703280509v3c7b575cse0c45245d55face9@mail.gmail.com> (raw)
In-Reply-To: <08CABBFD-D65F-414F-AE63-5ACEB9EFB7D6@mac.com>


[-- Attachment #1.1: Type: text/plain, Size: 961 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1441 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

  parent reply	other threads:[~2007-03-28 12:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-26 16:39 cormullion
2007-03-26 18:16 ` Wolfgang Schuster
2007-03-26 18:44   ` cormullion
2007-03-26 18:40 ` Wolfgang Schuster
2007-03-26 21:31   ` cormullion
2007-03-28 11:03 ` cormullion
2007-03-28 11:59   ` Zhichu Chen
2007-03-28 12:09   ` Wolfgang Schuster [this message]
2007-03-28 15:09     ` cormullion
2007-03-28 15:49       ` Zhichu Chen
2007-03-28 22:15         ` cormullion
2007-03-29  7:39           ` Taco Hoekwater
2007-04-17 11:09             ` Mojca Miklavec
2007-04-16 12:52 Robin Kirkham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=115224fb0703280509v3c7b575cse0c45245d55face9@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).