From 507fa8e361c59a01a0271fcbe8d01433d137bbba Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 17 Jan 2012 23:29:58 +0000 Subject: siunitx (17jan12) git-svn-id: svn://tug.org/texlive/trunk@25134 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/siunitx/siunitx.dtx | 54 ++++++++++------------ 1 file changed, 24 insertions(+), 30 deletions(-) (limited to 'Master/texmf-dist/source') diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx index 6dfd474631c..1522c11b718 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx +++ b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx @@ -558,6 +558,8 @@ This work consists of the file siunitx.dtx % cells} %\changes{v2.4g}{2012/01/06}{Update internals to match changes in \pkg{expl3} % which caused issues with some tokens in numerical arguments} +%\changes{v2.4h}{2012/01/15}{Bug fix for implementation of +% \opt{reciprocal-positive-first}} % %\begin{abstract} % Physical quantities have both numbers and units, and each physical @@ -5011,7 +5013,7 @@ This work consists of the file siunitx.dtx % % The usual preliminaries. % \begin{macrocode} -\ProvidesExplPackage {siunitx} {2012/01/06} {2.4g} +\ProvidesExplPackage {siunitx} {2012/01/15} {2.4h} {A comprehensive (SI) units package} % \end{macrocode} % @@ -7914,16 +7916,7 @@ This work consists of the file siunitx.dtx \tl_if_empty:NF \l_siunitx_round_integer_in_tl { \siunitx_number_process_figures_integer: } \bool_if:NT \l_siunitx_round_bool - { - \tl_put_left:Nn \l_siunitx_round_integer_out_tl { 1 } - \tl_if_empty:NF \l_siunitx_round_decimal_out_tl - { - \tl_reverse:N \l_siunitx_round_decimal_out_tl - \tl_set:Nx \l_siunitx_round_decimal_out_tl - { \tl_tail:n \l_siunitx_round_decimal_out_tl } - \tl_reverse:N \l_siunitx_round_decimal_out_tl - } - } + { \tl_put_left:Nn \l_siunitx_round_integer_out_tl { 1 } } } \cs_new_protected:Npn \siunitx_number_process_figures_round_loop: { @@ -12284,25 +12277,26 @@ This work consists of the file siunitx.dtx %\end{macro} %\end{macro} % -%\begin{macro}{\siunitx_unit_format_sorted:} -% For when the powers are sorted with the positive ones first. The only -% slight issue is making sure that the additional space is included -% between the two units, if needed. +% \begin{macro}{\siunitx_unit_format_sorted:} +% For when the powers are sorted with the positive ones first. The only +% slight issue is making sure that the additional space is included +% between the two units, if needed. % \begin{macrocode} -\cs_new_protected:Npn \siunitx_unit_format_sorted: { - \tl_set_eq:NN \l_siunitx_unit_tl \l_siunitx_unit_numerator_tl - \tl_if_empty:NTF \l_siunitx_unit_tl - { - \tl_if_empty:NF \l_siunitx_unit_denominator_tl - { - \siunitx_tl_put_right_math:NV \l_siunitx_unit_tl - \l_siunitx_unit_product_tl - } - } +\cs_new_protected:Npn \siunitx_unit_format_sorted: + { + \tl_set_eq:NN \l_siunitx_unit_tl \l_siunitx_unit_numerator_tl + \tl_if_empty:NT \l_siunitx_unit_tl + { + \tl_if_empty:NF \l_siunitx_unit_denominator_tl + { + \siunitx_tl_put_right_math:NV \l_siunitx_unit_tl + \l_siunitx_unit_product_tl + } + } \tl_put_right:NV \l_siunitx_unit_tl \l_siunitx_unit_denominator_tl -} + } % \end{macrocode} -%\end{macro} +% \end{macro} % %\begin{macro}{\siunitx_unit_format_symbol:} %\begin{macro}[aux]{ @@ -16240,7 +16234,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-version-1.cfg} {2012/01/06} {2.4g} +\ProvidesExplFile {siunitx-version-1.cfg} {2012/01/15} {2.4h} {siunitx: Version 1 settings} % \end{macrocode} % @@ -17185,7 +17179,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-abbreviations.cfg} {2012/01/06} {2.4g} +\ProvidesExplFile {siunitx-abbreviations.cfg} {2012/01/15} {2.4h} {siunitx: Abbreviated units} % \end{macrocode} % @@ -17367,7 +17361,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-binary.cfg} {2012/01/06} {2.4g} +\ProvidesExplFile {siunitx-binary.cfg} {2012/01/15} {2.4h} {siunitx: Binary units} % \end{macrocode} % -- cgit v1.2.3