From 0c1a0cfc9a845a2844c9abf91aa39fec61b3a32a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 6 Mar 2017 21:59:59 +0000 Subject: siunitx (6mar17) git-svn-id: svn://tug.org/texlive/trunk@43419 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/siunitx/siunitx-abbreviations.cfg | 2 +- .../tex/latex/siunitx/siunitx-binary.cfg | 2 +- .../tex/latex/siunitx/siunitx-version-1.cfg | 2 +- Master/texmf-dist/tex/latex/siunitx/siunitx.sty | 24 +++++++++++++++++++++- 4 files changed, 26 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/tex/latex/siunitx') diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx-abbreviations.cfg b/Master/texmf-dist/tex/latex/siunitx/siunitx-abbreviations.cfg index 5f1b507d2b8..0d75f9cf30f 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/02/19} {2.7d} +\ProvidesExplFile {siunitx-abbreviations.cfg} {2017/03/06} {2.7e} {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 68dbd215652..1fea4f53c13 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/02/19} {2.7d} +\ProvidesExplFile {siunitx-binary.cfg} {2017/03/06} {2.7e} {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 6693efb8119..6344b7853b5 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/02/19} {2.7d} +\ProvidesExplFile {siunitx-version-1.cfg} {2017/03/06} {2.7e} {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 64ad9772292..cec270fad49 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} {2017/02/19} {2.7d} +\ProvidesExplPackage {siunitx} {2017/03/06} {2.7e} {A comprehensive (SI) units package} \@ifpackagelater { expl3 } { 2015/09/11 } { } @@ -6131,6 +6131,8 @@ { table-format .code:n = { + \bool_set_eq:NN \l__siunitx_process_plus_saved_bool \l__siunitx_process_plus_bool + \bool_set_true:N \l__siunitx_process_plus_bool \__siunitx_number_in_parse:n {#1} \prop_set_eq:NN \l__siunitx_table_model_prop \l__siunitx_number_in_prop \tl_clear:N \l__siunitx_tmpa_tl @@ -6152,17 +6154,37 @@ \clist_put_right:Nx \l__siunitx_tmpa_tl { table-figures-uncertainty = \l__siunitx_tmpb_tl } } + \prop_if_in:NnTF \l__siunitx_number_in_prop { mantissa-sign } + { + \clist_put_right:Nn \l__siunitx_tmpa_tl + { table-sign-mantissa =true } + } + { + \clist_put_right:Nn \l__siunitx_tmpa_tl + { table-sign-mantissa =false } + } \prop_get:NnNT \l__siunitx_number_in_prop { exponent-integer } \l__siunitx_tmpb_tl { \clist_put_right:Nx \l__siunitx_tmpa_tl { table-figures-exponent = \l__siunitx_tmpb_tl } } + \prop_if_in:NnTF \l__siunitx_number_in_prop { exponent-sign } + { + \clist_put_right:Nn \l__siunitx_tmpa_tl + { table-sign-exponent =true } + } + { + \clist_put_right:Nn \l__siunitx_tmpa_tl + { table-sign-exponent =false } + } \clist_put_right:Nn \l__siunitx_tmpa_tl { table-number-alignment = center } \keys_set:nV { siunitx } \l__siunitx_tmpa_tl + \bool_set_eq:NN \l__siunitx_process_plus_bool \l__siunitx_process_plus_saved_bool } } +\bool_new:N \l__siunitx_process_plus_saved_bool \cs_new_protected:Npn \__siunitx_table_print_S: { \bool_if:NTF \l__siunitx_table_collect_pre_bool -- cgit v1.2.3