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.sty32
1 files changed, 22 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
index b89514458f6..e66935d8d4f 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,xparse}
-\ProvidesExplPackage {siunitx} {2013/02/01} {2.5p}
+\ProvidesExplPackage {siunitx} {2013/03/11} {2.5q}
{A comprehensive (SI) units package}
\@ifpackagelater { expl3 } { 2012/11/21 }
{ }
@@ -1093,14 +1093,23 @@
\cs_new_protected:Npn \__siunitx_number_in_protect_aux:N #1 {
\cs_set_eq:NN #1 \scan_stop:
}
-\cs_new_protected:Npn \__siunitx_number_in_sign_replace:N #1 {
- \tl_replace_all:Nnn #1 { -+ } { \mp }
- \tl_replace_all:Nnn #1 { +- } { \pm }
- \tl_replace_all:Nnn #1 { << } { \ll }
- \tl_replace_all:Nnn #1 { <= } { \le }
- \tl_replace_all:Nnn #1 { >> } { \gg }
- \tl_replace_all:Nnn #1 { >= } { \ge }
-}
+\group_begin:
+\char_set_catcode_active:N \*
+\char_set_lccode:nn { `\* } { `\- }
+\tl_to_lowercase:n
+ {
+ \group_end:
+ \cs_new_protected:Npn \__siunitx_number_in_sign_replace:N #1
+ {
+ \tl_replace_all:Nnn #1 { * } { - }
+ \tl_replace_all:Nnn #1 { -+ } { \mp }
+ \tl_replace_all:Nnn #1 { +- } { \pm }
+ \tl_replace_all:Nnn #1 { << } { \ll }
+ \tl_replace_all:Nnn #1 { <= } { \le }
+ \tl_replace_all:Nnn #1 { >> } { \gg }
+ \tl_replace_all:Nnn #1 { >= } { \ge }
+ }
+ }
\cs_new_protected:Npn \__siunitx_number_in_parse_error:nn #1#2 {
\__siunitx_error:nx {#1} { \exp_not:n {#2} }
\tl_map_break:
@@ -5486,6 +5495,9 @@
{ \NC@list { #1 #2 } }
\exp_after:wN \__siunitx_tmp:w \tex_the:D \NC@list \q_stop
\cs_undefine:N \NC@find@S
+ \msg_new:nnn { siunitx } { moved-cellspace-column }
+ { Column~type~for~cellspace~package~moved~to~'#1'. }
+ \msg_warning:nnn { siunitx } { moved-cellspace-column } { C }
}
{ }
}
@@ -7542,12 +7554,12 @@
\@onefilewithoptions { siunitx } [ ] [ ]
\c__siunitx_configuration_ext_tl
}
+\ProcessKeysOptions { siunitx }
\AtBeginDocument {
\bool_if:NTF \l__siunitx_create_free_bool
{ \__siunitx_unit_create_functions: }
{ \__siunitx_unit_create_empty_functions: }
}
-\ProcessKeysOptions { siunitx }
%% Copyright (C) 2008-2013 by
%% Joseph Wright <joseph.wright@morningstar2.co.uk>
%%