summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/siunitx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-01-08 23:49:02 +0000
committerKarl Berry <karl@freefriends.org>2012-01-08 23:49:02 +0000
commit9eec072cfc5363883f184a6e11318fb15250022c (patch)
tree292b740072dbb6cd480a7d2edcc366f92a95d96d /Master/texmf-dist/tex/latex/siunitx
parent94249602eec639469e2a964a821eaf4e04ccf322 (diff)
siunitx
git-svn-id: svn://tug.org/texlive/trunk@25053 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.cfg4
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/config/siunitx-binary.cfg4
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/config/siunitx-version-1.cfg4
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/siunitx.sty74
4 files changed, 45 insertions, 41 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 ddfadeafad6..e8d2d785c68 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} {2011/12/24} {2.4f}
+\ProvidesExplFile {siunitx-abbreviations.cfg} {2012/01/06} {2.4g}
{siunitx: Abbreviated units}
\DeclareSIUnit \A { \ampere }
\DeclareSIUnit \pA { \pico \ampere }
@@ -102,7 +102,7 @@
\DeclareSIUnit \ns { \nano \second }
\DeclareSIUnit \us { \micro \second }
\DeclareSIUnit \ms { \milli \second }
-%% Copyright (C) 2008-2011 by
+%% Copyright (C) 2008-2012 by
%% Joseph Wright <joseph.wright@morningstar2.co.uk>
%%
%% It may be distributed and/or modified under the conditions of
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 caaf3c6d2dc..15185f9ac28 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} {2011/12/24} {2.4f}
+\ProvidesExplFile {siunitx-binary.cfg} {2012/01/06} {2.4g}
{siunitx: Binary units}
\DeclareBinaryPrefix \kibi { Ki } { 10 }
\DeclareBinaryPrefix \mebi { Mi } { 20 }
@@ -25,7 +25,7 @@
\DeclareBinaryPrefix \yobi { Yi } { 80 }
\DeclareSIUnit \bit { bit }
\DeclareSIUnit \byte { B }
-%% Copyright (C) 2008-2011 by
+%% Copyright (C) 2008-2012 by
%% Joseph Wright <joseph.wright@morningstar2.co.uk>
%%
%% It may be distributed and/or modified under the conditions of
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 20423fd68f4..c20838fba62 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} {2011/12/24} {2.4f}
+\ProvidesExplFile {siunitx-version-1.cfg} {2012/01/06} {2.4g}
{siunitx: Version 1 settings}
\keys_define:nn { siunitx } {
addsign .choice: ,
@@ -730,7 +730,7 @@
\DeclareSIUnit \yb { \yocto \barn }
\NewDocumentCommand \requiresiconfigs { m }
{ \keys_set:nn { siunitx } { version-1-compatibility } }
-%% Copyright (C) 2008-2011 by
+%% Copyright (C) 2008-2012 by
%% Joseph Wright <joseph.wright@morningstar2.co.uk>
%%
%% It may be distributed and/or modified under the conditions of
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
index 7b2fdf3c75c..e0f4fc8601a 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} {2011/12/24} {2.4f}
+\ProvidesExplPackage {siunitx} {2012/01/06} {2.4g}
{A comprehensive (SI) units package}
\@ifpackagelater { expl3 } { 2011/09/05 }
{ }
@@ -985,42 +985,46 @@
}
}
\cs_generate_variant:Nn \siunitx_number_in_parse:n { V }
-\cs_new_protected:Npn \siunitx_number_in_parse_aux:n #1 {
- \tl_set_rescan:Nnx \l_siunitx_number_arg_tl
- {
+\cs_new_protected:Npn \siunitx_number_in_parse_aux:n #1
+ {
+ \group_begin:
\siunitx_number_in_protect:
- \char_set_catcode_ignore:N \~
- \char_set_catcode_other:N \,
- \char_set_catcode_other:N \.
\cs_set_eq:NN \, \prg_do_nothing:
- }
- {#1}
- \siunitx_number_in_sign_replace:N \l_siunitx_number_arg_tl
- \siunitx_number_in_parse_relation:N \l_siunitx_number_arg_tl
- \tl_map_function:NN \l_siunitx_number_arg_tl
- \siunitx_number_in_parse_loop:N
- \tl_if_empty:NF \l_siunitx_number_parsed_tl
- {
- \bool_if:NTF \l_siunitx_number_in_uncert_bool
- { \siunitx_error:nx { invalid-number } {#1} }
+ \tl_set_rescan:Nnx \l_siunitx_number_arg_tl
{
- \prop_put:NVn \l_siunitx_number_in_prop
- \l_siunitx_number_part_tl { true }
- \bool_if:NTF \l_siunitx_number_in_decimal_bool
- {
- \prop_put:NVV \l_siunitx_number_in_prop
- \l_siunitx_number_part_decimal_tl
- \l_siunitx_number_parsed_tl
- }
- {
- \prop_put:NVV \l_siunitx_number_in_prop
- \l_siunitx_number_part_integer_tl
- \l_siunitx_number_parsed_tl
- }
- }
- }
- \siunitx_number_in_check:n {#1}
-}
+ \char_set_catcode_ignore:N \~
+ \char_set_catcode_other:N \,
+ \char_set_catcode_other:N \.
+ }
+ {#1}
+ \exp_args:NNNV \group_end:
+ \tl_set:Nn \l_siunitx_number_arg_tl \l_siunitx_number_arg_tl
+ \siunitx_number_in_sign_replace:N \l_siunitx_number_arg_tl
+ \siunitx_number_in_parse_relation:N \l_siunitx_number_arg_tl
+ \tl_map_function:NN \l_siunitx_number_arg_tl
+ \siunitx_number_in_parse_loop:N
+ \tl_if_empty:NF \l_siunitx_number_parsed_tl
+ {
+ \bool_if:NTF \l_siunitx_number_in_uncert_bool
+ { \siunitx_error:nx { invalid-number } {#1} }
+ {
+ \prop_put:NVn \l_siunitx_number_in_prop
+ \l_siunitx_number_part_tl { true }
+ \bool_if:NTF \l_siunitx_number_in_decimal_bool
+ {
+ \prop_put:NVV \l_siunitx_number_in_prop
+ \l_siunitx_number_part_decimal_tl
+ \l_siunitx_number_parsed_tl
+ }
+ {
+ \prop_put:NVV \l_siunitx_number_in_prop
+ \l_siunitx_number_part_integer_tl
+ \l_siunitx_number_parsed_tl
+ }
+ }
+ }
+ \siunitx_number_in_check:n {#1}
+ }
\cs_new_protected:Npn \siunitx_number_in_init: {
\cs_set_eq:NN \siunitx_number_in_parse_loop:N
\siunitx_number_in_parse_mantissa:N
@@ -7399,7 +7403,7 @@
{ \siunitx_unit_create_empty_functions: }
}
\ProcessKeysOptions { siunitx }
-%% Copyright (C) 2008-2011 by
+%% Copyright (C) 2008-2012 by
%% Joseph Wright <joseph.wright@morningstar2.co.uk>
%%
%% It may be distributed and/or modified under the conditions of