Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

Direc­tory tex-archive/macros/latex/contrib/numprint

numprint.sty and nbaseprt.sty
=============================

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.


nbaseprt.sty:
This package prints integer numbers in different bases (octal,
decimal, hexadecimal, binary) similarly to the numprint package.
But here, the number of digits within one group depends on the
base.
  This version of nbaseprt.sty is a BETA VERSION. The main command
\nbaseprint will stay stable but all configuration commands and the output
of \nbaseprint may change in future. Please give me feedback what can be
improved and if the abbreviations for the different number bases are correct.



Copyright 2000--2005, 2007, 2008, 2012 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, nbaseprt.sty, and numprint032.sty to a place
             where LaTeX can find them
           - run texhash or the corresponding command of your distribution

by hand: - execute latex on numprint.ins
         - copy numprint.sty, nbaseprt.sty, and numprint032.sty to a place
           where LaTeX can find them
         - 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
	 - do the same replacing `numprint' by `nbaseprt' resp. 'numprint032'
         - run texhash or the corresponding command of your distribution, 
           again


2012/08/20
Harald Harders
harald.harders@gmx.de

Files

Name Size Date Notes
ChangeLog.nbaseprt 193 2004-12-14 22:27
ChangeLog.numprint 5681 2012-08-20 19:16
Makefile 3015 2012-08-21 20:41
README 3013 2012-08-20 19:16
getversion.tex 247 2004-08-13 16:56
nbaseprt.dtx 21150 2012-08-20 19:18
nbaseprt.pdf 342477 2012-08-20 19:18
nbaseprttest.tex 855 2004-12-14 22:24
numprint.dtx 167935 2012-08-20 19:15
numprint.ins 687 2012-08-20 19:17
numprint.pdf 834558 2012-08-20 19:17
numprint032.dtx 50089 2012-08-20 19:18
numprinttest.tex 7517 2007-01-08 15:38

Down­load the con­tents of this pack­age in one zip archive (1.2M).

numprint – Print num­bers with sep­a­ra­tors and ex­po­nent if nec­es­sary

The pack­age numprint prints num­bers with a sep­a­ra­tor ev­ery three dig­its and con­verts num­bers given as 12345.6e789 to 12\,345,6\cdot 10^{789}. Num­bers are printed in the cur­rent mode (text or math) in or­der to use the cor­rect font.

Many things, in­clud­ing the dec­i­mal sign, the thou­sand sep­a­ra­tor, as well as the prod­uct sign can be changed by the user, e.g., to reach 12,345.6\times 10^{789}.

If an op­tional ar­gu­ment is given it is printed up­right as unit. Num­bers can be rounded to a given num­ber of dig­its. The pack­age sup­ports an au­to­matic, lan­guage-de­pen­dent change of the num­ber for­mat.

Tab­u­lar align­ment us­ing the tab­u­lar(*), ar­ray, tab­u­larx, and longtable en­vi­ron­ments (sim­i­lar to the dcol­umn and rc­col pack­ages) is sup­ported us­ing all fea­tures of numprint. Ad­di­tional text can be added be­fore and af­ter the for­mat­ted num­ber.

Pack­age De­tailsnumprint
Ver­sion1.39
Li­censeThe LaTeX Project Public Li­cense
Copy­right2000-2005, 2007, 2008, 2012 Har­ald Harders
Main­tainerHar­ald Harders
Con­tained inTeXlive as numprint
MikTeX as numprint
Topics for­mat­ting num­bers, etc
Guest Book Sitemap Contact