summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/siunitx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-04-20 01:02:07 +0000
committerKarl Berry <karl@freefriends.org>2011-04-20 01:02:07 +0000
commit0ea4797d5f27cf7d8aba1d8af5c9a928cbe6a66d (patch)
tree0db3ff3b01bb077135beb40ac200cdc631cc5a69 /Master/texmf-dist/tex/latex/siunitx
parent7fdcf9031f72f16e589f323b53e9b8e70460ccd3 (diff)
siunitx 2.2b (19apr11)
git-svn-id: svn://tug.org/texlive/trunk@22129 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-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.sty23
3 files changed, 12 insertions, 15 deletions
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 347d2ab965c..8a76dad1e0e 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/04/16} {2.2a}
+\ProvidesExplFile {siunitx-binary.cfg} {2011/04/19} {2.2b}
{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 6d092a7aea7..4c2612fa969 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/04/16} {2.2a}
+\ProvidesExplFile {siunitx-version-1.cfg} {2011/04/19} {2.2b}
{siunitx: Version 1 settings}
\keys_set:nn { siunitx }
{ load-configurations = { abbreviations , binary } }
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
index 9b272ce7654..b28b6f3a438 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/04/16} {2.2a}
+\ProvidesExplPackage {siunitx} {2011/04/19} {2.2b}
{A comprehensive (SI) units package}
\cs_if_exist:NTF \msg_set:nnnn
{
@@ -763,7 +763,7 @@
{ \cs_new_eq:NN \siunitx_textcolor:n \textcolor }
{
\cs_set_eq:NN \siunitx_print_color: \scan_stop:
- \cs_new_eq:NN \siunitx_textcolor:n \use:n
+ \cs_new_eq:NN \siunitx_textcolor:n \use_none:n
}
}
\group_begin:
@@ -2976,7 +2976,11 @@
\tl_put_left:NV \l_siunitx_tmpa_tl \l_siunitx_exponent_base_tl
}
{
- \tl_put_left:NV \l_siunitx_tmpa_tl \l_siunitx_output_exponent_tl
+ \tl_set:Nx \l_siunitx_tmpa_tl
+ {
+ \exp_not:V \l_siunitx_output_exponent_tl
+ { \exp_not:V \l_siunitx_tmpa_tl }
+ }
}
\prop_put:NnV \l_siunitx_number_out_prop { exponent-result }
\l_siunitx_tmpa_tl
@@ -4013,17 +4017,10 @@
\cs_set:cpn { siunitx_ \token_to_str:N #1 _function:w }
{ \siunitx_unit_parse_qualifier:n {#2} }
}
-\cs_new_protected:Npn \siunitx_declare_special:Nn #1#2 {
- \tl_put_right:Nn \l_siunitx_declare_list_tl {#1}
- \cs_set:cpn { siunitx_ \token_to_str:N #1 _literal:w } ##1
- { #2 {##1} }
- \cs_set:cpn { siunitx_ \token_to_str:N #1 _function:w }
- { \siunitx_unit_parse_special:n {#2} }
-}
\cs_new_protected:Npn \siunitx_declare_unit:Nnn #1#2#3 {
\tl_put_right:Nn \l_siunitx_declare_list_tl {#1}
\cs_set:cpn { siunitx_ \token_to_str:N #1 _literal:w } {#2}
- \cs_set:cpn { siunitx_ \token_to_str:N #1 _function:w }
+ \cs_set_protected:cpn { siunitx_ \token_to_str:N #1 _function:w }
{
\siunitx_unit_if_literal:nTF {#2}
{ \siunitx_unit_parse_unit:Nn #1 {#2} }
@@ -4065,7 +4062,7 @@
#1 {
\siunitx_unit_parse_power_after:n {#1}
}
-\cs_new_protected:cpn { siunitx_ \token_to_str:N \of _literal:w } #1 {
+\cs_new:cpn { siunitx_ \token_to_str:N \of _literal:w } #1 {
\text { ~ } ( #1 )
}
\cs_new_protected:cpn { siunitx_ \token_to_str:N \of _function:w } #1 {
@@ -4081,7 +4078,7 @@
{ \siunitx_unit_parse_special:n { \siunitx_cancel:n } }
}
}
-\cs_new_protected:cpn
+\cs_new:cpn
{ siunitx_ \token_to_str:N \highlight _literal:w } #1
{ \siunitx_textcolor:n {#1} }
\cs_new_protected:cpn