diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/siunitx/siunitx.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx.dtx | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx index 5db38c5667b..086d0df4828 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx +++ b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx @@ -525,6 +525,11 @@ This work consists of the file siunitx.dtx % does not end \cs{\\}} %\changes{v2.2a}{2011/04/16}{Fix bug with literal units and auto-insertion % of \num{1} when \opt{per-mode} is \opt{symbol}} +%\changes{v2.2b}{2011/04/17}{Make \cs{of} work in hyper-linked sections} +%\changes{v2.2b}{2011/04/17}{Fix bug with \cs{highlight} macro when +% no colour support is loaded} +%\changes{v2.2b}{2011/04/19}{Fix bad formatting of negative exponents when +% using the \opt{output-exponent-marker} option} % %\begin{abstract} % Physical quantities have both numbers and units, and each physical @@ -4768,7 +4773,7 @@ This work consists of the file siunitx.dtx % % The usual preliminaries. % \begin{macrocode} -\ProvidesExplPackage {siunitx} {2011/04/16} {2.2a} +\ProvidesExplPackage {siunitx} {2011/04/19} {2.2b} {A comprehensive (SI) units package} % \end{macrocode} % @@ -5948,7 +5953,7 @@ This work consists of the file siunitx.dtx { \cs_new_eq:NN \siunitx_textcolor:n \textcolor } { \cs_set_eq:NN \siunitx_print_color: \scan_stop: - \cs_new_eq:NN \siunitx_textcolor:n \use:n + \cs_new_eq:NN \siunitx_textcolor:n \use_none:n } } % \end{macrocode} @@ -7357,6 +7362,7 @@ This work consists of the file siunitx.dtx % \l_siunitx_process_decimal_zero_bool , % \l_siunitx_process_integer_zero_bool , % \l_siunitx_process_sign_tl , +% \l_siunitx_process_sign_tl , % \l_siunitx_process_fixed_int , % \l_siunitx_process_integer_min_int , % \l_siunitx_process_plus_tl , @@ -9081,7 +9087,11 @@ This work consists of the file siunitx.dtx \tl_put_left:NV \l_siunitx_tmpa_tl \l_siunitx_exponent_base_tl } { - \tl_put_left:NV \l_siunitx_tmpa_tl \l_siunitx_output_exponent_tl + \tl_set:Nx \l_siunitx_tmpa_tl + { + \exp_not:V \l_siunitx_output_exponent_tl + { \exp_not:V \l_siunitx_tmpa_tl } + } } \prop_put:NnV \l_siunitx_number_out_prop { exponent-result } \l_siunitx_tmpa_tl @@ -10592,20 +10602,6 @@ This work consists of the file siunitx.dtx % \end{macrocode} %\end{macro} % -%\begin{macro}{\siunitx_declare_special:Nn} -% Special effects functions are declared to store their arguments -% or to directly apply them. -% \begin{macrocode} -\cs_new_protected:Npn \siunitx_declare_special:Nn #1#2 { - \tl_put_right:Nn \l_siunitx_declare_list_tl {#1} - \cs_set:cpn { siunitx_ \token_to_str:N #1 _literal:w } ##1 - { #2 {##1} } - \cs_set:cpn { siunitx_ \token_to_str:N #1 _function:w } - { \siunitx_unit_parse_special:n {#2} } -} -% \end{macrocode} -%\end{macro} -% %\begin{macro}{\siunitx_declare_unit:Nnn} %\begin{macro}[aux]{\siunitx_unit_first_token:n} % Creating units requires various things to be stored. This is done @@ -10616,7 +10612,7 @@ This work consists of the file siunitx.dtx \cs_new_protected:Npn \siunitx_declare_unit:Nnn #1#2#3 { \tl_put_right:Nn \l_siunitx_declare_list_tl {#1} \cs_set:cpn { siunitx_ \token_to_str:N #1 _literal:w } {#2} - \cs_set:cpn { siunitx_ \token_to_str:N #1 _function:w } + \cs_set_protected:cpn { siunitx_ \token_to_str:N #1 _function:w } { \siunitx_unit_if_literal:nTF {#2} { \siunitx_unit_parse_unit:Nn #1 {#2} } @@ -10680,7 +10676,7 @@ This work consists of the file siunitx.dtx %\begin{macro}{\of} % A flexible qualifier as well. % \begin{macrocode} -\cs_new_protected:cpn { siunitx_ \token_to_str:N \of _literal:w } #1 { +\cs_new:cpn { siunitx_ \token_to_str:N \of _literal:w } #1 { \text { ~ } ( #1 ) } \cs_new_protected:cpn { siunitx_ \token_to_str:N \of _function:w } #1 { @@ -10711,7 +10707,7 @@ This work consists of the file siunitx.dtx %\begin{macro}{\highlight} % Another special function: selective colour. % \begin{macrocode} -\cs_new_protected:cpn +\cs_new:cpn { siunitx_ \token_to_str:N \highlight _literal:w } #1 { \siunitx_textcolor:n {#1} } \cs_new_protected:cpn @@ -15623,7 +15619,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-version-1.cfg} {2011/04/16} {2.2a} +\ProvidesExplFile {siunitx-version-1.cfg} {2011/04/19} {2.2b} {siunitx: Version 1 settings} % \end{macrocode} % @@ -16839,7 +16835,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-binary.cfg} {2011/04/16} {2.2a} +\ProvidesExplFile {siunitx-binary.cfg} {2011/04/19} {2.2b} {siunitx: Binary units} % \end{macrocode} % |