summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/siunitx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-08-22 22:32:11 +0000
committerKarl Berry <karl@freefriends.org>2016-08-22 22:32:11 +0000
commita3307ce77e24c459d6c146d5a78a65f0d6f01881 (patch)
tree3d3b0f8eec498aa2e974e728aa3c5f6c9a88aa17 /Master/texmf-dist/tex/latex/siunitx
parent78dae40b2b2532ac683a14c4ab9933431f0c41bf (diff)
siunitx (22aug16)
git-svn-id: svn://tug.org/texlive/trunk@41907 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/siunitx')
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/siunitx-abbreviations.cfg2
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/siunitx-binary.cfg2
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/siunitx-version-1.cfg2
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/siunitx.sty146
4 files changed, 84 insertions, 68 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx-abbreviations.cfg b/Master/texmf-dist/tex/latex/siunitx/siunitx-abbreviations.cfg
index ebe581009e8..9ac555f3ea4 100644
--- a/Master/texmf-dist/tex/latex/siunitx/siunitx-abbreviations.cfg
+++ b/Master/texmf-dist/tex/latex/siunitx/siunitx-abbreviations.cfg
@@ -13,7 +13,7 @@
%% See http://www.latex-project.org/lppl.txt
%% ---------------------------------------------------------------
%%
-\ProvidesExplFile {siunitx-abbreviations.cfg} {2016/03/01} {2.6q}
+\ProvidesExplFile {siunitx-abbreviations.cfg} {2016/08/22} {2.6r}
{siunitx: Abbreviated units}
\DeclareSIUnit \A { \ampere }
\DeclareSIUnit \pA { \pico \ampere }
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx-binary.cfg b/Master/texmf-dist/tex/latex/siunitx/siunitx-binary.cfg
index cec60f5e0c9..caef9a61558 100644
--- a/Master/texmf-dist/tex/latex/siunitx/siunitx-binary.cfg
+++ b/Master/texmf-dist/tex/latex/siunitx/siunitx-binary.cfg
@@ -13,7 +13,7 @@
%% See http://www.latex-project.org/lppl.txt
%% ---------------------------------------------------------------
%%
-\ProvidesExplFile {siunitx-binary.cfg} {2016/03/01} {2.6q}
+\ProvidesExplFile {siunitx-binary.cfg} {2016/08/22} {2.6r}
{siunitx: Binary units}
\DeclareBinaryPrefix \kibi { Ki } { 10 }
\DeclareBinaryPrefix \mebi { Mi } { 20 }
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx-version-1.cfg b/Master/texmf-dist/tex/latex/siunitx/siunitx-version-1.cfg
index 3e698ab9c19..9d22e60af16 100644
--- a/Master/texmf-dist/tex/latex/siunitx/siunitx-version-1.cfg
+++ b/Master/texmf-dist/tex/latex/siunitx/siunitx-version-1.cfg
@@ -13,7 +13,7 @@
%% See http://www.latex-project.org/lppl.txt
%% ---------------------------------------------------------------
%%
-\ProvidesExplFile {siunitx-version-1.cfg} {2016/03/01} {2.6q}
+\ProvidesExplFile {siunitx-version-1.cfg} {2016/08/22} {2.6r}
{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 9a6a69d56ef..ad9a64691fb 100644
--- a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
+++ b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
@@ -15,7 +15,7 @@
%%
\RequirePackage{expl3}[2015/09/11]
\RequirePackage{xparse}
-\ProvidesExplPackage {siunitx} {2016/03/01} {2.6q}
+\ProvidesExplPackage {siunitx} {2016/08/22} {2.6r}
{A comprehensive (SI) units package}
\@ifpackagelater { expl3 } { 2015/09/11 }
{ }
@@ -775,6 +775,7 @@
{
\__siunitx_ensure_ltr:n
{
+ \color@begingroup
\__siunitx_print_color:
\__siunitx_font_shape:
\__siunitx_font_weight:
@@ -786,6 +787,7 @@
\bool_if:NTF \l__siunitx_font_math_mode_bool
{ \__siunitx_print_math: }
{ \__siunitx_print_text: }
+ \color@endgroup
}
}
}
@@ -802,8 +804,16 @@
\@ifpackageloaded { color }
{ \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_none:n
+ \cs_set_protected:Npn \__siunitx_print_color:
+ {
+ \cs_set_eq:NN \__siunitx_print_color: \scan_stop:
+ \msg_warning:nn { siunitx } { color-not-loaded }
+ }
+ \cs_new_protected:Npn \__siunitx_textcolor:n #1
+ {
+ \cs_set_eq:NN \__siunitx_textcolor:n \use_none:n
+ \msg_warning:nn { siunitx } { color-not-loaded }
+ }
}
}
\cs_new_protected:Npn \__siunitx_print_math:
@@ -820,7 +830,7 @@
{ \l__siunitx_print_arg_tl }
}
}
-\cs_new_protected_nopar:Npn \__siunitx_print_text:
+\cs_new_protected:Npn \__siunitx_print_text:
{
\tl_replace_all:Nnn \l__siunitx_print_arg_tl { - }
{ \c__siunitx_minus_tl }
@@ -875,12 +885,12 @@
\sp { \text {##1} }
}
}
- \cs_set_protected_nopar:Npn \__siunitx_peek_true:
+ \cs_set_protected:Npn \__siunitx_peek_true:
{
\tex_afterassignment:D \__siunitx_print_text_sub_super:n
\cs_set_eq:NN \__siunitx_tmp:w
}
- \cs_set_protected_nopar:Npn \__siunitx_peek_false:
+ \cs_set_protected:Npn \__siunitx_peek_false:
{ \ensuremath { \sb { \text {#1} } } }
\peek_after:Nw \__siunitx_print_text_sub_peek:
}
@@ -892,8 +902,8 @@
\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_peek_true: { }
+\cs_new_protected: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}
@@ -1640,8 +1650,7 @@
{
\tl_if_single:NTF \l__siunitx_number_uncert_tl
{
- \int_compare:nNnTF
- { \l__siunitx_number_uncert_tl } = { \c_zero }
+ \int_compare:nNnTF \l__siunitx_number_uncert_tl = 0
{ \__siunitx_number_in_complex_to_uncert_dec:n {#1} }
{ \__siunitx_number_in_complex_to_uncert_int: }
}
@@ -1886,7 +1895,12 @@
{ exponent-integer }
\prop_remove:Nn \l__siunitx_number_in_prop
{ exponent-decimal }
- }
+ \prop_if_in:NnF \l__siunitx_number_in_prop { mantissa }
+ {
+ \prop_put:Nnn \l__siunitx_number_in_prop { mantissa } { true }
+ \prop_put:Nnn \l__siunitx_number_in_prop { mantissa-integer } { 1 }
+ }
+ }
}
}
}
@@ -1900,7 +1914,7 @@
}
\cs_new_protected:Npn \__siunitx_number_process_figures:n #1
{
- \int_compare:nNnTF \l__siunitx_process_precision_int > \c_zero
+ \int_compare:nNnTF \l__siunitx_process_precision_int > 0
{
\prop_if_in:NnT \l__siunitx_number_in_prop {#1}
{ \__siunitx_number_process_figures_aux:n {#1} }
@@ -1966,7 +1980,7 @@
\tl_put_left:cV { l__siunitx_round_ #1 _out_tl } \l__siunitx_tmp_int
\bool_if:NF \l__siunitx_round_bool
{
- \int_compare:nNnF { \l__siunitx_tmp_int } = \c_zero
+ \int_compare:nNnF \l__siunitx_tmp_int = 0
{ \bool_set_true:N \l__siunitx_round_bool }
}
\bool_if:NT \l__siunitx_round_bool
@@ -1998,20 +2012,20 @@
}
\cs_new_protected:Npn \__siunitx_number_process_figures_integer:
{
- \int_compare:nNnT \l__siunitx_round_int > \c_zero
+ \int_compare:nNnT \l__siunitx_round_int > 0
{ \tl_put_left:Nn \l__siunitx_round_integer_out_tl { 0 } }
- \int_compare:nNnF \l__siunitx_round_int > \c_one
+ \int_compare:nNnF \l__siunitx_round_int > 1
{
\int_set:Nn \l__siunitx_tmp_int
{ \tl_head:N \l__siunitx_round_integer_in_tl }
\__siunitx_number_process_round_up:
- \int_compare:nNnTF \l__siunitx_round_int = \c_one
+ \int_compare:nNnTF \l__siunitx_round_int = 1
{
- \int_compare:nNnT \l__siunitx_tmp_int > \c_four
+ \int_compare:nNnT \l__siunitx_tmp_int > 4
{ \bool_set_true:N \l__siunitx_round_bool }
}
{
- \int_compare:nNnT \l__siunitx_tmp_int = \c_ten
+ \int_compare:nNnT \l__siunitx_tmp_int = { 10 }
{
\bool_set_true:N \l__siunitx_round_bool
\int_zero:N \l__siunitx_tmp_int
@@ -2066,7 +2080,7 @@
\cs_new_protected:Npn \__siunitx_number_process_fixed_aux_i:nnn #1#2#3
{
\prop_put:Nnn \l__siunitx_number_in_prop { exponent } { true }
- \int_compare:nNnTF { \l__siunitx_process_fixed_int } > { \c_zero }
+ \int_compare:nNnTF \l__siunitx_process_fixed_int > 0
{
\prop_put:NnV \l__siunitx_number_in_prop { exponent-integer }
\l__siunitx_process_fixed_int
@@ -2125,7 +2139,7 @@
}
\cs_new_protected:Npn \__siunitx_number_process_fixed_large:nnn #1
{
- \int_compare:nNnTF {#1} = \c_zero
+ \int_compare:nNnTF {#1} = 0
{ \__siunitx_number_process_fixed_large_aux:nnn { } }
{ \__siunitx_number_process_fixed_large_aux:nnn {#1} }
}
@@ -2192,8 +2206,7 @@
\cs_new_protected:Npn \__siunitx_number_process_fixed_small_aux:w
{ }
\cs_new_protected:Npn \__siunitx_number_process_integer_digits: {
- \int_compare:nNnT
- { \l__siunitx_process_integer_min_int } > { \c_zero }
+ \int_compare:nNnT \l__siunitx_process_integer_min_int > 0
{
\prop_get:NnNT \l__siunitx_number_in_prop { mantissa-integer }
\l__siunitx_tmpa_tl
@@ -2203,7 +2216,7 @@
\l__siunitx_process_integer_min_int
- \tl_count:N \l__siunitx_tmpa_tl
}
- \int_compare:nNnT { \l__siunitx_tmp_int } > { \c_zero }
+ \int_compare:nNnT \l__siunitx_tmp_int > 0
{
\tl_set:Nx \l__siunitx_tmpa_tl
{
@@ -2264,7 +2277,7 @@
}
\cs_new_protected:Npn \__siunitx_number_process_places_aux_i:n #1
{
- \int_compare:nNnTF \l__siunitx_process_precision_int = \c_zero
+ \int_compare:nNnTF \l__siunitx_process_precision_int = 0
{ \__siunitx_number_process_places_none:n {#1} }
{
\prop_get:NnNT \l__siunitx_number_in_prop { #1 -decimal }
@@ -2292,7 +2305,7 @@
\bool_set_true:N \l__siunitx_tmp_bool
\tl_map_inline:Nn \l__siunitx_tmpa_tl
{
- \int_compare:nNnF {##1} = \c_zero
+ \int_compare:nNnF {##1} = 0
{
\bool_set_false:N \l__siunitx_tmp_bool
\tl_map_break:
@@ -2304,7 +2317,7 @@
{
\prop_get:NnNT \l__siunitx_number_in_prop { #1 -decimal } \l__siunitx_tmpa_tl
{
- \int_compare:nNnTF { \tl_head:N \l__siunitx_tmpa_tl } > \c_four
+ \int_compare:nNnTF { \tl_head:N \l__siunitx_tmpa_tl } > 4
{
\prop_get:NnNTF \l__siunitx_number_in_prop { #1 -integer }
\l__siunitx_tmpb_tl
@@ -2314,7 +2327,7 @@
\bool_if:NF \l__siunitx_round_half_up_bool
{
\int_compare:nNnT
- { 0 \tl_tail:N \l__siunitx_tmpa_tl } = \c_zero
+ { 0 \tl_tail:N \l__siunitx_tmpa_tl } = 0
{
\int_if_odd:nT \l__siunitx_tmpb_tl
{
@@ -2344,7 +2357,7 @@
{
\int_sub:Nn \l__siunitx_round_int
{ \l__siunitx_process_precision_int }
- \int_compare:nNnTF \l__siunitx_round_int < \c_zero
+ \int_compare:nNnTF \l__siunitx_round_int < 0
{
\int_set:Nn \l__siunitx_round_int { - \l__siunitx_round_int }
\__siunitx_number_process_pad:n {#1}
@@ -2398,7 +2411,7 @@
{ \tl_tail:N \l__siunitx_round_integer_in_tl }
\__siunitx_number_process_round_up:
\bool_set_false:N \l__siunitx_round_bool
- \int_compare:nNnT \l__siunitx_tmp_int = \c_ten
+ \int_compare:nNnT \l__siunitx_tmp_int = { 10 }
{
\int_zero:N \l__siunitx_tmp_int
\bool_set_true:N \l__siunitx_round_bool
@@ -2429,7 +2442,7 @@
}
\cs_new_protected:Npn \__siunitx_number_process_round_decimal:
{
- \int_compare:nNnF \l__siunitx_round_int > \c_one
+ \int_compare:nNnF \l__siunitx_round_int > 1
{ \__siunitx_number_process_round_decimal_aux: }
\tl_put_right:Nx \l__siunitx_round_discard_tl
{ \tl_head:N \l__siunitx_round_decimal_in_tl }
@@ -2442,22 +2455,21 @@
\int_set:Nn \l__siunitx_tmp_int
{ \tl_head:N \l__siunitx_round_decimal_in_tl }
\__siunitx_number_process_round_up:
- \int_compare:nNnTF \l__siunitx_round_int = \c_one
+ \int_compare:nNnTF \l__siunitx_round_int = 1
{
- \int_compare:nNnT \l__siunitx_tmp_int > \c_four
+ \int_compare:nNnT \l__siunitx_tmp_int > 4
{
\bool_set_true:N \l__siunitx_round_bool
\bool_if:NF \l__siunitx_round_half_up_bool
{
\int_compare:nNnT
- { \l__siunitx_round_discard_tl \int_use:N \l__siunitx_tmp_int }
- = \c_five
+ { \l__siunitx_round_discard_tl \int_use:N \l__siunitx_tmp_int } = 5
{ \bool_set_true:N \l__siunitx_round_even_bool }
}
}
}
{
- \int_compare:nNnT \l__siunitx_tmp_int = \c_ten
+ \int_compare:nNnT \l__siunitx_tmp_int = { 10 }
{
\bool_set_true:N \l__siunitx_round_bool
\int_zero:N \l__siunitx_tmp_int
@@ -2564,7 +2576,7 @@
}
\cs_new_protected:Npn
\__siunitx_number_process_scientific_aux_ii:nnn #1#2#3 {
- \int_compare:nNnTF { \tl_count:n {#1} } > \c_one
+ \int_compare:nNnTF { \tl_count:n {#1} } > 1
{ \__siunitx_number_process_scientific_large:nnn {#1} {#2} {#3} }
{
\__siunitx_number_if_zero:nTF {#1}
@@ -2589,7 +2601,7 @@
\quark_if_recursion_tail_stop_do:Nn ##3
{
\__siunitx_number_process_scientific_aux_ii:nnn {##1} { ##2 #2 }
- { #3 + \c_one }
+ { #3 + 1 }
}
\__siunitx_number_process_scientific_large_loop:nNN { ##1 ##2 } ##3
}
@@ -2871,7 +2883,7 @@
{ \prop_put:Nnn \l__siunitx_number_in_prop { #1 - #2 } { 0 } }
}
}
-\cs_new_protected_nopar:Npn \__siunitx_number_process_zero_to_integer:
+\cs_new_protected:Npn \__siunitx_number_process_zero_to_integer:
{
\bool_if:NT \l__siunitx_zero_decimal_to_integer_bool
{
@@ -4265,7 +4277,7 @@
unit-optional-argument ,
use-xspace ,
}
-\cs_new_protected_nopar:Npn \__siunitx_unit_create_empty_functions:
+\cs_new_protected:Npn \__siunitx_unit_create_empty_functions:
{
\__siunitx_unit_create_functions_aux_i:
\seq_map_function:NN \l__siunitx_declare_list_seq
@@ -4277,7 +4289,7 @@
\cs_if_free:NT #1
{ \cs_set_protected:Npn #1 { \ERROR } }
}
-\cs_new_protected_nopar:Npn \__siunitx_unit_create_functions:
+\cs_new_protected:Npn \__siunitx_unit_create_functions:
{
\__siunitx_unit_create_functions_aux_i:
\bool_if:NT \l__siunitx_create_overwrite_bool
@@ -4295,14 +4307,14 @@
\bool_if:NT \l__siunitx_create_xspace_bool
{ \RequirePackage { xspace } }
}
-\cs_new_protected_nopar:Npn \__siunitx_unit_create_functions_aux_i:
+\cs_new_protected:Npn \__siunitx_unit_create_functions_aux_i:
{
\@ifpackageloaded { soulpos }
{
\@ifpackageloaded { soul }
{ }
{
- \cs_set_protected_nopar:Npn \__siunitx_unit_create_functions_aux_ii:
+ \cs_set_protected:Npn \__siunitx_unit_create_functions_aux_ii:
{
\cs_undefine:N \hl
\cs_undefine:N \ul
@@ -4311,7 +4323,7 @@
}
{ }
}
-\cs_new_protected_nopar:Npn \__siunitx_unit_create_functions_aux_ii: { }
+\cs_new_protected:Npn \__siunitx_unit_create_functions_aux_ii: { }
\cs_new_protected:Npn \__siunitx_unit_create:N #1 {
\cs_if_free:NT #1
{
@@ -4581,7 +4593,7 @@
\bool_new:N \l__siunitx_per_fraction_bool
\tl_new:N \l__siunitx_per_mode_tl
\bool_new:N \l__siunitx_power_number_bool
-\bool_new:N \l__siunitx_two_parts_bool
+\bool_new:N \l__siunitx_per_two_parts_bool
\tl_new:N \l__siunitx_qualifier_mode_tl
\keys_define:nn { siunitx } {
bracket-unit-denominator .bool_set:N
@@ -5076,7 +5088,7 @@
\tl_put_right:NV \l__siunitx_unit_current_tl \l__siunitx_tmpa_tl
\tl_put_right:NV \l__siunitx_unit_current_tl \l__siunitx_bracket_close_tl
}
-\cs_new_protected_nopar:Npn \__siunitx_unit_format_qualifier_phrase:
+\cs_new_protected:Npn \__siunitx_unit_format_qualifier_phrase:
{
\tl_put_right:NV \l__siunitx_unit_current_tl \l__siunitx_qualifier_phrase_tl
\tl_put_right:NV \l__siunitx_unit_current_tl \l__siunitx_tmpa_tl
@@ -5142,6 +5154,7 @@
\bool_new:N \l__siunitx_multi_repeat_bool
\bool_new:N \l__siunitx_product_brackets_bool
\bool_new:N \l__siunitx_product_power_bool
+\bool_new:N \l__siunitx_product_repeat_bool
\bool_new:N \l__siunitx_number_unit_repeat_bool
\keys_define:nn { siunitx } {
allow-number-unit-breaks .bool_set:N =
@@ -5401,7 +5414,7 @@
{
\bool_set_true:N \l__siunitx_list_first_bool
\tl_clear:N \l__siunitx_list_current_tl
- \int_compare:nNnTF { \tl_count:n {#1} } > \c_two
+ \int_compare:nNnTF { \tl_count:n {#1} } > 2
{
\tl_map_function:nN {#1} \__siunitx_list_numbers_aux_ii:n
\l__siunitx_list_tl
@@ -5409,7 +5422,7 @@
\l__siunitx_list_current_tl
}
{
- \int_compare:nNnTF { \tl_count:n {#1} } = \c_two
+ \int_compare:nNnTF { \tl_count:n {#1} } = 2
{ \__siunitx_list_numbers_aux:nn #1 }
{ \__siunitx_combined_output:n #1 }
}
@@ -5818,14 +5831,14 @@
}
}
\skip_new:N \c__siunitx_one_fill_skip
-\skip_set:Nn \c__siunitx_one_fill_skip { \c_zero_dim plus 1 fill }
+\skip_set:Nn \c__siunitx_one_fill_skip { 0pt plus 1fill }
\AtBeginDocument
{
\@ifpackageloaded { colortbl }
{
\cs_new_protected:Npn \__siunitx_table_colortbl_correction:
{
- \skip_horizontal:n { \c_zero_dim plus -0.5 fill }
+ \skip_horizontal:n { 0pt plus -0.5fill }
\tex_kern:D \c_zero_skip
}
}
@@ -5883,7 +5896,7 @@
center .code:n =
{
\skip_set:Nn \l__siunitx_table_unit_align_skip
- { \c_zero_dim plus 0.5 fill }
+ { 0pt plus 0.5fill }
},
table-unit-alignment /
left .code:n =
@@ -5892,7 +5905,7 @@
right .code:n =
{
\skip_set:Nn \l__siunitx_table_unit_align_skip
- { \c_zero_dim plus 1 fill }
+ { 0pt plus 1fill }
}
}
\keys_set:nn { siunitx } { table-unit-alignment = center }
@@ -5951,7 +5964,7 @@
center .code:n =
{
\skip_set:Nn \l__siunitx_table_number_align_skip
- { \c_zero_dim plus 0.5 fill }
+ { 0pt plus 0.5fill }
\cs_set_eq:NN \__siunitx_table_print_S_direct_main:
\__siunitx_table_print_S_direct_reserved:
\cs_set_eq:NN \__siunitx_table_print_S_parsed:
@@ -5961,7 +5974,7 @@
center-decimal-marker .code:n =
{
\skip_set:Nn \l__siunitx_table_number_align_skip
- { \c_zero_dim plus 0.5 fill }
+ { 0pt plus 0.5fill }
\cs_set_eq:NN \__siunitx_table_print_S_direct_main:
\__siunitx_table_print_S_direct_centered:
\cs_set_eq:NN \__siunitx_table_print_S_parsed:
@@ -5980,7 +5993,7 @@
right .code:n =
{
\skip_set:Nn \l__siunitx_table_number_align_skip
- { \c_zero_dim plus 1 fill }
+ { 0pt plus 1fill }
\cs_set_eq:NN \__siunitx_table_print_S_direct_main:
\__siunitx_table_print_S_direct_reserved:
\cs_set_eq:NN \__siunitx_table_print_S_parsed:
@@ -5993,7 +6006,7 @@
center .code:n =
{
\skip_set:Nn \l__siunitx_table_text_align_skip
- { \c_zero_dim plus 0.5 fill }
+ { 0pt plus 0.5fill }
},
table-text-alignment /
left .code:n =
@@ -6002,7 +6015,7 @@
right .code:n =
{
\skip_set:Nn \l__siunitx_table_text_align_skip
- { \c_zero_dim plus 1 fill }
+ { 0pt plus 1fill }
},
table-comparator .choice:,
table-comparator /
@@ -6014,7 +6027,7 @@
table-comparator .default:n = true,
table-figures-decimal .code:n =
{
- \int_compare:nNnTF {#1} = \c_zero
+ \int_compare:nNnTF {#1} = 0
{
\prop_remove:Nn \l__siunitx_table_model_prop { mantissa-decimal }
\prop_remove:Nn \l__siunitx_table_model_prop { mantissa-decimal-raw }
@@ -6039,7 +6052,7 @@
},
table-figures-exponent .code:n =
{
- \int_compare:nNnTF {#1} = \c_zero
+ \int_compare:nNnTF {#1} = 0
{ \prop_remove:Nn \l__siunitx_table_model_prop { exponent-integer } }
{
\prop_put:Nnx \l__siunitx_table_model_prop { exponent-integer }
@@ -6049,7 +6062,7 @@
},
table-figures-integer .code:n =
{
- \int_compare:nNnTF {#1} = \c_zero
+ \int_compare:nNnTF {#1} = 0
{
\prop_remove:Nn \l__siunitx_table_model_prop { mantissa-integer }
\prop_if_in:NnTF \l__siunitx_table_model_prop { mantissa-decimal }
@@ -6067,7 +6080,7 @@
},
table-figures-uncertainty .code:n =
{
- \int_compare:nNnTF {#1} = \c_zero
+ \int_compare:nNnTF {#1} = 0
{ \prop_remove:Nn \l__siunitx_table_model_prop { mantissa-uncertainty } }
{
\prop_put:Nnx \l__siunitx_table_model_prop { mantissa-uncertainty }
@@ -6713,7 +6726,7 @@
\char_set_active_eq:NN #1 \__siunitx_table_print_S_direct_centered_begin:
\char_set_mathcode:nn { `#1 } { "8000 }
}
-\cs_new_protected_nopar:Npn \__siunitx_table_print_S_direct_centered_begin:
+\cs_new_protected:Npn \__siunitx_table_print_S_direct_centered_begin:
{
\c_math_toggle_token
\c_group_end_token
@@ -6794,7 +6807,7 @@
\char_set_active_eq:NN #1 \__siunitx_table_print_S_direct_reserved_begin:
\char_set_mathcode:nn { `#1 } { "8000 }
}
-\cs_new_protected_nopar:Npn \__siunitx_table_print_S_direct_reserved_begin:
+\cs_new_protected:Npn \__siunitx_table_print_S_direct_reserved_begin:
{
\c_math_toggle_token
\c_group_end_token
@@ -7031,7 +7044,7 @@
{ set~thousands~separator = { \exp_not:V \l__siunitx_group_sep_tl } }
\clist_put_right:Nx \l__siunitx_pgf_link_clist
{
- min~exponent~for~1000~sep = \int_eval:n { \l__siunitx_group_min_int - \c_one }
+ min~exponent~for~1000~sep = \int_eval:n { \l__siunitx_group_min_int - 1 }
}
\bool_if:nF
{
@@ -7070,6 +7083,9 @@
\msg_new:nnnn { siunitx } { bad-arc-sign }
{ Incorrect~use~of~sign~in~degree-minute-second~angle. }
{ Only~the~highest~value~part~of~an~angle~can~have~a~sign. }
+\msg_new:nnnn { siunitx } { color-not-loaded }
+ { Package~"color"~not~loaded. }
+ { The~command~\token_to_str:N \color \ is~not~available. }
\msg_new:nnnn { siunitx } { duplicate-complex-root-token }
{ Duplicate~complex~root~token~'#1'~in~input. }
{ Only~one~complex~root~token~can~appear~in~a~single~number. }
@@ -7644,12 +7660,12 @@
{ \cs_set_eq:NN \__siunitx_load_binary: \prg_do_nothing: } ,
binary-units .default:n = true
}
-\cs_new_protected_nopar:Npn \__siunitx_load_abbreviations:
+\cs_new_protected:Npn \__siunitx_load_abbreviations:
{
\@onefilewithoptions { siunitx-abbreviations } [ ] [ ]
\c__siunitx_configuration_ext_tl
}
-\cs_new_protected_nopar:Npn \__siunitx_load_binary:
+\cs_new_protected:Npn \__siunitx_load_binary:
{
\@onefilewithoptions { siunitx-binary } [ ] [ ]
\c__siunitx_configuration_ext_tl