summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-09-27 00:41:38 +0000
committerKarl Berry <karl@freefriends.org>2010-09-27 00:41:38 +0000
commitc6e683d9f29904267298eb3d33d8b0e657be3961 (patch)
treee4649b35410f8459da821942af7f2520ca2e346d /Master/texmf-dist/source
parente81f2d1a46b0abe541a3c741cfbadea0016c985b (diff)
siunitx 2.0v (26sep10)
git-svn-id: svn://tug.org/texlive/trunk@19907 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx.dtx70
1 files changed, 36 insertions, 34 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
index 0996a15bf7e..c2693b87ef6 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
+++ b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
@@ -468,6 +468,8 @@ This work consists of the file siunitx.dtx
% \pkg{textpos} package and \cs{color}}
%\changes{v2.0u}{2010/09/14}{Prevent infinite loop if \cs{SI} function
% is used with an empty number}
+%\changes{v2.0v}{2010/09/26}{Internal changes reflecting \pkg{expl3}
+% updates}
%
%\begin{abstract}
% Typesetting values with units requires care to ensure that the
@@ -4161,7 +4163,7 @@ This work consists of the file siunitx.dtx
%
% The usual preliminaries.
% \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2010/09/14} {2.0u}
+\ProvidesExplPackage {siunitx} {2010/09/26} {2.0v}
{A comprehensive (SI) units package}
% \end{macrocode}
%
@@ -4568,7 +4570,7 @@ This work consists of the file siunitx.dtx
\prg_new_conditional:Npnn \siunitx_cs_if_tl:N #1 { T , F, TF , p }
{
\exp_after:wN \siunitx_cs_if_tl_aux:w
- \token_to_meaning:N #1 MACRO \q_nil
+ \token_to_meaning:N #1 MACRO \q_stop
{
\cs_if_exist:cTF { \cs_to_str:N #1 ~ }
{ \prg_return_false: }
@@ -4576,13 +4578,13 @@ This work consists of the file siunitx.dtx
}
{ \prg_return_false: }
}
- \cs_new_nopar:Npn \siunitx_cs_if_tl_aux:w #1 MACRO #2 \q_nil
+ \cs_new_nopar:Npn \siunitx_cs_if_tl_aux:w #1 MACRO #2 \q_stop
{ \tl_if_empty:nTF {#1} }
\prg_new_conditional:Npnn \siunitx_cs_if_macro:N #1
{ T , F , TF , p }
{
\exp_after:wN \siunitx_cs_if_tl_aux:w
- \token_to_meaning:N #1 MACRO \q_nil
+ \token_to_meaning:N #1 MACRO \q_stop
{ \prg_return_true: }
{ \prg_return_false: }
}
@@ -4855,7 +4857,7 @@ This work consists of the file siunitx.dtx
\siunitx_detect_font_weight_text:
}
\cs_new_protected_nopar:Npn \siunitx_detect_font_weight_math: {
- \tl_if_eq:nVT { bold } \math@version
+ \str_if_eq:nVT { bold } \math@version
{
\cs_set:Npn \siunitx_font_weight:
{
@@ -4863,7 +4865,7 @@ This work consists of the file siunitx.dtx
\bfseries
}
}
- \tl_if_eq:nVT { light } \math@version
+ \str_if_eq:nVT { light } \math@version
{
\cs_set:Npn \siunitx_font_weight:
{ \lseries }
@@ -4871,7 +4873,7 @@ This work consists of the file siunitx.dtx
}
\cs_new_protected_nopar:Npn \siunitx_detect_font_weight_text: {
\tl_set:Nx \l_siunitx_tmpa_tl { \exp_args:NV \tl_head:n \f@series }
- \tl_if_eq:nVT { b } \l_siunitx_tmpa_tl
+ \str_if_eq:nVT { b } \l_siunitx_tmpa_tl
{
\cs_set:Npn \siunitx_font_weight:
{
@@ -4879,7 +4881,7 @@ This work consists of the file siunitx.dtx
\bfseries
}
}
- \tl_if_eq:nVT { l } \l_siunitx_tmpa_tl
+ \str_if_eq:nVT { l } \l_siunitx_tmpa_tl
{
\cs_set:Npn \siunitx_font_weight:
{ \lseries }
@@ -4933,9 +4935,9 @@ This work consists of the file siunitx.dtx
% The shape test uses \cs{f@shape} as a handy indicator.
% \begin{macrocode}
\cs_new_protected_nopar:Npn \siunitx_detect_font_shape: {
- \tl_if_eq:nVT { it } \f@shape
+ \str_if_eq:nVT { it } \f@shape
{ \cs_set_nopar:Npn \siunitx_font_shape: { \itshape } }
- \tl_if_eq:nVT { sl } \f@shape
+ \str_if_eq:nVT { sl } \f@shape
{ \cs_set_nopar:Npn \siunitx_font_shape: { \slshape } }
}
% \end{macrocode}
@@ -6126,11 +6128,11 @@ This work consists of the file siunitx.dtx
\bool_if:NTF \l_siunitx_number_in_decimal_bool
{
\tl_put_right:Nn \l_siunitx_number_parsed_tl {#1}
- \tl_if_eq:nnF {#1} { 0 }
+ \str_if_eq:nnF {#1} { 0 }
{ \bool_set_true:N \l_siunitx_number_in_value_bool }
}
{
- \tl_if_eq:nnTF {#1} { 0 }
+ \str_if_eq:nnTF {#1} { 0 }
{
\prop_put:NVn \l_siunitx_number_in_prop
\l_siunitx_number_part_tl { true }
@@ -7352,7 +7354,7 @@ This work consists of the file siunitx.dtx
\l_siunitx_bracket_open_tl
\siunitx_tl_put_right_math:NV \l_siunitx_tmpa_tl
\l_siunitx_bracket_close_tl
- \tl_if_eq:nnTF {#1} { result }
+ \str_if_eq:nnTF {#1} { result }
{ \prop_put:NnV \l_siunitx_number_out_prop {#1} \l_siunitx_tmpa_tl }
{
\prop_put:NnV \l_siunitx_number_out_prop { #1 -result }
@@ -7378,7 +7380,7 @@ This work consists of the file siunitx.dtx
\prop_get:NnN \l_siunitx_number_in_prop {#1} \l_siunitx_tmpa_tl
\quark_if_no_value:NF \l_siunitx_tmpa_tl
{
- \tl_if_eq:nVT { - } \l_siunitx_tmpa_tl
+ \str_if_eq:nVT { - } \l_siunitx_tmpa_tl
{
\prop_put:NnV \l_siunitx_number_out_prop { color }
\l_siunitx_negative_color_tl
@@ -7631,13 +7633,13 @@ This work consists of the file siunitx.dtx
{
\exp_after:wN \siunitx_number_format_group_four_aux:NNNNNNw
\l_siunitx_tmpa_tl \q_no_value \q_no_value \q_no_value
- \q_no_value \q_no_value \q_nil
+ \q_no_value \q_no_value \q_stop
{ \siunitx_number_format_copy:n {#1 - #2} }
{ \siunitx_number_format_group_four_aux:nn {#1} {#2} }
}
}
\cs_new_protected:Npn \siunitx_number_format_group_four_aux:NNNNNNw
- #1#2#3#4#5#6 \q_nil {
+ #1#2#3#4#5#6 \q_stop {
\quark_if_no_value:NTF #5
}
\cs_new_protected_nopar:Npn \siunitx_number_format_group_four_aux:nn
@@ -9023,7 +9025,7 @@ This work consists of the file siunitx.dtx
}
}
\cs_new_protected:Npn \siunitx_unit_first_token:n #1 {
- \exp_after:wN \token_to_str:N \tl_head:w #1 \q_nil
+ \exp_after:wN \token_to_str:N \tl_head:w #1 \q_stop
}
% \end{macrocode}
%\end{macro}
@@ -9712,7 +9714,7 @@ This work consists of the file siunitx.dtx
\siunitx_unit_format_init:
\intexpr_compare:nNnT { \l_siunitx_unit_int } = { 1 }
{
- \tl_if_eq:VnT \l_siunitx_per_mode_tl { symbol }
+ \str_if_eq:VnT \l_siunitx_per_mode_tl { symbol }
{
\prop_if_in:NnT \l_siunitx_unit_prop { per-1 }
{ \tl_clear:N \l_siunitx_number_unit_separator_tl }
@@ -9764,7 +9766,7 @@ This work consists of the file siunitx.dtx
\cs_new_protected_nopar:Npn \siunitx_unit_format_add_aux:n #1 {
\tl_if_empty:cF { l_siunitx_unit #1 _tl }
{
- \tl_if_eq:nVTF { repeat } \l_siunitx_per_mode_tl
+ \str_if_eq:nVTF { repeat } \l_siunitx_per_mode_tl
{
\tl_set:Nx \l_siunitx_tmpa_tl
{ per- \intexpr_eval:n { \l_siunitx_unit_int + 1 } }
@@ -9983,10 +9985,10 @@ This work consists of the file siunitx.dtx
% in text mode so that negative signs get printed correctly.
% \begin{macrocode}
\cs_new_protected_nopar:Npn \siunitx_unit_format_power_aux: {
- \tl_if_eq:nVTF { repeat } \l_siunitx_per_mode_tl
+ \str_if_eq:nVTF { repeat } \l_siunitx_per_mode_tl
{ \siunitx_unit_format_power_repeat: }
{ \siunitx_unit_format_power_per: }
- \tl_if_eq:nVF { 1 } \l_siunitx_tmpa_tl
+ \str_if_eq:nVF { 1 } \l_siunitx_tmpa_tl
{
\siunitx_unit_format_power_brackets:
\tl_put_right:Nx \l_siunitx_unit_current_tl
@@ -10116,7 +10118,7 @@ This work consists of the file siunitx.dtx
{ unit- \int_use:N \l_siunitx_unit_int }
\prop_get:NVN \l_siunitx_unit_prop \l_siunitx_tmpb_tl
\l_siunitx_tmpb_tl
- \tl_if_eq:nVT { \gram } \l_siunitx_tmpb_tl
+ \str_if_eq:nVT { \gram } \l_siunitx_tmpb_tl
{
\tl_set:Nx \l_siunitx_unit_prefix_current_tl
{ \intexpr_eval:n { \l_siunitx_unit_prefix_current_tl - 3 } }
@@ -12284,7 +12286,7 @@ This work consists of the file siunitx.dtx
\@ifpackageloaded { fourier } { }
{ \keys_set:nn { siunitx } { text-ohm = \textohm } }
}
- \tl_if_eq:nVT { OT1 } \encodingdefault
+ \str_if_eq:nVT { OT1 } \encodingdefault
{
\keys_set:nn { siunitx }
{
@@ -12429,7 +12431,7 @@ This work consists of the file siunitx.dtx
\clist_new:N \l_siunitx_pgf_link_clist
\cs_new_protected_nopar:Npn \siunitx_pgf_link: {
\clist_clear:N \l_siunitx_pgf_link_clist
- \tl_if_eq:VnT \l_siunitx_round_tl { figure }
+ \str_if_eq:VnT \l_siunitx_round_tl { figure }
{
\clist_put_right:Nn \l_siunitx_pgf_link_clist { fixed }
\clist_put_right:Nn \l_siunitx_pgf_link_clist
@@ -12474,7 +12476,7 @@ This work consists of the file siunitx.dtx
\clist_put_right:Nn \l_siunitx_pgf_link_clist
{ skip~0. = true }
}
- \tl_if_eq:VnTF \l_siunitx_process_sign_tl { + }
+ \str_if_eq:VnTF \l_siunitx_process_sign_tl { + }
{
\clist_put_right:Nn \l_siunitx_pgf_link_clist
{ showpos = true }
@@ -13467,7 +13469,7 @@ This work consists of the file siunitx.dtx
% \end{macrocode}
%
% \begin{macrocode}
-\ProvidesExplFile {siunitx-version-1.cfg} {2010/09/14} {2.0u}
+\ProvidesExplFile {siunitx-version-1.cfg} {2010/09/26} {2.0v}
{siunitx: Version 1 settings}
% \end{macrocode}
%
@@ -13884,7 +13886,7 @@ This work consists of the file siunitx.dtx
strictarc .code:n = ,
tabalign .code:n =
{
- \tl_if_eq:nnTF {#1} { centre }
+ \str_if_eq:nnTF {#1} { centre }
{ \keys_set:nn { siunitx } { table-alignment = center } }
{ \keys_set:nn { siunitx } { table-alignment = #1 } }
},
@@ -13894,16 +13896,16 @@ This work consists of the file siunitx.dtx
tabformat .meta:n = { table-format = #1 },
tabnumalign .code:n =
{
- \tl_if_eq:nnTF {#1} { centre }
+ \str_if_eq:nnTF {#1} { centre }
{ \keys_set:nn { siunitx } { table-number-alignment = center } }
{
- \tl_if_eq:nnTF {#1} { centredecimal }
+ \str_if_eq:nnTF {#1} { centredecimal }
{
\keys_set:nn { siunitx }
{ table-number-alignment = center-decimal-marker }
}
{
- \tl_if_eq:nnTF {#1} { centerdecimal }
+ \str_if_eq:nnTF {#1} { centerdecimal }
{
\keys_set:nn { siunitx }
{ table-number-alignment = center-decimal-marker }
@@ -13919,13 +13921,13 @@ This work consists of the file siunitx.dtx
tabparseonly .default:n = { true },
tabtextalign .code:n =
{
- \tl_if_eq:nnTF {#1} { centre }
+ \str_if_eq:nnTF {#1} { centre }
{ \keys_set:nn { siunitx } { table-text-alignment = center } }
{ \keys_set:nn { siunitx } { table-text-alignment = #1 } }
},
tabunitalign .code:n =
{
- \tl_if_eq:nnTF {#1} { centre }
+ \str_if_eq:nnTF {#1} { centre }
{ \keys_set:nn { siunitx } { table-unit-alignment = center } }
{ \keys_set:nn { siunitx } { table-unit-alignment = #1 } }
},
@@ -14440,7 +14442,7 @@ This work consists of the file siunitx.dtx
\clist_map_function:nN {#1} \siunitx_requireconfig:n
}
\cs_new_protected_nopar:Npn \siunitx_requireconfig:n #1 {
- \tl_if_eq:nnT {#1} { synchem }
+ \str_if_eq:nnT {#1} { synchem }
{ \keys_set:nn { siunitx } { load-configurations = chemistry } }
}
% \end{macrocode}
@@ -14747,7 +14749,7 @@ This work consists of the file siunitx.dtx
% \end{macrocode}
%
% \begin{macrocode}
-\ProvidesExplFile {siunitx-binary.cfg} {2010/09/14} {2.0u}
+\ProvidesExplFile {siunitx-binary.cfg} {2010/09/26} {2.0v}
{siunitx: Binary units}
% \end{macrocode}
%