diff options
author | Karl Berry <karl@freefriends.org> | 2011-03-31 23:14:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-03-31 23:14:57 +0000 |
commit | 6b5cac75927920639405a1c1ba5cac760861b184 (patch) | |
tree | b047fd0933ba1942f56bc3215424479a7830b66d /Master/texmf-dist/tex/latex/siunitx | |
parent | a9d7ac3840bf0bbafbadea6b8f9a3d866bfcacf2 (diff) |
siunitx 2.1n (31mar11)
git-svn-id: svn://tug.org/texlive/trunk@21904 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/siunitx')
3 files changed, 21 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-binary.cfg b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-binary.cfg index a9cd286b580..b947883296c 100644 --- a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-binary.cfg +++ b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-binary.cfg @@ -13,7 +13,7 @@ %% See http://www.latex-project.org/lppl.txt %% --------------------------------------------------------------- %% -\ProvidesExplFile {siunitx-binary.cfg} {2011/03/20} {2.1m} +\ProvidesExplFile {siunitx-binary.cfg} {2011/03/31} {2.1n} {siunitx: Binary units} \DeclareBinaryPrefix \kibi { Ki } { 10 } \DeclareBinaryPrefix \mebi { Mi } { 20 } diff --git a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-version-1.cfg b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-version-1.cfg index d5ac00dd786..98a76a63af2 100644 --- a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-version-1.cfg +++ b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-version-1.cfg @@ -13,7 +13,7 @@ %% See http://www.latex-project.org/lppl.txt %% --------------------------------------------------------------- %% -\ProvidesExplFile {siunitx-version-1.cfg} {2011/03/20} {2.1m} +\ProvidesExplFile {siunitx-version-1.cfg} {2011/03/31} {2.1n} {siunitx: Version 1 settings} \keys_set:nn { siunitx } { load-configurations = { abbreviations , binary } } diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty index 66a3a598caf..7f67cd6fc27 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} -\ProvidesExplPackage {siunitx} {2011/03/20} {2.1m} +\ProvidesExplPackage {siunitx} {2011/03/31} {2.1n} {A comprehensive (SI) units package} \cs_if_exist:NTF \msg_set:nnnn { @@ -1602,8 +1602,20 @@ } } \cs_new_protected_nopar:Npn \siunitx_number_process_figures:n #1 { - \prop_if_in:NnT \l_siunitx_number_in_prop {#1} - { \siunitx_number_process_figures_aux:n {#1} } + \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} } + } + { + \prop_del:Nn \l_siunitx_number_in_prop { #1 -sign } + \prop_put:Nnn \l_siunitx_number_in_prop { #1 -integer } { 0 } + \prop_del:Nn \l_siunitx_number_in_prop { #1 -decimal } + \bool_if:NF \l_siunitx_process_int_to_dec_bool + { + \prop_del:Nn \l_siunitx_number_in_prop { #1 -decimal-marker } + } + } } \cs_new_protected_nopar:Npn \siunitx_number_process_figures_aux:n #1 { \siunitx_number_process_figures_init:n {#1} @@ -1939,7 +1951,10 @@ } } \prop_del:Nn \l_siunitx_number_in_prop { #1 -decimal } - \prop_del:Nn \l_siunitx_number_in_prop { #1 -decimal-marker } + \bool_if:NF \l_siunitx_process_int_to_dec_bool + { + \prop_del:Nn \l_siunitx_number_in_prop { #1 -decimal-marker } + } } { \prop_get:NnN \l_siunitx_number_in_prop { #1 -decimal } |