summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex
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/source/latex
parent78dae40b2b2532ac683a14c4ab9933431f0c41bf (diff)
siunitx (22aug16)
git-svn-id: svn://tug.org/texlive/trunk@41907 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx.dtx158
1 files changed, 90 insertions, 68 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
index 22907830556..1c16e0ac8b5 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
+++ b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
@@ -650,6 +650,10 @@ This work consists of the file siunitx.dtx
% \changes{v2.6p}{2016/01/19}{Improve definition for degree Celsius}
% \changes{v2.6q}{2016/03/01}{Correctly select font when document commands are
% used inside table cells in \texttt{S} columns}
+% \changes{v2.6r}{2016/06/06}{Address color safety issue}
+% \changes{v2.6r}{2016/08/14}{Minor \pkg{expl3} fixes}
+% \changes{v2.6r}{2016/08/21}{Correctly handle \texttt{e0}}
+% \changes{v2.6r}{2016/08/21}{Warn when color support is not available}
%
%\begin{abstract}
% Physical quantities have both numbers and units, and each physical
@@ -2073,6 +2077,8 @@ This work consists of the file siunitx.dtx
% \num{1.23e4} \\
% \num[scientific-notation = fixed, fixed-exponent = 0]{1.23e4}
%\end{LaTeXdemo}
+% Note that these options apply after any removal of unit mantissa,
+% zero exponent, \emph{etc.}
%
% \DescribeOption{omit-uncertainty}
% \changes{v2.5}{2012/04/07}{New \opt{omit-uncertainty} option}
@@ -5172,7 +5178,7 @@ This work consists of the file siunitx.dtx
%
% The usual preliminaries.
% \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2016/03/01} {2.6q}
+\ProvidesExplPackage {siunitx} {2016/08/22} {2.6r}
{A comprehensive (SI) units package}
% \end{macrocode}
%
@@ -6379,6 +6385,7 @@ This work consists of the file siunitx.dtx
{
\@@_ensure_ltr:n
{
+ \color@begingroup
\@@_print_color:
\@@_font_shape:
\@@_font_weight:
@@ -6390,6 +6397,7 @@ This work consists of the file siunitx.dtx
\bool_if:NTF \l_@@_font_math_mode_bool
{ \@@_print_math: }
{ \@@_print_text: }
+ \color@endgroup
}
}
}
@@ -6418,8 +6426,16 @@ This work consists of the file siunitx.dtx
\@ifpackageloaded { color }
{ \cs_new_eq:NN \@@_textcolor:n \textcolor }
{
- \cs_set_eq:NN \@@_print_color: \scan_stop:
- \cs_new_eq:NN \@@_textcolor:n \use_none:n
+ \cs_set_protected:Npn \@@_print_color:
+ {
+ \cs_set_eq:NN \@@_print_color: \scan_stop:
+ \msg_warning:nn { siunitx } { color-not-loaded }
+ }
+ \cs_new_protected:Npn \@@_textcolor:n #1
+ {
+ \cs_set_eq:NN \@@_textcolor:n \use_none:n
+ \msg_warning:nn { siunitx } { color-not-loaded }
+ }
}
}
% \end{macrocode}
@@ -6449,7 +6465,7 @@ This work consists of the file siunitx.dtx
{ \l_@@_print_arg_tl }
}
}
-\cs_new_protected_nopar:Npn \@@_print_text:
+\cs_new_protected:Npn \@@_print_text:
{
\tl_replace_all:Nnn \l_@@_print_arg_tl { - }
{ \c_@@_minus_tl }
@@ -6523,12 +6539,12 @@ This work consists of the file siunitx.dtx
\sp { \text {##1} }
}
}
- \cs_set_protected_nopar:Npn \@@_peek_true:
+ \cs_set_protected:Npn \@@_peek_true:
{
\tex_afterassignment:D \@@_print_text_sub_super:n
\cs_set_eq:NN \@@_tmp:w
}
- \cs_set_protected_nopar:Npn \@@_peek_false:
+ \cs_set_protected:Npn \@@_peek_false:
{ \ensuremath { \sb { \text {#1} } } }
\peek_after:Nw \@@_print_text_sub_peek:
}
@@ -6540,8 +6556,8 @@ This work consists of the file siunitx.dtx
\exp_after:wN \@@_peek_false:
\fi:
}
-\cs_new_protected_nopar:Npn \@@_peek_true: { }
-\cs_new_protected_nopar:Npn \@@_peek_false: { }
+\cs_new_protected:Npn \@@_peek_true: { }
+\cs_new_protected:Npn \@@_peek_false: { }
\cs_new_protected:Npn \@@_print_text_sub_super:n { }
\cs_new_protected:Npn \@@_print_text_super:n #1 {
\tl_set:Nn \l_@@_tmpa_tl {#1}
@@ -7700,8 +7716,7 @@ This work consists of the file siunitx.dtx
{
\tl_if_single:NTF \l_@@_number_uncert_tl
{
- \int_compare:nNnTF
- { \l_@@_number_uncert_tl } = { \c_zero }
+ \int_compare:nNnTF \l_@@_number_uncert_tl = 0
{ \@@_number_in_complex_to_uncert_dec:n {#1} }
{ \@@_number_in_complex_to_uncert_int: }
}
@@ -8053,7 +8068,12 @@ This work consists of the file siunitx.dtx
{ exponent-integer }
\prop_remove:Nn \l_@@_number_in_prop
{ exponent-decimal }
- }
+ \prop_if_in:NnF \l_@@_number_in_prop { mantissa }
+ {
+ \prop_put:Nnn \l_@@_number_in_prop { mantissa } { true }
+ \prop_put:Nnn \l_@@_number_in_prop { mantissa-integer } { 1 }
+ }
+ }
}
}
}
@@ -8081,7 +8101,7 @@ This work consists of the file siunitx.dtx
% \begin{macrocode}
\cs_new_protected:Npn \@@_number_process_figures:n #1
{
- \int_compare:nNnTF \l_@@_process_precision_int > \c_zero
+ \int_compare:nNnTF \l_@@_process_precision_int > 0
{
\prop_if_in:NnT \l_@@_number_in_prop {#1}
{ \@@_number_process_figures_aux:n {#1} }
@@ -8155,7 +8175,7 @@ This work consists of the file siunitx.dtx
\tl_put_left:cV { l_@@_round_ #1 _out_tl } \l_@@_tmp_int
\bool_if:NF \l_@@_round_bool
{
- \int_compare:nNnF { \l_@@_tmp_int } = \c_zero
+ \int_compare:nNnF \l_@@_tmp_int = 0
{ \bool_set_true:N \l_@@_round_bool }
}
\bool_if:NT \l_@@_round_bool
@@ -8203,20 +8223,20 @@ This work consists of the file siunitx.dtx
% \begin{macrocode}
\cs_new_protected:Npn \@@_number_process_figures_integer:
{
- \int_compare:nNnT \l_@@_round_int > \c_zero
+ \int_compare:nNnT \l_@@_round_int > 0
{ \tl_put_left:Nn \l_@@_round_integer_out_tl { 0 } }
- \int_compare:nNnF \l_@@_round_int > \c_one
+ \int_compare:nNnF \l_@@_round_int > 1
{
\int_set:Nn \l_@@_tmp_int
{ \tl_head:N \l_@@_round_integer_in_tl }
\@@_number_process_round_up:
- \int_compare:nNnTF \l_@@_round_int = \c_one
+ \int_compare:nNnTF \l_@@_round_int = 1
{
- \int_compare:nNnT \l_@@_tmp_int > \c_four
+ \int_compare:nNnT \l_@@_tmp_int > 4
{ \bool_set_true:N \l_@@_round_bool }
}
{
- \int_compare:nNnT \l_@@_tmp_int = \c_ten
+ \int_compare:nNnT \l_@@_tmp_int = { 10 }
{
\bool_set_true:N \l_@@_round_bool
\int_zero:N \l_@@_tmp_int
@@ -8297,7 +8317,7 @@ This work consists of the file siunitx.dtx
\cs_new_protected:Npn \@@_number_process_fixed_aux_i:nnn #1#2#3
{
\prop_put:Nnn \l_@@_number_in_prop { exponent } { true }
- \int_compare:nNnTF { \l_@@_process_fixed_int } > { \c_zero }
+ \int_compare:nNnTF \l_@@_process_fixed_int > 0
{
\prop_put:NnV \l_@@_number_in_prop { exponent-integer }
\l_@@_process_fixed_int
@@ -8363,7 +8383,7 @@ This work consists of the file siunitx.dtx
% \begin{macrocode}
\cs_new_protected:Npn \@@_number_process_fixed_large:nnn #1
{
- \int_compare:nNnTF {#1} = \c_zero
+ \int_compare:nNnTF {#1} = 0
{ \@@_number_process_fixed_large_aux:nnn { } }
{ \@@_number_process_fixed_large_aux:nnn {#1} }
}
@@ -8438,8 +8458,7 @@ This work consists of the file siunitx.dtx
% once the target is known.
% \begin{macrocode}
\cs_new_protected:Npn \@@_number_process_integer_digits: {
- \int_compare:nNnT
- { \l_@@_process_integer_min_int } > { \c_zero }
+ \int_compare:nNnT \l_@@_process_integer_min_int > 0
{
\prop_get:NnNT \l_@@_number_in_prop { mantissa-integer }
\l_@@_tmpa_tl
@@ -8449,7 +8468,7 @@ This work consists of the file siunitx.dtx
\l_@@_process_integer_min_int
- \tl_count:N \l_@@_tmpa_tl
}
- \int_compare:nNnT { \l_@@_tmp_int } > { \c_zero }
+ \int_compare:nNnT \l_@@_tmp_int > 0
{
\tl_set:Nx \l_@@_tmpa_tl
{
@@ -8545,7 +8564,7 @@ This work consists of the file siunitx.dtx
}
\cs_new_protected:Npn \@@_number_process_places_aux_i:n #1
{
- \int_compare:nNnTF \l_@@_process_precision_int = \c_zero
+ \int_compare:nNnTF \l_@@_process_precision_int = 0
{ \@@_number_process_places_none:n {#1} }
{
\prop_get:NnNT \l_@@_number_in_prop { #1 -decimal }
@@ -8577,7 +8596,7 @@ This work consists of the file siunitx.dtx
\bool_set_true:N \l_@@_tmp_bool
\tl_map_inline:Nn \l_@@_tmpa_tl
{
- \int_compare:nNnF {##1} = \c_zero
+ \int_compare:nNnF {##1} = 0
{
\bool_set_false:N \l_@@_tmp_bool
\tl_map_break:
@@ -8594,7 +8613,7 @@ This work consists of the file siunitx.dtx
{
\prop_get:NnNT \l_@@_number_in_prop { #1 -decimal } \l_@@_tmpa_tl
{
- \int_compare:nNnTF { \tl_head:N \l_@@_tmpa_tl } > \c_four
+ \int_compare:nNnTF { \tl_head:N \l_@@_tmpa_tl } > 4
{
\prop_get:NnNTF \l_@@_number_in_prop { #1 -integer }
\l_@@_tmpb_tl
@@ -8604,7 +8623,7 @@ This work consists of the file siunitx.dtx
\bool_if:NF \l_@@_round_half_up_bool
{
\int_compare:nNnT
- { 0 \tl_tail:N \l_@@_tmpa_tl } = \c_zero
+ { 0 \tl_tail:N \l_@@_tmpa_tl } = 0
{
\int_if_odd:nT \l_@@_tmpb_tl
{
@@ -8639,7 +8658,7 @@ This work consists of the file siunitx.dtx
{
\int_sub:Nn \l_@@_round_int
{ \l_@@_process_precision_int }
- \int_compare:nNnTF \l_@@_round_int < \c_zero
+ \int_compare:nNnTF \l_@@_round_int < 0
{
\int_set:Nn \l_@@_round_int { - \l_@@_round_int }
\@@_number_process_pad:n {#1}
@@ -8704,7 +8723,7 @@ This work consists of the file siunitx.dtx
{ \tl_tail:N \l_@@_round_integer_in_tl }
\@@_number_process_round_up:
\bool_set_false:N \l_@@_round_bool
- \int_compare:nNnT \l_@@_tmp_int = \c_ten
+ \int_compare:nNnT \l_@@_tmp_int = { 10 }
{
\int_zero:N \l_@@_tmp_int
\bool_set_true:N \l_@@_round_bool
@@ -8751,7 +8770,7 @@ This work consists of the file siunitx.dtx
% \begin{macrocode}
\cs_new_protected:Npn \@@_number_process_round_decimal:
{
- \int_compare:nNnF \l_@@_round_int > \c_one
+ \int_compare:nNnF \l_@@_round_int > 1
{ \@@_number_process_round_decimal_aux: }
\tl_put_right:Nx \l_@@_round_discard_tl
{ \tl_head:N \l_@@_round_decimal_in_tl }
@@ -8772,22 +8791,21 @@ This work consists of the file siunitx.dtx
\int_set:Nn \l_@@_tmp_int
{ \tl_head:N \l_@@_round_decimal_in_tl }
\@@_number_process_round_up:
- \int_compare:nNnTF \l_@@_round_int = \c_one
+ \int_compare:nNnTF \l_@@_round_int = 1
{
- \int_compare:nNnT \l_@@_tmp_int > \c_four
+ \int_compare:nNnT \l_@@_tmp_int > 4
{
\bool_set_true:N \l_@@_round_bool
\bool_if:NF \l_@@_round_half_up_bool
{
\int_compare:nNnT
- { \l_@@_round_discard_tl \int_use:N \l_@@_tmp_int }
- = \c_five
+ { \l_@@_round_discard_tl \int_use:N \l_@@_tmp_int } = 5
{ \bool_set_true:N \l_@@_round_even_bool }
}
}
}
{
- \int_compare:nNnT \l_@@_tmp_int = \c_ten
+ \int_compare:nNnT \l_@@_tmp_int = { 10 }
{
\bool_set_true:N \l_@@_round_bool
\int_zero:N \l_@@_tmp_int
@@ -8936,7 +8954,7 @@ This work consists of the file siunitx.dtx
% \begin{macrocode}
\cs_new_protected:Npn
\@@_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
{ \@@_number_process_scientific_large:nnn {#1} {#2} {#3} }
{
\@@_number_if_zero:nTF {#1}
@@ -8966,7 +8984,7 @@ This work consists of the file siunitx.dtx
\quark_if_recursion_tail_stop_do:Nn ##3
{
\@@_number_process_scientific_aux_ii:nnn {##1} { ##2 #2 }
- { #3 + \c_one }
+ { #3 + 1 }
}
\@@_number_process_scientific_large_loop:nNN { ##1 ##2 } ##3
}
@@ -9338,7 +9356,7 @@ This work consists of the file siunitx.dtx
% \begin{macro}[aux]{\@@_number_process_zero_to_integer_aux:n}
% Look for a decimal part which is simply zero, and if found delete it.
% \begin{macrocode}
-\cs_new_protected_nopar:Npn \@@_number_process_zero_to_integer:
+\cs_new_protected:Npn \@@_number_process_zero_to_integer:
{
\bool_if:NT \l_@@_zero_decimal_to_integer_bool
{
@@ -11424,7 +11442,7 @@ This work consists of the file siunitx.dtx
% Without this, horrible things happen with \pkg{memoir} and
% \pkg{hyperref}.
% \begin{macrocode}
-\cs_new_protected_nopar:Npn \@@_unit_create_empty_functions:
+\cs_new_protected:Npn \@@_unit_create_empty_functions:
{
\@@_unit_create_functions_aux_i:
\seq_map_function:NN \l_@@_declare_list_seq
@@ -11448,7 +11466,7 @@ This work consists of the file siunitx.dtx
% }
% Creation of macros essentially involves picking up a couple of loops.
% \begin{macrocode}
-\cs_new_protected_nopar:Npn \@@_unit_create_functions:
+\cs_new_protected:Npn \@@_unit_create_functions:
{
\@@_unit_create_functions_aux_i:
\bool_if:NT \l_@@_create_overwrite_bool
@@ -11466,14 +11484,14 @@ This work consists of the file siunitx.dtx
\bool_if:NT \l_@@_create_xspace_bool
{ \RequirePackage { xspace } }
}
-\cs_new_protected_nopar:Npn \@@_unit_create_functions_aux_i:
+\cs_new_protected:Npn \@@_unit_create_functions_aux_i:
{
\@ifpackageloaded { soulpos }
{
\@ifpackageloaded { soul }
{ }
{
- \cs_set_protected_nopar:Npn \@@_unit_create_functions_aux_ii:
+ \cs_set_protected:Npn \@@_unit_create_functions_aux_ii:
{
\cs_undefine:N \hl
\cs_undefine:N \ul
@@ -11482,7 +11500,7 @@ This work consists of the file siunitx.dtx
}
{ }
}
-\cs_new_protected_nopar:Npn \@@_unit_create_functions_aux_ii: { }
+\cs_new_protected:Npn \@@_unit_create_functions_aux_ii: { }
% \end{macrocode}
% \end{macro}
% \end{macro}
@@ -11988,7 +12006,7 @@ This work consists of the file siunitx.dtx
\bool_new:N \l_@@_per_fraction_bool
\tl_new:N \l_@@_per_mode_tl
\bool_new:N \l_@@_power_number_bool
-\bool_new:N \l_@@_two_parts_bool
+\bool_new:N \l_@@_per_two_parts_bool
\tl_new:N \l_@@_qualifier_mode_tl
% \end{macrocode}
%\end{macro}
@@ -12638,7 +12656,7 @@ This work consists of the file siunitx.dtx
\tl_put_right:NV \l_@@_unit_current_tl \l_@@_tmpa_tl
\tl_put_right:NV \l_@@_unit_current_tl \l_@@_bracket_close_tl
}
-\cs_new_protected_nopar:Npn \@@_unit_format_qualifier_phrase:
+\cs_new_protected:Npn \@@_unit_format_qualifier_phrase:
{
\tl_put_right:NV \l_@@_unit_current_tl \l_@@_qualifier_phrase_tl
\tl_put_right:NV \l_@@_unit_current_tl \l_@@_tmpa_tl
@@ -12746,6 +12764,7 @@ This work consists of the file siunitx.dtx
% \begin{macrocode}
\bool_new:N \l_@@_product_brackets_bool
\bool_new:N \l_@@_product_power_bool
+\bool_new:N \l_@@_product_repeat_bool
\bool_new:N \l_@@_number_unit_repeat_bool
% \end{macrocode}
%\end{macro}
@@ -13142,7 +13161,7 @@ This work consists of the file siunitx.dtx
{
\bool_set_true:N \l_@@_list_first_bool
\tl_clear:N \l_@@_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} \@@_list_numbers_aux_ii:n
\l_@@_list_tl
@@ -13150,7 +13169,7 @@ This work consists of the file siunitx.dtx
\l_@@_list_current_tl
}
{
- \int_compare:nNnTF { \tl_count:n {#1} } = \c_two
+ \int_compare:nNnTF { \tl_count:n {#1} } = 2
{ \@@_list_numbers_aux:nn #1 }
{ \@@_combined_output:n #1 }
}
@@ -13821,7 +13840,7 @@ This work consists of the file siunitx.dtx
% A fixed skip of one \texttt{fill}.
% \begin{macrocode}
\skip_new:N \c_@@_one_fill_skip
-\skip_set:Nn \c_@@_one_fill_skip { \c_zero_dim plus 1 fill }
+\skip_set:Nn \c_@@_one_fill_skip { 0pt plus 1fill }
% \end{macrocode}
% \end{variable}
%
@@ -13835,7 +13854,7 @@ This work consists of the file siunitx.dtx
{
\cs_new_protected:Npn \@@_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
}
}
@@ -13935,7 +13954,7 @@ This work consists of the file siunitx.dtx
center .code:n =
{
\skip_set:Nn \l_@@_table_unit_align_skip
- { \c_zero_dim plus 0.5 fill }
+ { 0pt plus 0.5fill }
},
table-unit-alignment /
left .code:n =
@@ -13944,7 +13963,7 @@ This work consists of the file siunitx.dtx
right .code:n =
{
\skip_set:Nn \l_@@_table_unit_align_skip
- { \c_zero_dim plus 1 fill }
+ { 0pt plus 1fill }
}
}
\keys_set:nn { siunitx } { table-unit-alignment = center }
@@ -14107,7 +14126,7 @@ This work consists of the file siunitx.dtx
center .code:n =
{
\skip_set:Nn \l_@@_table_number_align_skip
- { \c_zero_dim plus 0.5 fill }
+ { 0pt plus 0.5fill }
\cs_set_eq:NN \@@_table_print_S_direct_main:
\@@_table_print_S_direct_reserved:
\cs_set_eq:NN \@@_table_print_S_parsed:
@@ -14117,7 +14136,7 @@ This work consists of the file siunitx.dtx
center-decimal-marker .code:n =
{
\skip_set:Nn \l_@@_table_number_align_skip
- { \c_zero_dim plus 0.5 fill }
+ { 0pt plus 0.5fill }
\cs_set_eq:NN \@@_table_print_S_direct_main:
\@@_table_print_S_direct_centered:
\cs_set_eq:NN \@@_table_print_S_parsed:
@@ -14136,7 +14155,7 @@ This work consists of the file siunitx.dtx
right .code:n =
{
\skip_set:Nn \l_@@_table_number_align_skip
- { \c_zero_dim plus 1 fill }
+ { 0pt plus 1fill }
\cs_set_eq:NN \@@_table_print_S_direct_main:
\@@_table_print_S_direct_reserved:
\cs_set_eq:NN \@@_table_print_S_parsed:
@@ -14149,7 +14168,7 @@ This work consists of the file siunitx.dtx
center .code:n =
{
\skip_set:Nn \l_@@_table_text_align_skip
- { \c_zero_dim plus 0.5 fill }
+ { 0pt plus 0.5fill }
},
table-text-alignment /
left .code:n =
@@ -14158,7 +14177,7 @@ This work consists of the file siunitx.dtx
right .code:n =
{
\skip_set:Nn \l_@@_table_text_align_skip
- { \c_zero_dim plus 1 fill }
+ { 0pt plus 1fill }
},
table-comparator .choice:,
table-comparator /
@@ -14170,7 +14189,7 @@ This work consists of the file siunitx.dtx
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_@@_table_model_prop { mantissa-decimal }
\prop_remove:Nn \l_@@_table_model_prop { mantissa-decimal-raw }
@@ -14195,7 +14214,7 @@ This work consists of the file siunitx.dtx
},
table-figures-exponent .code:n =
{
- \int_compare:nNnTF {#1} = \c_zero
+ \int_compare:nNnTF {#1} = 0
{ \prop_remove:Nn \l_@@_table_model_prop { exponent-integer } }
{
\prop_put:Nnx \l_@@_table_model_prop { exponent-integer }
@@ -14205,7 +14224,7 @@ This work consists of the file siunitx.dtx
},
table-figures-integer .code:n =
{
- \int_compare:nNnTF {#1} = \c_zero
+ \int_compare:nNnTF {#1} = 0
{
\prop_remove:Nn \l_@@_table_model_prop { mantissa-integer }
\prop_if_in:NnTF \l_@@_table_model_prop { mantissa-decimal }
@@ -14223,7 +14242,7 @@ This work consists of the file siunitx.dtx
},
table-figures-uncertainty .code:n =
{
- \int_compare:nNnTF {#1} = \c_zero
+ \int_compare:nNnTF {#1} = 0
{ \prop_remove:Nn \l_@@_table_model_prop { mantissa-uncertainty } }
{
\prop_put:Nnx \l_@@_table_model_prop { mantissa-uncertainty }
@@ -15154,7 +15173,7 @@ This work consists of the file siunitx.dtx
\char_set_active_eq:NN #1 \@@_table_print_S_direct_centered_begin:
\char_set_mathcode:nn { `#1 } { "8000 }
}
-\cs_new_protected_nopar:Npn \@@_table_print_S_direct_centered_begin:
+\cs_new_protected:Npn \@@_table_print_S_direct_centered_begin:
{
\c_math_toggle_token
\c_group_end_token
@@ -15251,7 +15270,7 @@ This work consists of the file siunitx.dtx
\char_set_active_eq:NN #1 \@@_table_print_S_direct_reserved_begin:
\char_set_mathcode:nn { `#1 } { "8000 }
}
-\cs_new_protected_nopar:Npn \@@_table_print_S_direct_reserved_begin:
+\cs_new_protected:Npn \@@_table_print_S_direct_reserved_begin:
{
\c_math_toggle_token
\c_group_end_token
@@ -15611,7 +15630,7 @@ This work consists of the file siunitx.dtx
{ set~thousands~separator = { \exp_not:V \l_@@_group_sep_tl } }
\clist_put_right:Nx \l_@@_pgf_link_clist
{
- min~exponent~for~1000~sep = \int_eval:n { \l_@@_group_min_int - \c_one }
+ min~exponent~for~1000~sep = \int_eval:n { \l_@@_group_min_int - 1 }
}
\bool_if:nF
{
@@ -15659,6 +15678,9 @@ This work consists of the file siunitx.dtx
\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. }
@@ -16658,12 +16680,12 @@ This work consists of the file siunitx.dtx
{ \cs_set_eq:NN \@@_load_binary: \prg_do_nothing: } ,
binary-units .default:n = true
}
-\cs_new_protected_nopar:Npn \@@_load_abbreviations:
+\cs_new_protected:Npn \@@_load_abbreviations:
{
\@onefilewithoptions { siunitx-abbreviations } [ ] [ ]
\c_@@_configuration_ext_tl
}
-\cs_new_protected_nopar:Npn \@@_load_binary:
+\cs_new_protected:Npn \@@_load_binary:
{
\@onefilewithoptions { siunitx-binary } [ ] [ ]
\c_@@_configuration_ext_tl
@@ -16743,7 +16765,7 @@ This work consists of the file siunitx.dtx
% \end{macrocode}
%
% \begin{macrocode}
-\ProvidesExplFile {siunitx-version-1.cfg} {2016/03/01} {2.6q}
+\ProvidesExplFile {siunitx-version-1.cfg} {2016/08/22} {2.6r}
{siunitx: Version 1 settings}
% \end{macrocode}
%
@@ -17685,7 +17707,7 @@ This work consists of the file siunitx.dtx
% \end{macrocode}
%
% \begin{macrocode}
-\ProvidesExplFile {siunitx-abbreviations.cfg} {2016/03/01} {2.6q}
+\ProvidesExplFile {siunitx-abbreviations.cfg} {2016/08/22} {2.6r}
{siunitx: Abbreviated units}
% \end{macrocode}
%
@@ -17867,7 +17889,7 @@ This work consists of the file siunitx.dtx
% \end{macrocode}
%
% \begin{macrocode}
-\ProvidesExplFile {siunitx-binary.cfg} {2016/03/01} {2.6q}
+\ProvidesExplFile {siunitx-binary.cfg} {2016/08/22} {2.6r}
{siunitx: Binary units}
% \end{macrocode}
%