diff options
author | Norbert Preining <norbert@preining.info> | 2021-09-30 03:01:06 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-09-30 03:01:06 +0000 |
commit | c0e66330261a0098e8041d4cc1428666ef598c30 (patch) | |
tree | 6048e9d4cf052ff3dc32b3ffd1081ef3c95bc42c /macros/latex/contrib/siunitx/siunitx-symbol.dtx | |
parent | 0396814223158484c2f424d382bcd670de158d82 (diff) |
CTAN sync 202109300301
Diffstat (limited to 'macros/latex/contrib/siunitx/siunitx-symbol.dtx')
-rw-r--r-- | macros/latex/contrib/siunitx/siunitx-symbol.dtx | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/macros/latex/contrib/siunitx/siunitx-symbol.dtx b/macros/latex/contrib/siunitx/siunitx-symbol.dtx index 1501f334b3..e851918722 100644 --- a/macros/latex/contrib/siunitx/siunitx-symbol.dtx +++ b/macros/latex/contrib/siunitx/siunitx-symbol.dtx @@ -179,12 +179,16 @@ { \siunitx_declare_unit:Nxn \degree { - \exp_not:N \text - { - \@ifpackageloaded { inputenc } - { \exp_not:N \textdegree } - { \@@_non_latin:n { "00B0 } } - } + \exp_not:N \ifmmode + { } ^ { \exp_not:N \circ } + \exp_not:N \else + \exp_not:N \text + { + \@ifpackageloaded { inputenc } + { \exp_not:N \textdegree } + { \@@_non_latin:n { "00B0 } } + } + \exp_not:N \fi } { quantity-product = { } } } @@ -203,12 +207,16 @@ \group_end: \siunitx_declare_unit:Nx \degreeCelsius { - \exp_not:N \text - { - \@ifpackageloaded { inputenc } - { \exp_not:N \textdegree } - { \@@_non_latin:n { "00B0 } } - } + \exp_not:N \ifmmode + { } ^ { \exp_not:N \circ } + \exp_not:N \else + \exp_not:N \text + { + \@ifpackageloaded { inputenc } + { \exp_not:N \textdegree } + { \@@_non_latin:n { "00B0 } } + } + \exp_not:N \fi C } } |