summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/siunitx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-12-31 00:35:01 +0000
committerKarl Berry <karl@freefriends.org>2012-12-31 00:35:01 +0000
commit029245013285076f78d908a0ceba9d27ab0685f5 (patch)
tree0ca7734e95e00f8bc14ec7f6da85f54fd7f7f6fd /Master/texmf-dist/tex/latex/siunitx
parent7aad1ee836e1ca9bb9e25019232c492beb35155b (diff)
siunitx (30dec12)
git-svn-id: svn://tug.org/texlive/trunk@28664 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.sty42
4 files changed, 28 insertions, 20 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 a57975c0f80..3d27e69d7c4 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/11/27} {2.5m}
+\ProvidesExplFile {siunitx-abbreviations.cfg} {2012/12/29} {2.5n}
{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 46d2e387740..d91825da291 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/11/27} {2.5m}
+\ProvidesExplFile {siunitx-binary.cfg} {2012/12/29} {2.5n}
{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 a66bd18c707..e85306c45af 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/11/27} {2.5m}
+\ProvidesExplFile {siunitx-version-1.cfg} {2012/12/29} {2.5n}
{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 73ed6ae89e4..cb00ec3b1bc 100644
--- a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
+++ b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
@@ -14,15 +14,15 @@
%% ---------------------------------------------------------------
%%
\RequirePackage{expl3,xparse}
-\ProvidesExplPackage {siunitx} {2012/11/27} {2.5m}
+\ProvidesExplPackage {siunitx} {2012/12/29} {2.5n}
{A comprehensive (SI) units package}
\@ifpackagelater { expl3 } { 2012/11/21 }
{ }
{
- \PackageError { siunitx } { Support~package~expl3~too~old. }
+ \PackageError { siunitx } { Support~package~expl3~too~old }
{
You~need~to~update~your~installation~of~the~bundles~'l3kernel'~and~
- 'l3packages'.\\
+ 'l3packages'.\MessageBreak
Loading~siunitx~will~abort!
}
\tex_endinput:D
@@ -846,18 +846,27 @@
{
\sb { \text {#1} }
\sp { \text {##1} }
- }
+ }
}
- \cs_set_eq:NN \l__peek_search_token \__siunitx_print_text_super:n
- \cs_set:Npn \__peek_true:w
+ \cs_set_protected_nopar:Npn \__siunitx_peek_true:
{
- \tex_afterassignment:D \__peek_true_aux:w
- \cs_set_eq:NN \__peek_tmp:w
+ \tex_afterassignment:D \__siunitx_print_text_sub_super:n
+ \cs_set_eq:NN \__siunitx_tmp:w
}
- \cs_set:Npn \__peek_true_aux:w { \__siunitx_print_text_sub_super:n }
- \cs_set:Npn \__peek_false:w { \ensuremath { \sb { \text {#1} } } }
- \peek_after:Nw \__peek_execute_branches_meaning:
+ \cs_set_protected_nopar:Npn \__siunitx_peek_false:
+ { \ensuremath { \sb { \text {#1} } } }
+ \peek_after:Nw \__siunitx_print_text_sub_peek:
+ }
+\cs_new_protected:Npn \__siunitx_print_text_sub_peek:
+ {
+ \if_meaning:w \l_peek_token \__siunitx_print_text_super:n
+ \exp_after:wN \__siunitx_peek_true:
+ \else:
+ \exp_after:wN \__siunitx_peek_false:
+ \fi:
}
+\cs_new_protected_nopar:Npn \__siunitx_peek_true: { }
+\cs_new_protected_nopar:Npn \__siunitx_peek_false: { }
\cs_new_protected:Npn \__siunitx_print_text_sub_super:n { }
\cs_new_protected:Npn \__siunitx_print_text_super:n #1 {
\tl_set:Nn \l__siunitx_tmpa_tl {#1}
@@ -6887,8 +6896,10 @@
}
\clist_put_right:Nx \l__siunitx_pgf_link_clist
{ set~thousands~separator = { \exp_not:V \l__siunitx_group_sep_tl } }
- \clist_put_right:Nn \l__siunitx_pgf_link_clist
- { min~exponent~for~1000~sep = \int_use:N \l__siunitx_group_min_int }
+ \clist_put_right:Nx \l__siunitx_pgf_link_clist
+ {
+ min~exponent~for~1000~sep = \int_eval:n { \l__siunitx_group_min_int - \c_one }
+ }
\bool_if:nF
{
\l__siunitx_group_decimal_bool ||
@@ -6916,15 +6927,12 @@
\clist_put_right:Nn \l__siunitx_pgf_link_clist
{ showpos = false }
}
- \group_begin:
- \cs_set:Npx \__siunitx_tmp:w
+ \use:x
{
- \group_end:
\exp_not:N \pgfqkeys
{ /pgf/number~format }
{ \exp_not:V \l__siunitx_pgf_link_clist }
}
- \__siunitx_tmp:w
}
\msg_new:nnnn { siunitx } { bad-arc-sign }
{ Incorrect~use~of~sign~in~degree-minute-second~angle. }