summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/numprint
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-09 00:44:40 +0000
committerKarl Berry <karl@freefriends.org>2006-01-09 00:44:40 +0000
commitb4fc5f639874db951177ec539299d20908adb654 (patch)
tree52f08823ca58fffe3db6a9b075635038c567626c /Master/texmf-dist/doc/latex/numprint
parentdec3d98ebe442d7ea93efbaa8dd2e2be8149a467 (diff)
doc 4
git-svn-id: svn://tug.org/texlive/trunk@80 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/numprint')
-rw-r--r--Master/texmf-dist/doc/latex/numprint/ChangeLog.nbaseprt5
-rw-r--r--Master/texmf-dist/doc/latex/numprint/ChangeLog.numprint124
-rw-r--r--Master/texmf-dist/doc/latex/numprint/README77
-rw-r--r--Master/texmf-dist/doc/latex/numprint/getversion.tex10
-rw-r--r--Master/texmf-dist/doc/latex/numprint/nbaseprt.pdfbin0 -> 399292 bytes
-rw-r--r--Master/texmf-dist/doc/latex/numprint/nbaseprt.xml37
-rw-r--r--Master/texmf-dist/doc/latex/numprint/nbaseprttest.pdfbin0 -> 31555 bytes
-rw-r--r--Master/texmf-dist/doc/latex/numprint/nbaseprttest.tex61
-rw-r--r--Master/texmf-dist/doc/latex/numprint/numprint.pdfbin0 -> 900281 bytes
-rw-r--r--Master/texmf-dist/doc/latex/numprint/numprint.xml41
-rw-r--r--Master/texmf-dist/doc/latex/numprint/numprinttest.pdfbin0 -> 73258 bytes
-rw-r--r--Master/texmf-dist/doc/latex/numprint/numprinttest.tex458
12 files changed, 813 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/numprint/ChangeLog.nbaseprt b/Master/texmf-dist/doc/latex/numprint/ChangeLog.nbaseprt
new file mode 100644
index 00000000000..95f474dbfb4
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/numprint/ChangeLog.nbaseprt
@@ -0,0 +1,5 @@
+2004/12/14 v0.11 Harald Harders (h.harders@tu-bs.de)
+ - Usage of eco.sty in nbaseprttest.tex only if available.
+
+2004/08/08 v0.10 Harald Harders (h.harders@tu-bs.de)
+ - New Implementation.
diff --git a/Master/texmf-dist/doc/latex/numprint/ChangeLog.numprint b/Master/texmf-dist/doc/latex/numprint/ChangeLog.numprint
new file mode 100644
index 00000000000..25e2e0d8e62
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/numprint/ChangeLog.numprint
@@ -0,0 +1,124 @@
+2005/07/11 v1.35 Harald Harders (h.harders@tu-bs.de)
+ - Support not to separate percent sign from number.
+
+2004/12/13 v1.34 Harald Harders (h.harders@tu-bs.de)
+ - Fix a bug invoked in version 1.33. Found by Stefan Salewski.
+
+2004/11/19 v1.33 Harald Harders (h.harders@tu-bs.de)
+ - Avoid to use the calc package since it causes problems with many
+ other packages.
+
+2004/09/13 v1.32 Harald Harders (h.harders@tu-bs.de)
+ - Produce an error rather than a warning when using textcomp symbols
+ in the unit if mathcomp or gensymb is not loaded.
+ - Improve documentation about textcomp symbols.
+
+2004/08/18 v1.31 Harald Harders (h.harders@tu-bs.de)
+ - Bugfix (v1.20): \numprint{e123} reprinted the last used sign.
+ - Bugfix: The numprint column types did not like empty cells in the
+ last column of a tabular.
+
+2004/08/11 v1.30 Harald Harders (h.harders@tu-bs.de)
+ - Add the commands \lenprint and \cntprint that print lengths and
+ counters.
+
+2004/08/08 v1.22 Harald Harders (h.harders@tu-bs.de)
+ - Use \npunitcommand to typeset units.
+ - Produce a warning rather than an error when using \textdegree as
+ unit.
+ - Enable to use \textcelsius, \textohm, \textmu, \textperthousand in
+ the unit.
+ - Print sign in a group to avoid additional space for an operator
+ (for nbaseprt).
+ - Restrain empty \color command to exponent.
+
+2004/08/01 v1.21 Harald Harders (h.harders@tu-bs.de)
+ - Add support for Portuguese.
+ - Move change log from README to ChangeLog.
+
+2004/07/27 v1.20 Harald Harders (h.harders@tu-bs.de)
+ - Add padding a number on the left side.
+ - Allow \numprint{-e5} in addition to \numprint{e5}.
+ - Remove the reduction in font sizes in documentation.
+
+2004/04/01 v1.13 Harald Harders (h.harders@tu-bs.de)
+ - Small fix in documentation.
+
+2004/02/12 v1.12 Harald Harders (h.harders@tu-bs.de)
+ - Adapt Makefile to TeXLive.
+
+2003/11/09 v1.11 Harald Harders (h.harders@tu-bs.de)
+ - Avoid use of \fileversion etc.
+
+2003/10/12 v1.10 Harald Harders (h.harders@tu-bs.de)
+ - 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.
+
+2003/10/07 v1.00 Harald Harders (h.harders@tu-bs.de)
+ - 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).
+
+2003/09/28 v0.32 Harald Harders (h.harders@tu-bs.de)
+ - 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).
+
+2003/09/16 v0.31 Harald Harders (h.harders@tu-bs.de)
+ - 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.
+
+2003/05/19 v0.30 Harald Harders (h.harders@tu-bs.de)
+ - Allow to round numbers, automatically.
+ - Optionally replace zero by text, e.g. ``---''.
+
+2003/02/27 v0.22 Harald Harders (h.harders@tu-bs.de)
+ - Bugfix with invalid spacing after the number.
+
+2003/02/25 v0.21 Harald Harders (h.harders@tu-bs.de)
+ - Changed README.
+
+2003/02/24 v0.20 Harald Harders (h.harders@tu-bs.de)
+ - Added support for \pm sign,
+ - Fixed bug which made units fragile.
+
+2003/01/08 v0.10 Harald Harders (h.harders@tu-bs.de)
+ - 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.
+
+2002/09/18 v0.06 Harald Harders (h.harders@tu-bs.de)
+ - Added automatic adding of zero before or after decimal sign.
+
+2001/03/12 v0.05 Harald Harders (h.harders@tu-bs.de)
+ - Added basic support for aligned tabular entries.
+
+2001/03/06 v0.04 Harald Harders (h.harders@tu-bs.de)
+ - Added support for pure 10^{123} format using the command
+ \numprint{e123}.
+
+2001/02/10 v0.03 Harald Harders (h.harders@tu-bs.de)
+ - Fixed bug with units.
+
+2000/08/30 v0.02 Harald Harders (h.harders@tu-bs.de)
+ - Added optional argument for units.
+
+2000/08/30 v0.01 Harald Harders (h.harders@tu-bs.de)
+ - Changed to dtx format.
diff --git a/Master/texmf-dist/doc/latex/numprint/README b/Master/texmf-dist/doc/latex/numprint/README
new file mode 100644
index 00000000000..5ba51ce8c96
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/numprint/README
@@ -0,0 +1,77 @@
+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 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
+
+
+2005/07/11
+Harald Harders
+h.harders@tu-bs.de
diff --git a/Master/texmf-dist/doc/latex/numprint/getversion.tex b/Master/texmf-dist/doc/latex/numprint/getversion.tex
new file mode 100644
index 00000000000..7bab6b248dd
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/numprint/getversion.tex
@@ -0,0 +1,10 @@
+\documentclass[english]{ltxdoc}
+\nofiles
+\usepackage{numprint}
+\GetFileInfo{numprint.sty}
+\edef\nprtversion{\fileversion}
+\usepackage{nbaseprt}
+\GetFileInfo{nbaseprt.sty}
+\typeout{VERSION \nprtversion-\fileversion}
+\begin{document}
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/numprint/nbaseprt.pdf b/Master/texmf-dist/doc/latex/numprint/nbaseprt.pdf
new file mode 100644
index 00000000000..5d6a0ff0172
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/numprint/nbaseprt.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/numprint/nbaseprt.xml b/Master/texmf-dist/doc/latex/numprint/nbaseprt.xml
new file mode 100644
index 00000000000..afdb5430bf7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/numprint/nbaseprt.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<!DOCTYPE entry SYSTEM "../catalogue.dtd">
+<entry id="nbaseprt"
+ datestamp="2004/08/08"
+ modifier="h.harders@tu-bs.de">
+ <about>
+ <name>nbaseprt</name>
+ <caption>Print numbers in different number bases with separators.</caption>
+ <author>
+ <name>Harald Harders</name>
+ <email>h.harders@tu-bs.de</email>
+ </author>
+ <license type="lppl"/>
+ <version>
+ <number>0.10</number>
+ </version>
+ </about>
+ <description>
+ <abstract>
+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.
+ </abstract>
+ </description>
+ <distribution>
+ <texlive>latex3</texlive>
+ <ctan>macros/latex/contrib/nbaseprt</ctan>
+ </distribution>
+</entry>
diff --git a/Master/texmf-dist/doc/latex/numprint/nbaseprttest.pdf b/Master/texmf-dist/doc/latex/numprint/nbaseprttest.pdf
new file mode 100644
index 00000000000..4f03e5cbef6
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/numprint/nbaseprttest.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/numprint/nbaseprttest.tex b/Master/texmf-dist/doc/latex/numprint/nbaseprttest.tex
new file mode 100644
index 00000000000..849720b3a01
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/numprint/nbaseprttest.tex
@@ -0,0 +1,61 @@
+\documentclass[english]{article}
+\IfFileExists{eco.sty}{%
+ \usepackage{eco}
+}{%
+ \typeout{Package file eco.sty not found
+ (The example will be less clear than possible)}
+}
+\usepackage{babel}
+\usepackage[autolanguage]{nbaseprt}
+\begin{document}
+\nbaseprint{0x123456f}
+
+\nbaseprint{"3453}
+
+\nbaseprint{'3453}
+
+\nbaseprint{3453h}
+
+\nbaseprint{3453o}
+
+\nbaseprint{3453H}
+
+\nbaseprint{12345678}
+
+\nbaseprint{123456}
+
+\nplpadding{5}
+\nbaseprint{0d3453}
+
+\nbaseprint{0x1}
+
+\nbaseprint{0x12}
+
+\nbaseprint{0x123}
+
+\nbaseposttext
+\nbaseprint{0x1234}
+
+\nbaseprint{0x12345}
+
+\nbaseprint{0x123456}
+
+%\nbaseprint{\thepage}
+
+%$\nbaseprint{\thepage}$
+
+``\nbaseprint{0x123456}''
+
+``\nbaseprint{0x+123456}''
+
+``\nbaseprint{0x-123456}''
+
+``\nbaseprint{0x+-123456}''
+
+``\nbaseprint{0x\pm 123456}''
+
+``\nbaseprint{-0x123456}''
+
+``\nbaseprint{-0b123456}''
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/numprint/numprint.pdf b/Master/texmf-dist/doc/latex/numprint/numprint.pdf
new file mode 100644
index 00000000000..0ea94c53b65
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/numprint/numprint.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/numprint/numprint.xml b/Master/texmf-dist/doc/latex/numprint/numprint.xml
new file mode 100644
index 00000000000..0df7abbb244
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/numprint/numprint.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<!DOCTYPE entry SYSTEM "../catalogue.dtd">
+<entry id="numprint"
+ datestamp="2005/07/11"
+ modifier="h.harders@tu-bs.de">
+ <about>
+ <name>numprint</name>
+ <caption>Print numbers with separators and exponent if necessary.</caption>
+ <author>
+ <name>Harald Harders</name>
+ <email>h.harders@tu-bs.de</email>
+ </author>
+ <license type="lppl"/>
+ <version>
+ <number>1.35</number>
+ </version>
+ </about>
+ <description>
+ <abstract>
+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.
+ </abstract>
+ </description>
+ <distribution>
+ <texlive>latex3</texlive>
+ <ctan>macros/latex/contrib/numprint</ctan>
+ </distribution>
+</entry>
diff --git a/Master/texmf-dist/doc/latex/numprint/numprinttest.pdf b/Master/texmf-dist/doc/latex/numprint/numprinttest.pdf
new file mode 100644
index 00000000000..cb58534aae1
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/numprint/numprinttest.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/numprint/numprinttest.tex b/Master/texmf-dist/doc/latex/numprint/numprinttest.tex
new file mode 100644
index 00000000000..581b63b5420
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/numprint/numprinttest.tex
@@ -0,0 +1,458 @@
+\listfiles
+\documentclass[portuges,ngerman,english,a4paper,fleqn,11pt]{article}
+\usepackage[T1]{fontenc}
+\usepackage[warning,debug,nosepfour,autolanguage]{numprint}
+\usepackage{array}
+\usepackage{babel}
+\usepackage{tabularx}
+\usepackage{longtable}
+
+% Switch off spacing between number and percent sign in English
+\makeatletter
+\g@addto@macro\npstyleenglish{%
+ \nppercentseparator{}%
+}%
+\makeatother
+
+\begin{document}
+\sffamily
+To be able to see the difference between text and math mode I switch
+to a sans serif font. The math mode stays with serifs.
+
+text mode:
+
+\numprint{1234} abc
+
+\numprint{1234.1234} abc
+
+\numprint{1234.12345} abc
+
+\numprint{12345.12345}
+
+\numprint{1234567890}
+
+\numprint[mm]{1234567890}
+
+\numprint[MPa\sqrt{m}]{12345.12345}
+
+\numprint{1234567890,1234567890}, \numprint{1234567890.1234567890}
+
+\numprint{+123456}, \numprint{+1234567}, \numprint{+12345678}
+
+\numprint{-123456}, \numprint{-1234567}, \numprint{-12345678}
+
+\numprint{\pm 123456}, \numprint{\pm 1234567}, \numprint{\pm 12345678}
+
+\numprint{12345678.12345678e1234.1234}
+
+\numprint{12345678.12345678E+1234.1234}
+
+\numprint{12345678.12345678E1234}
+
+\numprint{E1234}
+
+\numprint{+E1234}
+
+\numprint{-E1234}
+
+\numprint{+-E1234}
+
+\numprint{\pm E1234}
+
+\bigskip
+math mode:
+
+$\numprint{1234.1234}$
+
+$\numprint{12345.12345}$
+
+$\numprint[\%]{1234567890}$
+
+$\numprint[mm]{1234567890}$
+
+$\numprint[MPa\sqrt{m}]{12345.12345}$
+
+$\numprint{1234567890,1234567890}$, $\numprint{1234567890.1234567890}$
+
+$\numprint{+123456}$, $\numprint{+1234567}$, $\numprint{+12345678}$
+
+$\numprint{-123456}$, $\numprint{-1234567}$, $\numprint{-12345678}$
+
+$\numprint{\pm 123456}$, $\numprint{\pm 1234567}$, $\numprint{\pm 12345678}$
+
+$\numprint{12345678.12345678e1234.1234}$
+
+$\numprint{12345678.12345678E+1234.1234}$
+
+$\numprint{12345678.12345678E1234}$
+
+$\numprint{E1234}$
+
+$\numprint{+E1234}$
+
+$\numprint{-E1234}$
+
+$\numprint{+-E1234}$
+
+$\numprint{\pm E1234}$
+
+$\numprint{1.}$
+
+$\numprint{0.1}$
+
+$\numprint{.1}$
+
+$\numprint{1.E5}$
+
+Round to 2 digits resp. 1 digit in exponents:
+
+{\nprounddigits{2}\nproundexpdigits{1}%
+$\numprint{12345678.12345678e1234.1234}$
+
+$\numprint{12345678.12345678E+1234.1234}$
+
+$\numprint{12345678.12345678E1234}$}
+
+Round to 0 digits:
+
+{\nprounddigits{0}%
+$\numprint{12345678.12}$
+
+$\numprint{12345678.1}$
+
+$\numprint{12345678.}$
+
+$\numprint{12345678}$}
+
+Replace zero by ---:
+
+{\nprounddigits{2}\npreplacenull{\mbox{---}}%
+$\numprint{12345678.00}$
+
+$\numprint{12345678.12}$
+
+$\numprint{12345678}$}
+
+Don't add missing zero:
+
+{\npnoaddmissingzero
+$\numprint{1.}$
+
+$\numprint{.1}$
+
+$\numprint{1.E5}$}
+
+English:
+
+$\numprint{12345678.12345678E1234}$
+
+{\selectlanguage{ngerman}German:
+
+$\numprint{12345678.12345678E1234}$}
+
+{\selectlanguage{portuges}Portuguese:
+
+$\numprint{12345678.12345678E1234}$}
+
+English:
+
+$\numprint{12345678.12345678E1234}$
+
+German (foreignlanguage):
+\foreignlanguage{ngerman}{$\numprint{12345678.12345678E1234}$}
+
+\bigskip
+Padding:\par
+$\numprint{12345.1234E1234}$\par
+\begingroup
+\nplpadding{7}
+$\numprint{12345.1234E1234}$\par
+\endgroup
+$\numprint{12345.1234E1234}$\par
+\nplpadding{7}
+$\numprint{12345.1234E1234}$\par
+\nplpadding[x]{7}
+$\numprint{12345.1234E1234}$\par
+\npnolpadding
+$\numprint{12345.1234E1234}$
+
+\bigskip
+tabulars:
+
+\tabcolsep0mm
+\begin{tabular}{|n{6}{5}|}
+ 1.1e1 \\
+ 12.12e12 \\
+ 123.123e123 \\
+ 1234.1234e1234 \\
+ 12345.12345e1234.1 \\
+ 123456.12345
+\end{tabular}
+
+\begin{tabular}{|n{6}{5}|}
+ 1.1 \\
+ 12.12 \\
+ 123.123
+\end{tabular}
+
+\begin{tabular}{|n[4]{6}{5}|}
+ 1.1e1 \\
+ 12.12e12 \\
+ 123.123e123 \\
+ 1234.1234e1234 \\
+ 12345.12345e1234.1 \\
+ 12345.12345e12345.1 \\
+ 123456.12345
+\end{tabular}
+
+\begin{tabular}{|n[4][1]{6}{5}|}
+ 1.1e1 \\
+ 12.12e12 \\
+ 123.123e123 \\
+ 1234.1234e1234 \\
+ 12345.12345e1234.1 \\
+ 12345.12345e12345.1 \\
+ 123456.12345
+\end{tabular}
+
+\begin{tabular}{|n{4}{4}|}
+ 1.1 \\
+ 12.12 \\
+ 123.123 \\
+ 1234.1234
+\end{tabular}
+
+\npfourdigitnosep
+\begin{tabular}{|n[4]{5}{4}|}
+ 1.1e1 \\
+ 12.12e12 \\
+ 123.123e123 \\
+ 1234.1234e1234 \\
+ 12345.12345e1234.1 \\
+ 12345.12345e12345.1 \\
+ 123456.12345
+\end{tabular}
+
+\begin{tabular}{|n{4}{4}|}
+ 1.1 \\
+ 12.12 \\
+ 123.123 \\
+ 1234.1234
+\end{tabular}
+
+\begin{tabular}{|n{4}{5}|}
+ 1.1 \\
+ 12.12 \\
+ 123.123 \\
+ 1234.1234 \\
+ 1234.12345
+\end{tabular}
+
+\def\gammel{1234}%
+\nprounddigits{3}%
+\begin{tabular}{@{}>{\boldmath}n[3]{6}{3}} %$
+ +12343,0e-3\\
+ \gammel
+\end{tabular}
+
+\begin{tabular}{@{}n[3]{6}{3}}
+ +12343,0e-3\\
+ \gammel
+\end{tabular}
+
+\begin{tabular}{@{}>{\bfseries}N[3]{6}{3}} %$
+ +12343,0e-3\\
+ \gammel
+\end{tabular}
+
+\begin{tabular}{@{}|N[3]{6}{3}|}
+ +12343.0e-3 \\
+ 12343.0e-3 \\
+ \gammel
+\end{tabular}
+
+
+
+\numprint{1234} abc
+
+\numprint{1234.1234} abc
+
+\numprint{1234.12345} abc
+
+\numprint{12345.1234} abc
+
+\numprint{12345.12345}
+
+||\numprint{e3}||
+
+||$10^{3}$||
+
+||1\,234||
+
+||\numprint{1234}||
+
+\numprint{1000.00}%
+
+\numprint{-10000.00}%
+
+\numprint{-1000.00}%
+
+\numprint{-100.00}%
+
+\nprounddigits{2}%
+\numprint{-99.999}%
+
+\numprint{-999.999}%
+
+\numprint{-9999.999}%
+
+\numprint{999.999}%
+
+\numprint{9\,99.999}%
+
+\numprint{999.999}%
+
+\numprint{999.999}%
+
+%\numprint{99a99.999}%
+
+%\def\harry\ignorespaces#1\unskip\endharry{\numprint{#1}}
+
+%\begin{tabular}{@{|}>{\harry}r<{\endharry}@{}c@{|}}
+% 1.1&\\
+% 12.12&\\
+% 123.123 &\\
+% 1234.1234&\\
+% 1234.12345&
+%\end{tabular}
+
+\npnoround
+\npnodigits
+``\numprint{e1234}''
+
+``\numprint{e1234.0}''
+
+\npexponentdigits[1]{4}%
+``\numprint{e1234}''
+
+``\numprint{e1234.0}''
+
+\npexponentdigits[0]{4}%
+``\numprint{e1234}''
+
+``\numprint{e1234.0}''
+
+\def\asdf{1234}
+\def\fdsa{\asdf.4567}
+
+\numprint\fdsa
+
+\numprint{\gammel}
+
+\numprint{fd}
+
+\npnodigits
+\npnoexponentdigits
+
+\begin{tabular*}{0.6\linewidth}{|n{4}{5}|}
+ {\boldmath} 1.1 \\
+ 12.12 \\
+ 123.123 \\
+ 1234.1234 \\
+ 1234.12345
+\end{tabular*}
+
+\noindent
+\typeout{tabularx}
+\begin{tabularx}{\linewidth}{|X|n{4}{5}|}
+filled column& {\boldmath} 1.1 \\
+& 12.12 \\
+& 123.123 \\
+& 1234.1234 \\
+& 1234.12345
+\end{tabularx}
+
+\typeout{longtable}
+
+\begin{longtable}[l]{|n{4}{5}|N{4}{5}|}
+ {Mathe}& {Text}\\
+ \endhead
+ {\boldmath} 1.1 { asdf}& {\bfseries} 1.1 { asdf} \\
+ 12.12& 12.12 \\
+ 123.123& 123.123 \\
+ 1234.1234& 1234.1234 \\
+ 1234.12345{ asdf}& 1234.12345{ asdf}
+\end{longtable}
+
+\begin{equation}
+ \left(\begin{array}{n{4}{5}}
+ 1.1 \\
+ 12.12 \\
+ 123.123 \\
+ 1234.1234 \\
+ 1234.12345
+ \end{array}\right)
+ =
+ \left(\begin{array}{>{{moin}}N{4}{5}}
+ 1.1 \\
+ 12.12 \\*
+ 123.123 \\
+ 1234.1234 \\
+ 1234.12345
+ \end{array}\right)
+\end{equation}
+
+\begin{tabular}{n{4}{5}}
+ \numprint{1234,12345} \\
+ \numprint{1234} \\
+ {\makebox[2cm][l]{987}} {\numprint{123,3e5}} {654} \\
+ {987} \numprint{123,3e5} {654} \\
+ {987} 123,3e5 {654} \\
+ 987 \numprint{123,3e5} {654} \\
+ 987 {\numprint{123,3e5}} {654} \\
+\end{tabular}
+
+Test for empty cells:
+
+\begin{tabular}{|n{4}{4}|n{4}{4}|}
+ 12.21 & \\
+ & 34.43 \\
+ 56.65 &
+\end{tabular}
+
+\clearpage
+\setcounter{page}{13413}%
+
+$\cntprint{page}$
+
+\nprounddigits{4}
+
+$\lenprint{40\textwidth}$
+
+$\lenprint[pt]{40\textwidth}$
+
+$\lenprint[mm]{40\textwidth}$
+
+$\lenprint[cm]{40\textwidth}$
+
+$\lenprint[bp]{40\textwidth}$
+
+$\lenprint[in]{40\textwidth}$
+
+$\lenprint[ft]{40\textwidth}$
+
+\npdefunit{ft}{foot}{*}%
+$\lenprint[ft]{40\textwidth}$
+
+$\lenprint[m]{40\textwidth}$
+
+$\lenprint[km]{40\textwidth}$
+
+\begin{tabular}{|n{4}{4}|}
+ \\
+ 12.12 \\
+ 123.123 \\
+ 1234.1234
+\end{tabular}
+
+\end{document}