From 7417f5e4e32759e8fbaba3abe1d586dc34e5da85 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 21 Jun 2010 22:27:39 +0000 Subject: siunitx 2.0e (21jun10) git-svn-id: svn://tug.org/texlive/trunk@19096 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/siunitx/siunitx.pdf | Bin 478818 -> 478863 bytes Master/texmf-dist/source/latex/siunitx/siunitx.dtx | 26 +++++++++++++-------- .../latex/siunitx/config/siunitx-abbreviations.cfg | 2 +- .../tex/latex/siunitx/config/siunitx-binary.cfg | 2 +- .../tex/latex/siunitx/config/siunitx-version-1.cfg | 2 +- Master/texmf-dist/tex/latex/siunitx/siunitx.sty | 8 +++---- 6 files changed, 23 insertions(+), 17 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf b/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf index 2a37170f309..0415709a4dd 100644 Binary files a/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf and b/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf differ diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx index d974ea351be..5cb6011f5a8 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx +++ b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx @@ -422,6 +422,9 @@ This work consists of the file siunitx.dtx % cell in table row} %\changes{v2.0d}{2010/06/10}{Fix error in \opt{table-format} option % concerning exponent signs} +%\changes{v2.0e}{2010/06/20}{Correct behaviour of \cs{pm} in numbers +% when \texttt{abbreviations} configuration is loaded: problem +% introduced in v2.0c} % %\begin{abstract} % Typesetting values with units requires care to ensure that the @@ -3919,7 +3922,7 @@ This work consists of the file siunitx.dtx % % The usual preliminaries. % \begin{macrocode} -\ProvidesExplPackage {siunitx} {2010/06/10} {2.0d} +\ProvidesExplPackage {siunitx} {2010/06/20} {2.0e} {A comprehensive (SI) units package} % \end{macrocode} % @@ -8969,7 +8972,11 @@ This work consists of the file siunitx.dtx % %\begin{macro}{\siunitx_unit_in:nn} %\begin{macro}{\siunitx_unit_in:Vn} +%\begin{macro}{\siunitx_pm:} % The master function does a very simple checks then hands off. +% The definition of \cs{pm} needs to be saved here so that it can +% safely be used as an abbreviation for picometre and also in numbers +% for \( \pm \). % \begin{macrocode} \cs_new_protected:Npn \siunitx_unit_in:nn #1#2 { \bool_if:NTF \l_siunitx_unit_parse_bool @@ -8995,17 +9002,21 @@ This work consists of the file siunitx.dtx } } } + \cs_set_eq:NN \siunitx_pm: \pm \siunitx_unit_parse:nn {#1} {#2} - \siunitx_unit_format: + \siunitx_unit_format: + \cs_set_eq:NN \pm \siunitx_pm: } } } { \siunitx_unit_format_literal:n {#1} } } \cs_generate_variant:Nn \siunitx_unit_in:nn { V } +\cs_new_nopar:Npn \siunitx_pm: { } % \end{macrocode} %\end{macro} %\end{macro} +%\end{macro} % %\begin{macro}{\siunitx_unit_if_literal:nTF} %\begin{macro}[aux]{\siunitx_unit_if_literal_aux:N} @@ -9083,14 +9094,12 @@ This work consists of the file siunitx.dtx \siunitx_unit_parse_init: \siunitx_unit_parse_options:nn {#1} {#2} #1 - \cs_set_eq:NN \pm \siunitx_pm: } % \end{macrocode} %\end{macro} % %\begin{macro}{\siunitx_unit_parse_init:} %\begin{macro}[aux]{\siunitx_unit_parse_init_aux:N} -%\begin{macro}{\siunitx_pm:} % As always, the initialisation is a separate routine to make life a % little clearer. The definition of \cs{pm} is saved here as it % is used by units and numbers. @@ -9099,18 +9108,15 @@ This work consists of the file siunitx.dtx \prop_clear:N \l_siunitx_unit_prop \int_zero:N \l_siunitx_unit_int \bool_set_false:N \l_siunitx_per_bool - \cs_set_eq:NN \siunitx_pm: \pm \tl_map_function:NN \l_siunitx_declare_list_tl \siunitx_unit_parse_init_aux:N } \cs_new_protected:Npn \siunitx_unit_parse_init_aux:N #1 { \cs_set_eq:Nc #1 { siunitx_ \token_to_str:N #1 _function:w } } -\cs_new_protected_nopar:Npn \siunitx_pm: { } % \end{macrocode} %\end{macro} %\end{macro} -%\end{macro} % %\begin{macro}{\siunitx_unit_parse_options:n} % Any unit-specific options are loaded, followed by re-applying any @@ -13093,7 +13099,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-version-1.cfg} {2010/06/10} {2.0d} +\ProvidesExplFile {siunitx-version-1.cfg} {2010/06/20} {2.0e} {siunitx: Version 1 settings} % \end{macrocode} % @@ -14083,7 +14089,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-abbreviations.cfg} {2010/06/10} {2.0d} +\ProvidesExplFile {siunitx-abbreviations.cfg} {2010/06/20} {2.0e} {siunitx: Abbreviated units} % \end{macrocode} % @@ -14291,7 +14297,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-binary.cfg} {2010/06/10} {2.0d} +\ProvidesExplFile {siunitx-binary.cfg} {2010/06/20} {2.0e} {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 7d66ca50f87..2ed96560e10 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} {2010/06/10} {2.0d} +\ProvidesExplFile {siunitx-abbreviations.cfg} {2010/06/20} {2.0e} {siunitx: Abbreviated units} \DeclareSIUnit \pA { \pico \ampere } \DeclareSIUnit \nA { \nano \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 297e235fd6c..c331f9d4117 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} {2010/06/10} {2.0d} +\ProvidesExplFile {siunitx-binary.cfg} {2010/06/20} {2.0e} {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 ebddd042773..42c1abfb6a0 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} {2010/06/10} {2.0d} +\ProvidesExplFile {siunitx-version-1.cfg} {2010/06/20} {2.0e} {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 03faef9490a..2d55aa2306a 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} {2010/06/10} {2.0d} +\ProvidesExplPackage {siunitx} {2010/06/20} {2.0e} {A comprehensive (SI) units package} \msg_set:nnnn { siunitx } { incompatible-package } { Package~'#1'~incompatible. } @@ -3354,14 +3354,17 @@ } } } + \cs_set_eq:NN \siunitx_pm: \pm \siunitx_unit_parse:nn {#1} {#2} \siunitx_unit_format: + \cs_set_eq:NN \pm \siunitx_pm: } } } { \siunitx_unit_format_literal:n {#1} } } \cs_generate_variant:Nn \siunitx_unit_in:nn { V } +\cs_new_nopar:Npn \siunitx_pm: { } \cs_new_protected:Npn \siunitx_unit_if_literal:nTF #1#2#3 { \group_begin: \tl_map_function:NN \l_siunitx_declare_list_tl @@ -3391,20 +3394,17 @@ \siunitx_unit_parse_init: \siunitx_unit_parse_options:nn {#1} {#2} #1 - \cs_set_eq:NN \pm \siunitx_pm: } \cs_new_protected_nopar:Npn \siunitx_unit_parse_init: { \prop_clear:N \l_siunitx_unit_prop \int_zero:N \l_siunitx_unit_int \bool_set_false:N \l_siunitx_per_bool - \cs_set_eq:NN \siunitx_pm: \pm \tl_map_function:NN \l_siunitx_declare_list_tl \siunitx_unit_parse_init_aux:N } \cs_new_protected:Npn \siunitx_unit_parse_init_aux:N #1 { \cs_set_eq:Nc #1 { siunitx_ \token_to_str:N #1 _function:w } } -\cs_new_protected_nopar:Npn \siunitx_pm: { } \cs_new_protected:Npn \siunitx_unit_parse_options:nn #1#2 { \tl_if_single:nT {#1} { -- cgit v1.2.3