diff options
author | Norbert Preining <norbert@preining.info> | 2021-06-23 03:01:05 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-06-23 03:01:05 +0000 |
commit | a809a190ff669feb11cb64db915b763abd0bed81 (patch) | |
tree | 6794c6d439e4e4afe002c5230493427c330b959e /macros/latex/contrib/siunitx/siunitx-symbol.dtx | |
parent | 2a49c67eee870febe71143a093f3c304e0033153 (diff) |
CTAN sync 202106230301
Diffstat (limited to 'macros/latex/contrib/siunitx/siunitx-symbol.dtx')
-rw-r--r-- | macros/latex/contrib/siunitx/siunitx-symbol.dtx | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/macros/latex/contrib/siunitx/siunitx-symbol.dtx b/macros/latex/contrib/siunitx/siunitx-symbol.dtx index 40b461bd84..c86d77e9f1 100644 --- a/macros/latex/contrib/siunitx/siunitx-symbol.dtx +++ b/macros/latex/contrib/siunitx/siunitx-symbol.dtx @@ -230,22 +230,30 @@ % \begin{macrocode} \@@_if_replace:NnT \ohm { "03A9 } { + \tl_set:Nx \l_@@_tmp_tl + { + \cs_if_exist:NTF \upOmega + { \exp_not:N \upOmega } + { \exp_not:N \Omega } + } \siunitx_declare_unit:Nx \ohm { \@ifpackageloaded { fourier } { \exp_not:N \ensuremath - { - \cs_if_exist:NTF \upOmega - { \exp_not:N \upOmega } - { \exp_not:N \Omega } - } + { \exp_not:V \l_@@_tmp_tl } } { \exp_not:N \ifmmode - \cs_if_exist:NTF \upOmega - { \exp_not:N \upOmega } - { \exp_not:N \Omega } + \@ifpackageloaded { fontspec } + { + \exp_not:N \text + { + \exp_not:N \ensuremath + { \exp_not:V \l_@@_tmp_tl } + } + } + { \exp_not:V \l_@@_tmp_tl } \exp_not:N \else \exp_not:N \text { |