summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/siunitx/siunitx.sty')
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/siunitx.sty34
1 files changed, 29 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
index 97211e1db54..f655f1b034b 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/05/28} {2.0a}
+\ProvidesExplPackage {siunitx} {2010/06/01} {2.0b}
{A comprehensive (SI) units package}
\msg_set:nnnn { siunitx } { incompatible-package }
{ Package~'#1'~incompatible. }
@@ -94,6 +94,7 @@
\_siunitx_tmp:w { closeerr }
\_siunitx_tmp:w { closrfrac }
\_siunitx_tmp:w { closerange }
+\_siunitx_tmp:w { colour }
\_siunitx_tmp:w { colorall }
\_siunitx_tmp:w { colourall }
\_siunitx_tmp:w { colorneg }
@@ -117,6 +118,8 @@
\_siunitx_tmp:w { fixsf }
\_siunitx_tmp:w { fraction }
\_siunitx_tmp:w { inlinebold }
+\_siunitx_tmp:w { locale }
+\_siunitx_tmp:w { loctolang }
\_siunitx_tmp:w { log }
\_siunitx_tmp:w { load }
\_siunitx_tmp:w { mathOmega }
@@ -154,6 +157,7 @@
\_siunitx_tmp:w { numsign }
\_siunitx_tmp:w { obeyall }
\_siunitx_tmp:w { obeybold }
+\_siunitx_tmp:w { obeyfamily }
\_siunitx_tmp:w { obeymode }
\_siunitx_tmp:w { obeyitalic }
\_siunitx_tmp:w { openerr }
@@ -246,6 +250,22 @@
}
}
}
+\AtBeginDocument {
+ \keys_define:nn { siunitx } {
+ unknown .code:n =
+ {
+ \seq_if_in:NVTF \_c_siunitx_old_options_seq \l_keys_key_tl
+ {
+ \msg_error:nnx { siunitx } { version-1-option }
+ { \exp_not:V \l_keys_key_tl }
+ }
+ {
+ \msg_error:nnx { siunitx } { unknown-option }
+ { \exp_not:V \l_keys_key_tl }
+ }
+ }
+}
+}
\clist_new:N \_l_siunitx_option_deactivate_clist
\cs_set_protected_nopar:Npn \_siunitx_option_deactivate:n #1 {
\clist_put_right:Nn \_l_siunitx_option_deactivate_clist {#1}
@@ -2831,7 +2851,7 @@
}
{
\IfNoValueTF {#3}
- { \_siunitx_error:nn { invalid-arc-format } { #1 ; #2 } }
+ { \_siunitx_error:nx { invalid-arc-format } { #1 ; #2 } }
{ \_siunitx_angle_output_aux:nnn {#1} {#2} {#3} }
}
}
@@ -5573,10 +5593,14 @@
The~option~file~'#1'~is~not~known~by~siunitx: \\
perhaps~it~is~spelled~incorrectly.
}
-\msg_set:nnn { siunitx } { version-1-option }
+\msg_set:nnnn { siunitx } { version-1-option }
+ { Version~1~option~'#1'~detected. }
{
- Version~1~option~'#1'~detected: \\
- loading~compatibility~code.
+ Use: \\
+ \c_space_tl \c_space_tl
+ \token_to_str:N \usepackage[load-configurations = version-1]
+ \token_to_str:N { siunitx \token_to_str:N } \\
+ in~the~preamble~to~load~the~appropriate~code.
}
\cs_set_protected_nopar:Npn \DeclareBinaryPrefix #1#2#3 {
\_siunitx_declare_prefix:Nnnn #1 {#2} { 2 } {#3}