summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/siunitx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-06-09 20:33:44 +0000
committerKarl Berry <karl@freefriends.org>2021-06-09 20:33:44 +0000
commit7273365c115cd3b4ad4f6da7341fec0332645336 (patch)
treec37e980f63247a4d8b7b03aceabc6932b1ae2da7 /Master/texmf-dist/tex/latex/siunitx
parent8f2c50e22174c547bf9893d6b1bdd53bce8b31bd (diff)
siunitx (9jun21)
git-svn-id: svn://tug.org/texlive/trunk@59534 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/siunitx')
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/siunitx.sty21
1 files changed, 16 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
index 0cbaae91a00..3d9fa8db1a4 100644
--- a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
+++ b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
@@ -42,7 +42,7 @@
}%
\endinput
}%
-\ProvidesExplPackage {siunitx} {2021-06-07} {3.0.11}
+\ProvidesExplPackage {siunitx} {2021-06-09} {3.0.12}
{A comprehensive (SI) units package}
\msg_new:nnnn { siunitx } { incompatible-package }
{ Package~'#1'~incompatible. }
@@ -2156,12 +2156,13 @@
}
\cs_new_protected:Npn \__siunitx_number_process:nnnnnnnNN #1#2#3#4#5#6#7#8#9
{
- \bool_lazy_and:nnF
+ \bool_lazy_and:nnTF
{ \str_if_eq_p:nn {#3} { 0 } }
{
\str_if_eq_p:ee
{ \exp_not:n {#4} } { \prg_replicate:nn { \tl_count:n {#4} } { 0 } }
}
+ { \__siunitx_number_round:NN #8 #9 }
{
\__siunitx_number_exponent:NN #8 #9
\__siunitx_number_round:NN #9 #9
@@ -2745,6 +2746,17 @@
}
\cs_new:Npn \__siunitx_number_round_figures:nnnnnnn #1#2#3#4#5#6#7
{
+ \bool_lazy_and:nnTF
+ { \str_if_eq_p:nn {#3} { 0 } }
+ {
+ \str_if_eq_p:ee
+ { \exp_not:n {#4} } { \prg_replicate:nn { \tl_count:n {#4} } { 0 } }
+ }
+ { \exp_not:n { {#1} {#2} {#3} {#4} {#5} {#6} {#7} } }
+ { \__siunitx_number_round_figures_aux:nnnnnnn {#1} {#2} {#3} {#4} {#5} {#6} {#7} }
+ }
+\cs_new:Npn \__siunitx_number_round_figures_aux:nnnnnnn #1#2#3#4#5#6#7
+ {
\tl_if_blank:nTF {#5}
{
\int_compare:nNnTF \l__siunitx_number_round_precision_int > 0
@@ -6057,7 +6069,6 @@
\prg_return_true:
}
{
- \show\l__siunitx_symbol_tmpa_tl \show\l__siunitx_symbol_tmpb_tl
\group_end:
\prg_return_false:
}
@@ -7140,8 +7151,8 @@
Unit~macro~#1~has~been~deprecated~in~this~release. \\ \\
The~BIPM~have~removed~this~unit~from~the~SI~Brochure.~
You~should~define~it~yourself~using~\token_to_str:N \DeclareSIUnit\ %
- in~your~source. The~current~definition~is\\ \\
- \token_to_str:N \DeclareSIUnit \{ #2 \}
+ in~your~source.~The~current~definition~is\\ \\
+ \token_to_str:N \DeclareSIUnit #1 \{ #2 \}
}
\cs_gset_protected:Npn \__siunitx_emulation_tmp:w #1#2
{