summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-11-24 01:17:47 +0000
committerKarl Berry <karl@freefriends.org>2010-11-24 01:17:47 +0000
commit2a0f1e86a9ac2e9c7af641ce60e93f8bbf1b2908 (patch)
treedd8961900125920c46c920ac1a711f41608ec6f9 /Master/texmf-dist/tex
parent2cc2d8c0e0cf71870980839e3c308789513787a7 (diff)
siunitx (23nov10)
git-svn-id: svn://tug.org/texlive/trunk@20548 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-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.sty88
3 files changed, 56 insertions, 36 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 fbef2f0d7e2..8e9b3e14588 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} {2010/11/14} {2.1c}
+\ProvidesExplFile {siunitx-binary.cfg} {2010/11/22} {2.1e}
{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 615dcd983c4..5ac390ee4e9 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} {2010/11/14} {2.1c}
+\ProvidesExplFile {siunitx-version-1.cfg} {2010/11/22} {2.1e}
{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 9b53d47ef63..b86be6e81c7 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} {2010/11/14} {2.1c}
+\ProvidesExplPackage {siunitx} {2010/11/22} {2.1e}
{A comprehensive (SI) units package}
\msg_set:nnnn { siunitx } { incompatible-package }
{ Package~'#1'~incompatible. }
@@ -60,8 +60,22 @@
}
\DeclareTextSymbolDefault \c_siunitx_minus_tl { TS1 }
\DeclareTextSymbol \c_siunitx_minus_tl { TS1 } { 61 }
+\AtBeginDocument {
+ \@ifpackageloaded { fontspec }
+ {
+ \tl_set:Nx \c_siunitx_minus_tl { \char 8722 }
+ }
+ { }
+}
\DeclareTextSymbol \c_siunitx_mu_tl { TS1 } { 181 }
\DeclareTextSymbolDefault \c_siunitx_mu_tl { TS1 }
+\AtBeginDocument {
+ \@ifpackageloaded { fontspec }
+ {
+ \tl_set:Nx \c_siunitx_mu_tl { \char 181 }
+ }
+ { }
+}
\tl_new:N \c_siunitx_omega_tl
\tl_set:Nn \c_siunitx_omega_tl { \Omega }
\AtBeginDocument {
@@ -3679,22 +3693,23 @@
{
\ProvideDocumentCommand \exp_not:N #1 { }
{
- \exp_not:N \cs_if_free:NF
- \exp_not:c { l_siunitx_ \token_to_str:N #1 _options_tl }
- {
- \keys_set:nV { siunitx }
- \exp_not:c
- { l_siunitx_ \token_to_str:N #1 _options_tl }
- }
- \bool_if:NT \l_siunitx_create_prespace_bool
- {
- \exp_not:n
- {
- \siunitx_ensuremath:n
- { \l_siunitx_number_unit_separator_tl }
- }
- }
\group_begin:
+ \exp_not:N \cs_if_free:NF
+ \exp_not:c
+ { l_siunitx_ \token_to_str:N #1 _options_tl }
+ {
+ \keys_set:nV { siunitx }
+ \exp_not:c
+ { l_siunitx_ \token_to_str:N #1 _options_tl }
+ }
+ \bool_if:NT \l_siunitx_create_prespace_bool
+ {
+ \exp_not:n
+ {
+ \siunitx_ensuremath:n
+ { \l_siunitx_number_unit_separator_tl }
+ }
+ }
\exp_not:n { \siunitx_unit_output:nn {#1} { } }
\group_end:
\bool_if:NT \l_siunitx_create_xspace_bool
@@ -3711,26 +3726,31 @@
{
\ProvideDocumentCommand \exp_not:N #1 { o }
{
- \exp_not:N \cs_if_free:cF
- \exp_not:c { l_siunitx_ \token_to_str:N #1 _options_tl }
- {
- \keys_set:nV { siunitx }
- \exp_not:c
- { l_siunitx_ \token_to_str:N #1 _options_tl }
- }
- \exp_not:N \IfNoValueTF {####1}
- { \exp_not:n { \siunitx_unit_output:nn {#1} { } } }
- {
- \bool_if:NT \l_siunitx_create_prespace_bool
- {
- \exp_not:n
+ \group_begin:
+ \exp_not:N \cs_if_free:cF
+ \exp_not:c
+ { l_siunitx_ \token_to_str:N #1 _options_tl }
+ {
+ \keys_set:nV { siunitx }
+ \exp_not:c
{
- \siunitx_ensuremath:n
- { \l_siunitx_number_unit_separator_tl }
+ l_siunitx_ \token_to_str:N #1 _options_tl
}
- }
- \SI {####1} { \exp_not:N #1 }
- }
+ }
+ \exp_not:N \IfNoValueTF {####1}
+ {
+ \bool_if:NT \l_siunitx_create_prespace_bool
+ {
+ \exp_not:n
+ {
+ \siunitx_ensuremath:n
+ { \l_siunitx_number_unit_separator_tl }
+ }
+ }
+ \exp_not:n { \siunitx_unit_output:nn {#1} { } }
+ }
+ { \SI {####1} { \exp_not:N #1 } }
+ \group_end:
\bool_if:NT \l_siunitx_create_xspace_bool
{ \exp_not:N \xspace }
}