summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/numprint
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-01-09 01:33:27 +0000
committerKarl Berry <karl@freefriends.org>2007-01-09 01:33:27 +0000
commit0277c756d795fc55be462f09b8e64487686c4781 (patch)
treedf970f812c8446e55eb040a2a05ddf4f09874553 /Master/texmf-dist/tex/latex/numprint
parent5ee4a3935c772b08a58294776725ee8562266085 (diff)
numprint 1.37 (8jan07)
git-svn-id: svn://tug.org/texlive/trunk@3258 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/numprint')
-rw-r--r--Master/texmf-dist/tex/latex/numprint/nbaseprt.sty2
-rw-r--r--Master/texmf-dist/tex/latex/numprint/numprint.sty78
-rw-r--r--Master/texmf-dist/tex/latex/numprint/numprint032.sty2
3 files changed, 71 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/numprint/nbaseprt.sty b/Master/texmf-dist/tex/latex/numprint/nbaseprt.sty
index fa6d570a341..69477f2dcdb 100644
--- a/Master/texmf-dist/tex/latex/numprint/nbaseprt.sty
+++ b/Master/texmf-dist/tex/latex/numprint/nbaseprt.sty
@@ -8,7 +8,7 @@
%%
%% numprint package
%%
-%% Copyright 2000--2005 Harald Harders
+%% Copyright 2000--2005, 2007 Harald Harders
%%
%% This program can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN
diff --git a/Master/texmf-dist/tex/latex/numprint/numprint.sty b/Master/texmf-dist/tex/latex/numprint/numprint.sty
index 45aee534a95..e80c0a74b50 100644
--- a/Master/texmf-dist/tex/latex/numprint/numprint.sty
+++ b/Master/texmf-dist/tex/latex/numprint/numprint.sty
@@ -8,7 +8,7 @@
%%
%% numprint package
%%
-%% Copyright 2000--2005 Harald Harders
+%% Copyright 2000--2005, 2007 Harald Harders
%%
%% This program can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN
@@ -19,7 +19,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{numprint}
- [2005/07/11 v1.35 Print numbers (HH)]
+ [2007/01/08 v1.37 Print numbers (HH)]
\RequirePackage{array}
\newif\ifnprt@numsepfour
\newif\ifnprt@errormessage
@@ -66,6 +66,7 @@
\newcommand*\npproductsign[1]{\def\nprt@prod{\ensuremath{{}#1{}}}}
\newcommand*\npunitseparator[1]{\def\nprt@unitsep{{#1}}}
\newcommand*\npdegreeseparator[1]{\def\nprt@degreesep{{#1}}}
+\newcommand*\npcelsiusseparator[1]{\def\nprt@celsiussep{{#1}}}
\newcommand*\nppercentseparator[1]{\def\nprt@percentsep{{#1}}}
\def\nprt@fillnull#1#2{%
\@tempcnta=-1
@@ -1114,11 +1115,41 @@
\ifx\nprt@oarg\nprt@tmpunit
\ensuremath{\nprt@degreesep}%
\else
- \def\nprt@tmpunit{\%}%
+ \def\nprt@tmpunit{\tccelsius}%
\ifx\nprt@oarg\nprt@tmpunit
- \ensuremath{\nprt@percentsep}%
+ \ensuremath{\nprt@celsiussep}%
\else
- \ensuremath{\nprt@unitsep}%
+ \def\nprt@tmpunit{\celsius}%
+ \ifx\nprt@oarg\nprt@tmpunit
+ \ensuremath{\nprt@celsiussep}%
+ \else
+ \def\nprt@tmpunit{\textcelsius}%
+ \ifx\nprt@oarg\nprt@tmpunit
+ \ensuremath{\nprt@celsiussep}%
+ \else
+ \def\nprt@tmpunit{\%}%
+ \ifx\nprt@oarg\nprt@tmpunit
+ \ensuremath{\nprt@percentsep}%
+ \else
+ \def\nprt@tmpunit{\tcperthousand}%
+ \ifx\nprt@oarg\nprt@tmpunit
+ \ensuremath{\nprt@percentsep}%
+ \else
+ \def\nprt@tmpunit{\perthousand}%
+ \ifx\nprt@oarg\nprt@tmpunit
+ \ensuremath{\nprt@percentsep}%
+ \else
+ \def\nprt@tmpunit{\textperthousand}%
+ \ifx\nprt@oarg\nprt@tmpunit
+ \ensuremath{\nprt@percentsep}%
+ \else
+ \ensuremath{\nprt@unitsep}%
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
\fi
\fi
\fi
@@ -1196,6 +1227,7 @@
\npproductsign{\cdot}%
\npunitseparator{\,}%
\npdegreeseparator{}%
+ \npcelsiusseparator{\nprt@unitsep}%
\nppercentseparator{\nprt@unitsep}%
}
\npstyledefault
@@ -1205,6 +1237,7 @@
\npproductsign{\cdot}%
\npunitseparator{\,}%
\npdegreeseparator{}%
+ \npcelsiusseparator{\nprt@unitsep}%
\nppercentseparator{\nprt@unitsep}%
}
\newcommand*\npstyleenglish{%
@@ -1213,14 +1246,34 @@
\npproductsign{\times}%
\npunitseparator{\,}%
\npdegreeseparator{}%
+ \npcelsiusseparator{\nprt@unitsep}%
\nppercentseparator{\nprt@unitsep}%
}
\newcommand*\npstyleportuguese{%
+ \npthousandsep{.}%
+ \npdecimalsign{,}%
+ \npproductsign{\cdot}%
+ \npunitseparator{\,}%
+ \npdegreeseparator{}%
+ \npcelsiusseparator{\nprt@unitsep}%
+ \nppercentseparator{\nprt@unitsep}%
+}
+\newcommand*\npstyledutch{%
\npthousandsep{\,}%
\npdecimalsign{,}%
\npproductsign{\cdot}%
\npunitseparator{\,}%
\npdegreeseparator{}%
+ \npcelsiusseparator{\nprt@unitsep}%
+ \nppercentseparator{}%
+}
+\newcommand*\npstylefrench{%
+ \npthousandsep{~}%
+ \npdecimalsign{,}%
+ \npproductsign{\cdot}%
+ \npunitseparator{\,}%
+ \npdegreeseparator{}%
+ \npcelsiusseparator{\nprt@unitsep}%
\nppercentseparator{\nprt@unitsep}%
}
\AtBeginDocument{%
@@ -1228,18 +1281,25 @@
\@ifpackageloaded{babel}{%
\npaddtolanguage{UKenglish}{english}%
\npaddtolanguage{USenglish}{english}%
+ \npaddtolanguage{afrikaans}{dutch}%
\npaddtolanguage{american}{english}%
\npaddtolanguage{austrian}{german}%
\npaddtolanguage{british}{english}%
\npaddtolanguage{canadian}{english}%
+ \npaddtolanguage{dutch}{dutch}%
\npaddtolanguage{english}{english}%
\npaddtolanguage{german}{german}%
\npaddtolanguage{naustrian}{german}%
\npaddtolanguage{ngerman}{german}%
- \npaddtolanguage{brazil}{portuguese}
- \npaddtolanguage{brazilian}{portuguese}
- \npaddtolanguage{portuges}{portuguese}
- \npaddtolanguage{portuguese}{portuguese}
+ \npaddtolanguage{brazil}{portuguese}%
+ \npaddtolanguage{brazilian}{portuguese}%
+ \npaddtolanguage{portuges}{portuguese}%
+ \npaddtolanguage{portuguese}{portuguese}%
+ \npaddtolanguage{francais}{french}%
+ \npaddtolanguage{canadien}{french}%
+ \npaddtolanguage{acadian}{french}%
+ \npaddtolanguage{french}{french}%
+ \npaddtolanguage{frenchb}{french}%
\expandafter\selectlanguage\expandafter{\languagename}%
}{%
\npstyleenglish
diff --git a/Master/texmf-dist/tex/latex/numprint/numprint032.sty b/Master/texmf-dist/tex/latex/numprint/numprint032.sty
index 77f1aa9495d..64965191243 100644
--- a/Master/texmf-dist/tex/latex/numprint/numprint032.sty
+++ b/Master/texmf-dist/tex/latex/numprint/numprint032.sty
@@ -8,7 +8,7 @@
%%
%% numprint package
%%
-%% Copyright 2000--2005 Harald Harders
+%% Copyright 2000--2005, 2007 Harald Harders
%%
%% This program can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN