diff options
author | Karl Berry <karl@freefriends.org> | 2010-07-06 00:51:43 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-07-06 00:51:43 +0000 |
commit | becffc281239c9dcdc30c0b7a1454efcb16d0f08 (patch) | |
tree | e00a79b37ce777bb28fd3d3b5d1cb42466415a6d /Master/texmf-dist/source/latex/siunitx | |
parent | 32966f311a70a04afdd4d1d96806b789f07894ef (diff) |
siunitx update (5jul10)
git-svn-id: svn://tug.org/texlive/trunk@19254 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 | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx index ad26d43d3c9..643f65308e1 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx +++ b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx @@ -439,6 +439,11 @@ This work consists of the file siunitx.dtx % code} %\changes{v2.0i}{2010/06/29}{Correct behaviour of \cs{of} function % so it actually works (bug introduced in v2.0d)} +%\changes{v2.0j}{2010/06/30}{Correct \cs{hartree} unit appearance} +%\changes{v2.0j}{2010/06/30}{Ensure symbols specified in +% \opt{input-symbols} are always printed in math mode} +%\changes{v2.0k}{2010/07/04}{Fix for \pkg{babel} French settings with +% \cs{fg} in tabular material} % %\begin{abstract} % Typesetting values with units requires care to ensure that the @@ -1433,15 +1438,16 @@ This work consists of the file siunitx.dtx % can be used: it will be converted by the package to the appropriate % output marker. Numbers which include an exponent part also require % a marker for the exponent: this again is taken from the range of -% tokens in the \opt{exponent markers} option. +% tokens in the \opt{input-exponent-markers} option. % %\DescribeOption{input-symbols} %\DescribeOption{input-ignore} % As well as \enquote{normal} digits, the package will interpret % symbolic \enquote{numbers} (such as \cs{pi}) correctly if they are -% included in the \opt{input-symbols} list. Tokens given in the -% \opt{input-ignore} list are totally passed over by \pkg{siunitx}: -% they will be removed from the input with no further processing. +% included in the \opt{input-symbols} list. Symbols are always +% printed in math mode. Tokens given in the \opt{input-ignore} list +% are totally passed over by \pkg{siunitx}: they will be removed from +% the input with no further processing. % %\DescribeOption{input-open-uncertainty} %\DescribeOption{input-close-uncertainty} @@ -3969,7 +3975,7 @@ This work consists of the file siunitx.dtx % % The usual preliminaries. % \begin{macrocode} -\ProvidesExplPackage {siunitx} {2010/06/29} {2.0i} +\ProvidesExplPackage {siunitx} {2010/07/04} {2.0k} {A comprehensive (SI) units package} % \end{macrocode} % @@ -4362,7 +4368,7 @@ This work consists of the file siunitx.dtx %\begin{macro}[TF]{\siunitx_cs_if_tl:N} %\begin{macro}[aux]{\siunitx_cs_if_tl_aux:w} %\begin{macro}{\siunitx_cs_if_macro_p:N} -%\begin{macro}[TF]{\siunitx_cs_if_macro:NT} +%\begin{macro}[TF]{\siunitx_cs_if_macro:N} % This is basically a re-hash of stuff from \pkg{expl3}, but to test for % short macros only. The second test (with the \cs{cs_to_str:N} part) % is checking for LaTeX2e robust commands. @@ -5674,7 +5680,7 @@ This work consists of the file siunitx.dtx % \begin{macrocode} \cs_new_protected:Npn \siunitx_number_in_parse_mantissa:N #1 { \tl_if_in:NnTF \l_siunitx_input_digit_tl {#1} - { \siunitx_number_in_digit:N #1 } + { \siunitx_number_in_digit:n {#1} } { \tl_if_in:NnTF \l_siunitx_input_decimal_tl {#1} { \siunitx_number_in_decimal:N #1 } @@ -5686,7 +5692,7 @@ This work consists of the file siunitx.dtx { \prop_put:Nnn \l_siunitx_number_in_prop { symbolic } { true } - \siunitx_number_in_digit:N #1 + \siunitx_number_in_digit:n { \ensuremath {#1} } } { \tl_if_in:NnF \l_siunitx_input_ignore_tl {#1} @@ -5729,7 +5735,7 @@ This work consists of the file siunitx.dtx % \begin{macrocode} \cs_new_protected:Npn \siunitx_number_in_parse_uncert:N #1 { \tl_if_in:NnTF \l_siunitx_input_digit_tl {#1} - { \siunitx_number_in_digit:N #1 } + { \siunitx_number_in_digit:n {#1} } { \tl_if_in:NnTF \l_siunitx_input_decimal_tl {#1} { @@ -5749,7 +5755,7 @@ This work consists of the file siunitx.dtx { \prop_put:Nnn \l_siunitx_number_in_prop { symbolic } { true } - \siunitx_number_in_digit:N #1 + \siunitx_number_in_digit:n {#1} } { \tl_if_in:NnF \l_siunitx_input_ignore_tl {#1} @@ -5918,13 +5924,13 @@ This work consists of the file siunitx.dtx % \end{macrocode} %\end{macro} % -%\begin{macro}{\siunitx_number_in_digit:N} +%\begin{macro}{\siunitx_number_in_digit:n} % For digits, only in an uncertainty can the value be stored % directly. Otherwise, there is a need to see if the value is non-zero. % This is used to drop leading zeros and to validate any sign (as zero % is unsigned). % \begin{macrocode} -\cs_new_protected:Npn \siunitx_number_in_digit:N #1 { +\cs_new_protected:Npn \siunitx_number_in_digit:n #1 { \bool_set_false:N \l_siunitx_number_in_first_bool \bool_if:NTF \l_siunitx_number_in_uncert_bool { \tl_put_right:Nn \l_siunitx_number_parsed_tl {#1} } @@ -9006,7 +9012,7 @@ This work consists of the file siunitx.dtx % a table cell. % \begin{macrocode} \AtBeginDocument { - \tl_map_function:nN { \bar \color \ng \pm } + \tl_map_function:nN { \bar \color \fg \ng \pm } \siunitx_protect_symbols:N } \cs_new_protected_nopar:Npn \siunitx_protect_symbols:N #1 { @@ -12985,6 +12991,7 @@ This work consists of the file siunitx.dtx \DeclareSIUnit \elementarycharge { \text { \ensuremath { e } } } \group_begin: \char_set_lccode:nn { `\@ } { `\_ } + \char_set_lccode:nn { `\E } { `\E } \char_make_math_subscript:N \@ \tl_to_lowercase:n { \group_end: @@ -13197,7 +13204,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-version-1.cfg} {2010/06/29} {2.0i} +\ProvidesExplFile {siunitx-version-1.cfg} {2010/07/04} {2.0k} {siunitx: Version 1 settings} % \end{macrocode} % @@ -14187,7 +14194,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-abbreviations.cfg} {2010/06/29} {2.0i} +\ProvidesExplFile {siunitx-abbreviations.cfg} {2010/07/04} {2.0k} {siunitx: Abbreviated units} % \end{macrocode} % @@ -14395,7 +14402,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-binary.cfg} {2010/06/29} {2.0i} +\ProvidesExplFile {siunitx-binary.cfg} {2010/07/04} {2.0k} {siunitx: Binary units} % \end{macrocode} % |