summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/siunitx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-01-20 23:04:33 +0000
committerKarl Berry <karl@freefriends.org>2012-01-20 23:04:33 +0000
commit529294ab32f8cf8144b8125395c0c0d14c4fe78b (patch)
tree25f793a3217e31bda6c2bf5f892c0a8de6c1a063 /Master/texmf-dist/tex/latex/siunitx
parent7b65dfa5cfd0d667cf9e9c4ff0b035e1c112c4a8 (diff)
siunitx (20jan12)
git-svn-id: svn://tug.org/texlive/trunk@25166 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/siunitx')
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg2
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/config/siunitx-binary.cfg2
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/config/siunitx-version-1.cfg2
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/siunitx.sty17
4 files changed, 18 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg
index 53e1c88d4d6..59e15192e21 100644
--- a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg
+++ b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg
@@ -13,7 +13,7 @@
%% See http://www.latex-project.org/lppl.txt
%% ---------------------------------------------------------------
%%
-\ProvidesExplFile {siunitx-abbreviations.cfg} {2012/01/15} {2.4h}
+\ProvidesExplFile {siunitx-abbreviations.cfg} {2012/01/19} {2.4i}
{siunitx: Abbreviated units}
\DeclareSIUnit \A { \ampere }
\DeclareSIUnit \pA { \pico \ampere }
diff --git a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-binary.cfg b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-binary.cfg
index eea6192cbb3..94a1ad42855 100644
--- a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-binary.cfg
+++ b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-binary.cfg
@@ -13,7 +13,7 @@
%% See http://www.latex-project.org/lppl.txt
%% ---------------------------------------------------------------
%%
-\ProvidesExplFile {siunitx-binary.cfg} {2012/01/15} {2.4h}
+\ProvidesExplFile {siunitx-binary.cfg} {2012/01/19} {2.4i}
{siunitx: Binary units}
\DeclareBinaryPrefix \kibi { Ki } { 10 }
\DeclareBinaryPrefix \mebi { Mi } { 20 }
diff --git a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-version-1.cfg b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-version-1.cfg
index 1058d41c1de..72ce7678208 100644
--- a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-version-1.cfg
+++ b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-version-1.cfg
@@ -13,7 +13,7 @@
%% See http://www.latex-project.org/lppl.txt
%% ---------------------------------------------------------------
%%
-\ProvidesExplFile {siunitx-version-1.cfg} {2012/01/15} {2.4h}
+\ProvidesExplFile {siunitx-version-1.cfg} {2012/01/19} {2.4i}
{siunitx: Version 1 settings}
\keys_define:nn { siunitx } {
addsign .choice: ,
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
index 64d373f3f83..4f766135a37 100644
--- a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
+++ b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
@@ -14,7 +14,7 @@
%% ---------------------------------------------------------------
%%
\RequirePackage{expl3}
-\ProvidesExplPackage {siunitx} {2012/01/15} {2.4h}
+\ProvidesExplPackage {siunitx} {2012/01/19} {2.4i}
{A comprehensive (SI) units package}
\@ifpackagelater { expl3 } { 2011/09/05 }
{ }
@@ -2170,7 +2170,7 @@
{
\tl_if_empty:NT \l_siunitx_tmpa_tl
{ \tl_set:Nn \l_siunitx_tmpa_tl { 0 } }
- \int_compare:nNnTF \l_siunitx_tmpa_tl = \c_zero
+ \siunitx_number_process_places_aux_i:TF
{
\prop_put:Nnn \l_siunitx_number_in_prop { #1 -decimal } { }
\int_set:Nn \l_siunitx_round_int
@@ -2185,6 +2185,19 @@
}
}
}
+\cs_new_protected:Npn \siunitx_number_process_places_aux_i:TF
+ {
+ \bool_set_true:N \l_siunitx_tmp_bool
+ \tl_map_inline:Nn \l_siunitx_tmpa_tl
+ {
+ \int_compare:nNnF {##1} = \c_zero
+ {
+ \bool_set_false:N \l_siunitx_tmp_bool
+ \tl_map_break:
+ }
+ }
+ \bool_if:NTF \l_siunitx_tmp_bool
+ }
\cs_new_protected:Npn \siunitx_number_process_places_none:n #1
{
\prop_get:NnNT \l_siunitx_number_in_prop { #1 -decimal } \l_siunitx_tmpa_tl