summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-10-15 22:17:35 +0000
committerKarl Berry <karl@freefriends.org>2011-10-15 22:17:35 +0000
commit228f8e92cce5ebd61dd02f201b978b0e4c2d6ca9 (patch)
tree46a6637a7de3eaa6317ccb00f4bbacbe235de055 /Master
parent23cca61b04d9978e80e6cd73c7ba8613c4525a75 (diff)
siunitx 2.3h (15oct11)
git-svn-id: svn://tug.org/texlive/trunk@24295 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/siunitx/siunitx.pdfbin564583 -> 564682 bytes
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx.dtx44
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg2
-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.sty35
6 files changed, 39 insertions, 46 deletions
diff --git a/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf b/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
index 0ce14ffe9bd..c26fed17cce 100644
--- a/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
+++ b/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
index 4aadfc99010..45af72af81d 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
+++ b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
@@ -550,6 +550,9 @@ This work consists of the file siunitx.dtx
% number is invalid}
%\changes{v2.3g}{2011/10/06}{Deal with erroneous leading zero in some
% fixed exponent cases}
+%\changes{v2.3h}{2011/10/14}{Ensure math mode for exponent products in all
+% circumstances}
+%\changes{v2.3h}{2011/10/14}{Improvements to output when using \pkg{tex4ht}}
%
%\begin{abstract}
% Physical quantities have both numbers and units, and each physical
@@ -4899,7 +4902,7 @@ This work consists of the file siunitx.dtx
%
% The usual preliminaries.
% \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2011/10/06} {2.3g}
+\ProvidesExplPackage {siunitx} {2011/10/14} {2.3h}
{A comprehensive (SI) units package}
% \end{macrocode}
%
@@ -5391,7 +5394,8 @@ This work consists of the file siunitx.dtx
\@ifpackageloaded { tex4ht }
{
\cs_set_eq:NN \siunitx_ensuremath:n \use:n
- \keys_set:nn { siunitx } { mode = text }
+ \cs_set_eq:NN \siunitx_print_text_super:n \textsuperscript
+ \keys_set:nn { siunitx } { qualifier-mode = brackets, mode = text }
}
{ }
}
@@ -9194,17 +9198,15 @@ This work consists of the file siunitx.dtx
\l_siunitx_tmpa_tl
\tl_if_empty:NT \l_siunitx_output_exponent_tl
{
- \bool_if:NTF \l_siunitx_tight_bool
- {
- \tl_set:Nx \l_siunitx_tmpb_tl
- { { \exp_not:V \l_siunitx_exponent_product_tl } }
- }
+ \tl_put_right:Nx \l_siunitx_tmpa_tl
{
- \tl_set:Nx \l_siunitx_tmpb_tl
- { { } \exp_not:V \l_siunitx_exponent_product_tl { } }
+ \exp_not:N \ensuremath
+ {
+ \bool_if:NTF \l_siunitx_tight_bool
+ { { \exp_not:V \l_siunitx_exponent_product_tl } }
+ { { } \exp_not:V \l_siunitx_exponent_product_tl { } }
+ }
}
- \siunitx_tl_put_right_math:NV \l_siunitx_tmpa_tl
- \l_siunitx_tmpb_tl
}
\prop_get:NnN \l_siunitx_number_out_prop { exponent-result }
\l_siunitx_tmpb_tl
@@ -9887,19 +9889,15 @@ This work consists of the file siunitx.dtx
{
\prop_if_in:NnT \l_siunitx_number_out_prop { mantissa-result }
{
- \bool_if:NTF \l_siunitx_tight_bool
- {
- \tl_set:Nx \l_siunitx_tmpb_tl
- { { \exp_not:V \l_siunitx_exponent_product_tl } }
- }
+ \tl_put_left:Nx \l_siunitx_tmpa_tl
{
- \tl_set:Nx \l_siunitx_tmpb_tl
+ \exp_not:N \ensuremath
{
- { } \exp_not:V \l_siunitx_exponent_product_tl { }
+ \bool_if:NTF \l_siunitx_tight_bool
+ { { \exp_not:V \l_siunitx_exponent_product_tl } }
+ { { } \exp_not:V \l_siunitx_exponent_product_tl { } }
}
}
- \siunitx_tl_put_left_math:NV \l_siunitx_tmpa_tl
- \l_siunitx_tmpb_tl
\prop_put:NnV \l_siunitx_number_out_prop { exponent }
\l_siunitx_tmpa_tl
}
@@ -15951,7 +15949,7 @@ This work consists of the file siunitx.dtx
% \end{macrocode}
%
% \begin{macrocode}
-\ProvidesExplFile {siunitx-version-1.cfg} {2011/10/06} {2.3g}
+\ProvidesExplFile {siunitx-version-1.cfg} {2011/10/14} {2.3h}
{siunitx: Version 1 settings}
% \end{macrocode}
%
@@ -16896,7 +16894,7 @@ This work consists of the file siunitx.dtx
% \end{macrocode}
%
% \begin{macrocode}
-\ProvidesExplFile {siunitx-abbreviations.cfg} {2011/10/06} {2.3g}
+\ProvidesExplFile {siunitx-abbreviations.cfg} {2011/10/14} {2.3h}
{siunitx: Abbreviated units}
% \end{macrocode}
%
@@ -17078,7 +17076,7 @@ This work consists of the file siunitx.dtx
% \end{macrocode}
%
% \begin{macrocode}
-\ProvidesExplFile {siunitx-binary.cfg} {2011/10/06} {2.3g}
+\ProvidesExplFile {siunitx-binary.cfg} {2011/10/14} {2.3h}
{siunitx: Binary units}
% \end{macrocode}
%
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 97a735f3ede..b7baf06db7a 100644
--- a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg
+++ b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg
@@ -13,7 +13,7 @@
%% See http://www.latex-project.org/lppl.txt
%% ---------------------------------------------------------------
%%
-\ProvidesExplFile {siunitx-abbreviations.cfg} {2011/10/06} {2.3g}
+\ProvidesExplFile {siunitx-abbreviations.cfg} {2011/10/14} {2.3h}
{siunitx: Abbreviated units}
\DeclareSIUnit \A { \ampere }
\DeclareSIUnit \pA { \pico \ampere }
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 bba9e382836..06b5b97101d 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/10/06} {2.3g}
+\ProvidesExplFile {siunitx-binary.cfg} {2011/10/14} {2.3h}
{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 ea732d63797..b78df64c54e 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/10/06} {2.3g}
+\ProvidesExplFile {siunitx-version-1.cfg} {2011/10/14} {2.3h}
{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 cb6c2de406d..fac3155705f 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/10/06} {2.3g}
+\ProvidesExplPackage {siunitx} {2011/10/14} {2.3h}
{A comprehensive (SI) units package}
\cs_if_exist:NTF \msg_new:nnnn
{
@@ -357,7 +357,8 @@
\@ifpackageloaded { tex4ht }
{
\cs_set_eq:NN \siunitx_ensuremath:n \use:n
- \keys_set:nn { siunitx } { mode = text }
+ \cs_set_eq:NN \siunitx_print_text_super:n \textsuperscript
+ \keys_set:nn { siunitx } { qualifier-mode = brackets, mode = text }
}
{ }
}
@@ -2947,17 +2948,15 @@
\l_siunitx_tmpa_tl
\tl_if_empty:NT \l_siunitx_output_exponent_tl
{
- \bool_if:NTF \l_siunitx_tight_bool
- {
- \tl_set:Nx \l_siunitx_tmpb_tl
- { { \exp_not:V \l_siunitx_exponent_product_tl } }
- }
+ \tl_put_right:Nx \l_siunitx_tmpa_tl
{
- \tl_set:Nx \l_siunitx_tmpb_tl
- { { } \exp_not:V \l_siunitx_exponent_product_tl { } }
+ \exp_not:N \ensuremath
+ {
+ \bool_if:NTF \l_siunitx_tight_bool
+ { { \exp_not:V \l_siunitx_exponent_product_tl } }
+ { { } \exp_not:V \l_siunitx_exponent_product_tl { } }
+ }
}
- \siunitx_tl_put_right_math:NV \l_siunitx_tmpa_tl
- \l_siunitx_tmpb_tl
}
\prop_get:NnN \l_siunitx_number_out_prop { exponent-result }
\l_siunitx_tmpb_tl
@@ -3424,19 +3423,15 @@
{
\prop_if_in:NnT \l_siunitx_number_out_prop { mantissa-result }
{
- \bool_if:NTF \l_siunitx_tight_bool
- {
- \tl_set:Nx \l_siunitx_tmpb_tl
- { { \exp_not:V \l_siunitx_exponent_product_tl } }
- }
+ \tl_put_left:Nx \l_siunitx_tmpa_tl
{
- \tl_set:Nx \l_siunitx_tmpb_tl
+ \exp_not:N \ensuremath
{
- { } \exp_not:V \l_siunitx_exponent_product_tl { }
+ \bool_if:NTF \l_siunitx_tight_bool
+ { { \exp_not:V \l_siunitx_exponent_product_tl } }
+ { { } \exp_not:V \l_siunitx_exponent_product_tl { } }
}
}
- \siunitx_tl_put_left_math:NV \l_siunitx_tmpa_tl
- \l_siunitx_tmpb_tl
\prop_put:NnV \l_siunitx_number_out_prop { exponent }
\l_siunitx_tmpa_tl
}