diff options
author | Karl Berry <karl@freefriends.org> | 2015-09-01 21:49:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-09-01 21:49:06 +0000 |
commit | 632a696b8806aa0f77259c3e22c5348a86d1ddac (patch) | |
tree | 65d1fd4fc4bdfd668aff19616d0c64e0349a6925 /Master/texmf-dist/source/latex/siunitx | |
parent | 0b7369ebc3416f6591630d84746d0c56400e42c2 (diff) |
siunitx (1sep15)
git-svn-id: svn://tug.org/texlive/trunk@38265 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/siunitx')
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx.dtx | 27 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx.ins | 73 |
2 files changed, 20 insertions, 80 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx index 4f27817aa86..877c88caf10 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx +++ b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx @@ -634,6 +634,10 @@ This work consists of the file siunitx.dtx % digits} % \changes{v2.6i}{2015/08/18}{Fix behaviour of \cs{cancel} when printing % in math mode} +% \changes{v2.6j}{2015/09/01}{Print all units when \opt{exponent-to-prefix} +% is set} +% \changes{v2.6j}{2015/09/01}{Print $\pm$ correctly when +% \opt{exponent-to-prefix} is set} % %\begin{abstract} % Physical quantities have both numbers and units, and each physical @@ -5157,7 +5161,7 @@ This work consists of the file siunitx.dtx % % The usual preliminaries. % \begin{macrocode} -\ProvidesExplPackage {siunitx} {2015/08/18} {2.6i} +\ProvidesExplPackage {siunitx} {2015/09/01} {2.6j} {A comprehensive (SI) units package} % \end{macrocode} % @@ -9358,7 +9362,9 @@ This work consists of the file siunitx.dtx % \begin{macro}{\@@_number_exp_to_prefix:} % This function is a bit awkward, as it essentially cuts across the % unit processor. The idea here is first to recover the numerical exponent, -% and sign if there is one. +% and sign if there is one. The earlier formatting run will have reset the +% total number of units to zero, so that has to be recovered before +% doing the format a second time. % \begin{macrocode} \cs_new_protected:Npn \@@_number_exp_to_prefix: { @@ -9387,7 +9393,11 @@ This work consists of the file siunitx.dtx @@_ \exp_after:wN \token_to_str:N \l_@@_tmpb_tl _function:w } + \prop_get:NnN \l_@@_unit_prop { total-units } \l_@@_tmpa_tl + \int_set:Nn \l_@@_unit_int \l_@@_tmpa_tl + \cs_set_eq:NN \@@_pm: \pm \@@_unit_format: + \cs_set_eq:NN \pm \@@_pm: } { \msg_error:nnx { siunitx } { non-convertible-exponent } @@ -12064,6 +12074,8 @@ This work consists of the file siunitx.dtx % has to be removed. % \begin{macrocode} \cs_new_protected:Npn \@@_unit_format: { + \prop_put:Nnx \l_@@_unit_prop { total-units } + { \int_use:N \l_@@_unit_int } \@@_unit_format_init: \int_while_do:nNnn { \l_@@_unit_int } > { 0 } { @@ -12678,6 +12690,7 @@ This work consists of the file siunitx.dtx \prop_remove:Nn \l_@@_unit_prop { prefix-1 } \prop_remove:Nn \l_@@_unit_prop { prefix-symbol-1 } \prop_remove:Nn \l_@@_unit_prop { prefix-base-1 } + \prop_remove:Nn \l_@@_unit_prop { total-units } \prop_if_empty:NF \l_@@_unit_prop { \msg_error:nn { siunitx } { prefix-only } } } @@ -15656,8 +15669,8 @@ This work consists of the file siunitx.dtx \msg_new:nnnn { siunitx } { invalid-number } { Invalid~numerical~input~'#1'. } { - The~input given~as~a~number~does~not~make~logical~sense.~ - This~happens,~for example,~if~a~number~only~contains~a~sign. + The~input~given~as~a~number~does~not~make~logical~sense.~ + This~happens,~for~example,~if~a~number~only~contains~a~sign. } \msg_new:nnnn { siunitx } { invalid-token-in-exponent } { Invalid~exponent~in~numerical~input~'#1'. } @@ -16691,7 +16704,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-version-1.cfg} {2015/08/18} {2.6i} +\ProvidesExplFile {siunitx-version-1.cfg} {2015/09/01} {2.6j} {siunitx: Version 1 settings} % \end{macrocode} % @@ -17633,7 +17646,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-abbreviations.cfg} {2015/08/18} {2.6i} +\ProvidesExplFile {siunitx-abbreviations.cfg} {2015/09/01} {2.6j} {siunitx: Abbreviated units} % \end{macrocode} % @@ -17815,7 +17828,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-binary.cfg} {2015/08/18} {2.6i} +\ProvidesExplFile {siunitx-binary.cfg} {2015/09/01} {2.6j} {siunitx: Binary units} % \end{macrocode} % diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.ins b/Master/texmf-dist/source/latex/siunitx/siunitx.ins deleted file mode 100644 index 5e14df6d890..00000000000 --- a/Master/texmf-dist/source/latex/siunitx/siunitx.ins +++ /dev/null @@ -1,73 +0,0 @@ -%% -%% This is file `siunitx.ins', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% siunitx.dtx (with options: `install') -%% --------------------------------------------------------------- -%% The siunitx package --- A comprehensive (SI) units package -%% Maintained by Joseph Wright -%% E-mail: joseph.wright@morningstar2.co.uk -%% Released under the LaTeX Project Public License v1.3c or later -%% See http://www.latex-project.org/lppl.txt -%% --------------------------------------------------------------- -%% -\input l3docstrip.tex -\keepsilent -\askforoverwritefalse -\preamble ---------------------------------------------------------------- -The siunitx package --- A comprehensive (SI) units package -Maintained by Joseph Wright -E-mail: joseph.wright@morningstar2.co.uk -Released under the LaTeX Project Public License v1.3c or later -See http://www.latex-project.org/lppl.txt ---------------------------------------------------------------- - -\endpreamble -\postamble -Copyright (C) 2008-2014 by - Joseph Wright <joseph.wright@morningstar2.co.uk> - -It may be distributed and/or modified under the conditions of -the LaTeX Project Public License (LPPL), either version 1.3c of -this license or (at your option) any later version. The latest -version of this license is in the file: - http://www.latex-project.org/lppl.txt - -This work is "maintained" (as per LPPL maintenance status) by - Joseph Wright. - -This work consists of the file siunitx.dtx - and the derived files siunitx.pdf, - siunitx.sty and - siunitx.ins. -\endpostamble -\usedir{tex/latex/siunitx} -\generate{ - \file{\jobname.sty}{\from{\jobname.dtx}{package}} - \file{siunitx-abbreviations.cfg} - {\from{\jobname.dtx}{config,abbreviations}} - \file{siunitx-binary.cfg}{\from{\jobname.dtx}{config,binary}} - \file{siunitx-version-1.cfg}{\from{\jobname.dtx}{config,version-1}} -} -\endbatchfile -%% Copyright (C) 2008-2014 by -%% Joseph Wright <joseph.wright@morningstar2.co.uk> -%% -%% It may be distributed and/or modified under the conditions of -%% the LaTeX Project Public License (LPPL), either version 1.3c of -%% this license or (at your option) any later version. The latest -%% version of this license is in the file: -%% http://www.latex-project.org/lppl.txt -%% -%% This work is "maintained" (as per LPPL maintenance status) by -%% Joseph Wright. -%% -%% This work consists of the file siunitx.dtx -%% and the derived files siunitx.pdf, -%% siunitx.sty and -%% siunitx.ins. -%% -%% End of file `siunitx.ins'. |