summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/siunitx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-03-20 22:14:10 +0000
committerKarl Berry <karl@freefriends.org>2011-03-20 22:14:10 +0000
commit24c374f45330336f673cbaa3bb08401d0957489a (patch)
treeefab29057e20be093c82e96627c2350d80449880 /Master/texmf-dist/tex/latex/siunitx
parent37600df1d07111cae53fa34af6a84510437d2ef2 (diff)
siunitx 2.1m (20mar11)
git-svn-id: svn://tug.org/texlive/trunk@21772 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/siunitx')
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg1
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/config/siunitx-binary.cfg2
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/config/siunitx-version-1.cfg2
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/siunitx.sty22
4 files changed, 19 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg
index 219f0305d0e..12c6de9e954 100644
--- a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg
+++ b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg
@@ -56,6 +56,7 @@
\DeclareSIUnit \kW { \kilo \watt }
\DeclareSIUnit \MW { \mega \watt }
\DeclareSIUnit \GW { \giga \watt }
+\DeclareSIUnit \J { \joule }
\DeclareSIUnit \kJ { \kilo \joule }
\DeclareSIUnit \eV { \electronvolt }
\DeclareSIUnit \meV { \milli \electronvolt }
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 7554e07dc88..a9cd286b580 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/02/10} {2.1l}
+\ProvidesExplFile {siunitx-binary.cfg} {2011/03/20} {2.1m}
{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 d589b71592d..d5ac00dd786 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/02/10} {2.1l}
+\ProvidesExplFile {siunitx-version-1.cfg} {2011/03/20} {2.1m}
{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 becdaf64aac..66a3a598caf 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/02/10} {2.1l}
+\ProvidesExplPackage {siunitx} {2011/03/20} {2.1m}
{A comprehensive (SI) units package}
\cs_if_exist:NTF \msg_set:nnnn
{
@@ -1913,7 +1913,7 @@
\l_siunitx_tmpa_tl
\quark_if_no_value:NF \l_siunitx_tmpa_tl
{
- \int_compare:nNnT
+ \int_compare:nNnTF
{ \tl_head:V \l_siunitx_tmpa_tl } > { 4 }
{
\prop_get:NnN \l_siunitx_number_in_prop { #1 -integer }
@@ -1930,6 +1930,13 @@
{ #1 -integer } \l_siunitx_tmpa_tl
}
}
+ {
+ \prop_if_in:NnF \l_siunitx_number_in_prop { #1 -integer }
+ {
+ \prop_put:Nnn \l_siunitx_number_in_prop
+ { #1 -integer } { 0 }
+ }
+ }
}
\prop_del:Nn \l_siunitx_number_in_prop { #1 -decimal }
\prop_del:Nn \l_siunitx_number_in_prop { #1 -decimal-marker }
@@ -3835,7 +3842,10 @@
\siunitx_unit_if_literal:nTF {#1}
{
\bool_if:NTF \l_siunitx_unit_forbid_literal_bool
- { \msg_error:nnx { siunitx } { literal-unit } {#1} }
+ {
+ \msg_error:nnx { siunitx } { literal-unit }
+ { \exp_not:n {#1} }
+ }
{ \siunitx_unit_format_literal:n {#1} }
}
{
@@ -4998,11 +5008,11 @@
\siunitx_table_collect_get:
\cs_set_nopar:Npn \peek_execute_branches:
{
- \if_catcode:w \exp_not:N \l_peek_token \c_group_begin_token
+ \tex_ifcat:D \exp_not:N \l_peek_token \c_group_begin_token
\exp_after:wN \siunitx_table_collect_braced:n
- \else:
+ \tex_else:D
\exp_after:wN \siunitx_table_collect_not_braced:N
- \fi:
+ \tex_fi:D
}
\peek_after:NN \peek_ignore_spaces_execute_branches:
}