diff options
author | Karl Berry <karl@freefriends.org> | 2017-05-19 21:05:05 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-05-19 21:05:05 +0000 |
commit | 7482e30efe28ea00047350822337d8a4defbd87a (patch) | |
tree | ddbef45a215e06c1d6563c4e4a9e1594e9bfea58 /Master/texmf-dist/tex/latex | |
parent | f8c0d78dfb667dc3616ccb52c746d8a365a18985 (diff) |
siunitx (19may17)
git-svn-id: svn://tug.org/texlive/trunk@44428 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
4 files changed, 35 insertions, 58 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx-abbreviations.cfg b/Master/texmf-dist/tex/latex/siunitx/siunitx-abbreviations.cfg index cb6fad4c7a9..7181219793d 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} {2017/03/23} {2.7f} +\ProvidesExplFile {siunitx-abbreviations.cfg} {2017/05/19} {2.7g} {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 e36b7ba4a75..acaaf9fda54 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} {2017/03/23} {2.7f} +\ProvidesExplFile {siunitx-binary.cfg} {2017/05/19} {2.7g} {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 b3f5bbfbe8f..c66c1f3610b 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} {2017/03/23} {2.7f} +\ProvidesExplFile {siunitx-version-1.cfg} {2017/05/19} {2.7g} {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 3794491ca28..ed8c1cd37f9 100644 --- a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty +++ b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty @@ -15,9 +15,9 @@ %% \RequirePackage{expl3}[2015/09/11] \RequirePackage{xparse} -\ProvidesExplPackage {siunitx} {2017/03/23} {2.7f} +\ProvidesExplPackage {siunitx} {2017/05/19} {2.7g} {A comprehensive (SI) units package} -\@ifpackagelater { expl3 } { 2015/09/11 } +\@ifpackagelater { expl3 } { 2015/11/15 } { } { \PackageError { siunitx } { Support~package~expl3~too~old } @@ -321,15 +321,15 @@ \cs_generate_variant:Nn \tl_replace_all:Nnn { NnV } \prg_new_conditional:Npnn \__siunitx_cs_if_tl:N #1 { T, F , TF , p } { - \bool_if:nTF + \bool_lazy_and:nnTF { \tl_if_empty_p:f { \token_get_prefix_spec:N #1 \token_get_arg_spec:N #1 } - && ! \cs_if_exist_p:c { \cs_to_str:N #1 ~ } } + { \bool_not_p:n { \cs_if_exist_p:c { \cs_to_str:N #1 ~ } } } { \prg_return_true: } { \prg_return_false: } } @@ -2497,11 +2497,9 @@ } \cs_new_protected:Npn \__siunitx_number_process_round_tidy:n #1 { - \bool_if:nTF - { - \__siunitx_number_if_zero_p:V \l__siunitx_round_integer_out_tl - && \__siunitx_number_if_zero_p:V \l__siunitx_round_decimal_out_tl - } + \bool_lazy_and:nnTF + { \__siunitx_number_if_zero_p:V \l__siunitx_round_integer_out_tl } + { \__siunitx_number_if_zero_p:V \l__siunitx_round_decimal_out_tl } { \str_if_eq:VnTF \l__siunitx_process_round_min_tl { 0 } { @@ -3632,11 +3630,9 @@ } } \cs_new_protected:Npn \__siunitx_number_output_parts: { - \bool_if:nTF - { - \tl_if_empty_p:N \l__siunitx_pre_unit_tl && - \tl_if_empty_p:N \l__siunitx_unit_tl - } + \bool_lazy_and:nnTF + { \tl_if_empty_p:N \l__siunitx_pre_unit_tl } + { \tl_if_empty_p:N \l__siunitx_unit_tl } { \__siunitx_number_output_single: } { \__siunitx_number_output_parts_aux: } } @@ -3690,11 +3686,9 @@ \cs_new_protected:Npn \__siunitx_number_output_product: { \bool_if:NTF \l__siunitx_product_brackets_bool { - \bool_if:nTF - { - \tl_if_empty_p:N \l__siunitx_pre_unit_tl && - \tl_if_empty_p:N \l__siunitx_unit_tl - } + \bool_lazy_and:nnTF + { \tl_if_empty_p:N \l__siunitx_pre_unit_tl } + { \tl_if_empty_p:N \l__siunitx_unit_tl } { \__siunitx_number_output_product_aux: } { \__siunitx_number_output_product_brackets: } } @@ -3812,11 +3806,9 @@ \__siunitx_number_format: } \cs_new_protected:Npn \__siunitx_number_output_single: { - \bool_if:nF - { - \tl_if_empty_p:N \l__siunitx_pre_unit_tl && - \tl_if_empty_p:N \l__siunitx_unit_tl - } + \bool_lazy_and:nnF + { \tl_if_empty_p:N \l__siunitx_pre_unit_tl } + { \tl_if_empty_p:N \l__siunitx_unit_tl } { \prop_if_in:NnF \l__siunitx_number_out_prop { exponent } { \__siunitx_number_format_brackets:n { result } } @@ -3992,22 +3984,18 @@ } } \cs_new_protected:Npn \__siunitx_angle_zero_fill: { - \bool_if:nT - { - \prop_if_empty_p:N \l__siunitx_angle_second_prop && - \l__siunitx_angle_second_zero_bool - } + \bool_lazy_and:nnT + { \l__siunitx_angle_second_zero_bool } + { \prop_if_empty_p:N \l__siunitx_angle_second_prop } { \prop_put:Nnn \l__siunitx_angle_second_prop { mantissa } { true } \prop_put:Nnn \l__siunitx_angle_second_prop { mantissa-integer } { 0 } } - \bool_if:nT - { - \prop_if_empty_p:N \l__siunitx_angle_minute_prop && - \l__siunitx_angle_minute_zero_bool - } + \bool_lazy_and:nnT + { \l__siunitx_angle_minute_zero_bool } + { \prop_if_empty_p:N \l__siunitx_angle_minute_prop } { \prop_put:Nnn \l__siunitx_angle_minute_prop { mantissa } { true } @@ -4015,11 +4003,9 @@ { 0 } \__siunitx_angle_sign_shuffle:nn { second } { minute } } - \bool_if:nT - { - \prop_if_empty_p:N \l__siunitx_angle_degree_prop && - \l__siunitx_angle_degree_zero_bool - } + \bool_lazy_and:nnT + { \l__siunitx_angle_degree_zero_bool } + { \prop_if_empty_p:N \l__siunitx_angle_degree_prop } { \prop_put:Nnn \l__siunitx_angle_degree_prop { mantissa } { true } @@ -4896,11 +4882,7 @@ { \char_generate:nn { #1 } { 12 } } {#2} } -\bool_if:nF - { - \sys_if_engine_luatex_p: || - \sys_if_engine_xetex_p: - } +\bool_lazy_or:nnF { \sys_if_engine_luatex_p: } { \sys_if_engine_xetex_p: } { \AtBeginDocument { @@ -5120,11 +5102,9 @@ \tl_set:Nx \l__siunitx_unit_tl { \exp_not:V \l__siunitx_unit_numerator_tl - \bool_if:nF - { - \tl_if_empty_p:N \l__siunitx_unit_numerator_tl || - \tl_if_empty_p:N \l__siunitx_unit_denominator_tl - } + \bool_lazy_or:nnF + { \tl_if_empty_p:N \l__siunitx_unit_numerator_tl } + { \tl_if_empty_p:N \l__siunitx_unit_denominator_tl } { \exp_not:N \l__siunitx_unit_product_tl } @@ -5900,7 +5880,7 @@ { \skip_horizontal:n { \c__siunitx_one_fill_skip - ##1 } \tex_kern:D \c_zero_skip - \hbox_set_end: + \c_group_end_token \__siunitx_table_colortbl_correction: } } @@ -7086,11 +7066,8 @@ { min~exponent~for~1000~sep = \int_eval:n { \l__siunitx_group_min_int - 1 } } - \bool_if:nF - { - \l__siunitx_group_decimal_bool || - \l__siunitx_group_integer_bool - } + \bool_lazy_or:nnF + { \l__siunitx_group_decimal_bool } { \l__siunitx_group_integer_bool } { \clist_put_right:Nn \l__siunitx_pgf_link_clist { min~exponent~for~1000~sep = 999 } |