diff options
author | Karl Berry <karl@freefriends.org> | 2021-09-06 21:17:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-09-06 21:17:46 +0000 |
commit | 458565968e839da20c0c8dd69af1d35eb7111acc (patch) | |
tree | ec6d54ce7ba5160813db61809cf39f3ad4048c91 /Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx | |
parent | 654a21c6e357f30dbbd6166c90e9a0c0b016c255 (diff) |
siunitx (6sep21)
git-svn-id: svn://tug.org/texlive/trunk@60442 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx index a38edf5c55d..5b14aa123bc 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx +++ b/Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx @@ -339,7 +339,7 @@ % \l_@@_math_version_bool , % \l_@@_math_family_bool , % \l_@@_text_font_tl , -% \l_@@_math_weight_bool +% \l_@@_math_series_bool % } % Options which apply to the main formatting routine, and so are not tied % to either symbolic or literal input. @@ -375,7 +375,7 @@ text-font-command .tl_set:N = \l_@@_text_font_tl , text-series-to-math .bool_set:N = - \l_@@_math_weight_bool , + \l_@@_math_series_bool , unit-color .tl_set:N = \l_@@_unit_color_tl , unit-mode .choices:nn = @@ -482,32 +482,32 @@ % % \begin{variable} % { -% \c_@@_weight_uc_tl , -% \c_@@_weight_ecl_tl , -% \c_@@_weight_c_tl , -% \c_@@_weight_sc_tl , -% \c_@@_weight_sx_tl , -% \c_@@_weight_x_tl , -% \c_@@_weight_ex_tl , -% \c_@@_weight_ux_tl +% \c_@@_series_uc_tl , +% \c_@@_series_ecl_tl , +% \c_@@_series_c_tl , +% \c_@@_series_sc_tl , +% \c_@@_series_sx_tl , +% \c_@@_series_x_tl , +% \c_@@_series_ex_tl , +% \c_@@_series_ux_tl % } % Font widths where the |m| for weight is omitted. % \begin{macrocode} \clist_map_inline:nn { uc , ec , c , sc , sx , x , ex , ux } - { \tl_const:cn { c_@@_weight_ #1 _tl } { m } } + { \tl_const:cn { c_@@_series_ #1 _tl } { m } } % \end{macrocode} % \end{variable} % % \begin{variable} % { -% \c_@@_weight_l_tl , -% \c_@@_weight_m_tl , -% \c_@@_weight_b_tl +% \c_@@_series_l_tl , +% \c_@@_series_m_tl , +% \c_@@_series_b_tl % } % Font widths with one letter. % \begin{macrocode} \clist_map_inline:nn { l , m , b } - { \tl_const:cn { c_@@_weight_ #1 _tl } { #1 } } + { \tl_const:cn { c_@@_series_ #1 _tl } { #1 } } % \end{macrocode} % \end{variable} % @@ -535,7 +535,9 @@ % \begin{macrocode} \cs_new_protected:Npn \siunitx_print_math:n #1 { - \bool_if:NTF \l_@@_math_weight_bool + \bool_lazy_and:nnTF + { \l_@@_math_series_bool } + { \str_if_eq_p:Vn \math@version { normal } } { \tl_set:Nx \l_@@_tmp_tl { \exp_after:wN \@@_extract_series:Nw \f@series ? \q_stop } @@ -551,13 +553,13 @@ % work to do. To keep things fast, we use a hash table based lookup rather % than a sequence or property list. % \begin{macrocode} -\cs_new:Npn \@@_extract_series:Nw #1#2 ? #3 \q_stop +\cs_new:Npn \@@_extract_series:Nw #1#2 ? #3 \q_stop { - \cs_if_exist:cTF { c_@@_weight_ #1#2 _tl } - { \@@_convert_series:v { c_@@_weight_ #1#2 _tl } } + \cs_if_exist:cTF { c_@@_series_ #1#2 _tl } + { \@@_convert_series:v { c_@@_series_ #1#2 _tl } } { - \cs_if_exist:cTF { c_@@_weight_ #1 _tl } - { \@@_convert_series:v { c_@@_weight_ #1 _tl } } + \cs_if_exist:cTF { c_@@_series_ #1 _tl } + { \@@_convert_series:v { c_@@_series_ #1 _tl } } { \@@_convert_series:n {#1#2} } } } |