ltxwords - generate LaTeX macro to convert numbers to written format
ltxwords [ options ] > inwords.sty
From LaTeX:
UsePackage{inwords} ... \Words{section} ...
Options:
--language=XX language code, defaults to $LANG --max=NN number of entries, default = 20 --ident show identification --help brief help message --verbose verbose information
ISO code of the language to generate the macro for.
The highest number that should be convertible.
More verbose information.
Print a version identification to standard output and exits.
Print a brief help message to standard output and exits.
Prints a program identification.
inwords writes to standard output a LaTeX sty file that defines a macro Words that converts a number to written format.
For example, when \thesection equals seven, \Words{section} will return the string "Seven".
Basic usage:
$ inwords --language=nl > inwords.sty
And then, from LaTeX:
For each target language, it requires the corresponding Lingua::XX::Numbers module to be installed, where XX is the uppercased ISO code for the desired language.
For Dutch, the module Lingua::NL::Numbers::GroeneBoekje is required.
Due to the collective wishdom of the authors, the Lingua::*::Numbers modules do not have any sensible common API. They don't even follow the naming convention Lingua::*::Numbers!
This program tries to guess a way to get the module to work, but there's no guarantee that it will work with your choice of language. Patches welcome.
Johan Vromans <jvromans@squirrel.nl>
This programs is Copyright 2006 Squirrel Consultancy.
This program is free software; you can redistribute it and/or modify it under the terms of the Perl Artistic License or the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
To install ltxwords, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ltxwords
CPAN shell
perl -MCPAN -e shell install ltxwords
For more information on module installation, please visit the detailed CPAN module installation guide.