diff options
author | Norbert Preining <norbert@preining.info> | 2021-05-20 03:00:38 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-05-20 03:00:38 +0000 |
commit | 6d6c3b4ee419b9f485a213d2ece28b06e9ca2f7c (patch) | |
tree | 243789c085bcb650c397f86eeaaddbc45ca92dff /macros/latex/contrib/siunitx/siunitx-symbol.dtx | |
parent | 94c996b5f40175b4a858ddd1f19e3947198b9bd0 (diff) |
CTAN sync 202105200300
Diffstat (limited to 'macros/latex/contrib/siunitx/siunitx-symbol.dtx')
-rw-r--r-- | macros/latex/contrib/siunitx/siunitx-symbol.dtx | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/macros/latex/contrib/siunitx/siunitx-symbol.dtx b/macros/latex/contrib/siunitx/siunitx-symbol.dtx index 6d67c5a29d..1307e2ee0b 100644 --- a/macros/latex/contrib/siunitx/siunitx-symbol.dtx +++ b/macros/latex/contrib/siunitx/siunitx-symbol.dtx @@ -259,6 +259,8 @@ % same as |\textmu| support. It's hard to check for the product symbol, so % we just go with it an hope for the best! % \begin{macrocode} +\keys_set:nn { siunitx } + { product-symbol = \ifmmode \times \else \texttimes \fi } \AtBeginDocument { \group_begin: @@ -273,12 +275,36 @@ \keys_set:nn { siunitx } { exponent-product = - \ifmmode \times \else \texttimes \fi , - product-symbol = \ifmmode \times \else \texttimes \fi } } - { \group_end: } + { + \tl_set:Nn \l_@@_tmpb_tl { 2 \cdot 10 ^ { 1 } } + \tl_if_eq:NNTF \l_@@_tmpa_tl \l_@@_tmpb_tl + { + \group_end: + \keys_set:nn { siunitx } + { + exponent-product = + \ifmmode \cdot \else \textperiodcentered \fi + } + } + { \group_end: } + } + \group_begin: + \tl_set:Nn \l_@@_tmpa_tl { \mathrm { m } \cdot \mathrm { s } } + \tl_set:Nn \l_siunitx_unit_font_tl { \mathrm } + \siunitx_unit_format:nN { m . s } \l_@@_tmpb_tl + \tl_if_eq:NNTF \l_@@_tmpa_tl \l_@@_tmpb_tl + { + \group_end: + \keys_set:nn { siunitx } + { + inter-unit-product = + \ifmmode \cdot \else \textperiodcentered \fi + } + } + { \group_end: } } % \end{macrocode} % |