numprint.sty
============

Print numbers with a separator every three digits and convert numbers
given as 12345.6e789 to 12\,345,6\cdot 10^{789}. Numbers are printed
in the current mode (text or math) in order to use the correct font.
  Many things, including the decimal sign, the thousand separator, as
well as the product sign can be changed by the user, e.g., to reach
12,345.6\times 10^{789}. If requested, numprint can round numbers to
a given number of digits.
  If an optional argument is given it is printed upright as unit.
Numbers can be rounded to a given number of digits.
  The package supports an automatic, language-dependent change of the
number format.
  Tabular alignment using the tabular(*), array, tabularx, and longtable
environments (similar to the dcolumn and rccol packages) is supported
using all features of numprint. Additional text can be added before and
after the formatted number.

If you prefer to use the old version 0.32 you may use numprint032.sty
which will stay fixed.


Copyright 2000--2003 Harald Harders

This program can be redistributed and/or modified under the terms
of the LaTeX Project Public License Distributed from CTAN
archives in directory macros/latex/base/lppl.txt; either
version 1 of the License, or any later version.



Installation:

automatic: - run make
	   - run make install
	 or
           - run make
           - copy numprint.sty to a place where LaTeX can find it
           - run texhash or the corresponding command of your distribution

by hand: - execute latex on numprint.ins
         - copy numprint.sty to a place LaTeX can find it
         - run texhash or the corresponding command of your distribution
         If you also want to re-compile the documentation which should not
         be necessary do the following items, too:
         - execute:
           pdflatex numprint.dtx
           pdflatex numprint.dtx
           makeindex -s gglo.ist -o numprint.gls numprint.glo
           makeindex -s gind.ist numprint
           pdflatex numprint.dtx
         - copy numprint.pdf to the documentation tree of your 
           TeX implementation
         - run texhash or the corresponding command of your distribution, 
           again



To do:
- Add more languages to the automatic international support.


Change log:
- 1.11  2003/11/09  Avoid use of \fileversion etc.
- 1.10  2003/10/12  New tabular aligment mechanism (now comparable to
                      dcolumn and rccol) with full support of all 
                      numprint formats.
                    Math version npbold which aligns with normal math
                      alphabet.
                    Don't use substr package.
                    Provide \npmakebox command that works as \makebox
                      but takes a text instead of a length for calculating
                      its width.
- 1.00  2003/10/07  Automatically add a plus to numbers without sign.
                    Define shortcut \np for \numprint on demand.
                    Automatic support for different number formats in
                      different languages (already supported are
                      English and German).
                    Better argument parsing.
                    Automatically don't separate degree sign from number.
                    Customize input characters (decimal sign, exponent
                      character).
                    Define a list of ignored characters.
                    User defined signs exceeding +,-, and \pm.
                    Load configuration file if present.
                    Improved calculation of box width for mantissa and
                      exponent.
                    Entirely new implementation (about 90% new code).
- 0.32  2003/09/28  With wrong number format, generate only one error
                      message per \numprint call.
                    Reset the number of digits before and after the decimal
                      sign (Bugfix for nosepfour).
- 0.31  2003/09/16  Describe automatic language-dependent switch of
                      decimal sign.
                    Expand the mandatory argument of the command before
                      parsing it.
                    Bug Fix: With four-digit numbers, print everything
                      instead of first digit only.
- 0.30  2003/05/19  Allow to round numbers, automatically.
                    Optionally replace zero by text, e.g. ``---''.
- 0.22  2003/02/27  Bugfix with invalid spacing after the number.
- 0.21  2003/02/25  Changed README.
- 0.20  2003/02/24  Added support for \pm sign,
                    Fixed bug which made units fragile.
- 0.10  2003/01/08  Changed several commands from \<commandname> to
                      \np<commandname> because of an incompatibility with the
                      french language of babel. This makes numprint.sty 
                      incompatible with older versions in some cases.
- 0.06  2002/09/18  Added automatic adding of zero before or after
                      decimal sign.
- 0.05  2001/03/12  Added basic support for aligned tabular entries.
- 0.04  2001/03/06  Added support for pure 10^{123} format using the
                      command \numprint{e123}.
- 0.03  2001/02/10  Fixed bug with units.
- 0.02  2000/08/30  Added optional argument for units.
- 0.01  2000/08/30  Changed to dtx format.


2003-11-09
Harald Harders
h.harders@tu-bs.de
