diff options
author | Norbert Preining <norbert@preining.info> | 2023-01-04 03:02:24 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-01-04 03:02:24 +0000 |
commit | b2ede2da5ece936a9be421f2b6fbdb6c65cb225a (patch) | |
tree | 52e56df44d458efa71d7de971f576d61dbdb2123 /macros/latex/contrib/siunitx/siunitx-quantity.dtx | |
parent | 660cf44d2a0aee74bd6e69615fedfc57c966a260 (diff) |
CTAN sync 202301040302
Diffstat (limited to 'macros/latex/contrib/siunitx/siunitx-quantity.dtx')
-rw-r--r-- | macros/latex/contrib/siunitx/siunitx-quantity.dtx | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/macros/latex/contrib/siunitx/siunitx-quantity.dtx b/macros/latex/contrib/siunitx/siunitx-quantity.dtx index 69182e37c3..b7e6352bdd 100644 --- a/macros/latex/contrib/siunitx/siunitx-quantity.dtx +++ b/macros/latex/contrib/siunitx/siunitx-quantity.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% File: siunitx-quantity.dtx Copyright (C) 2018-2022 Joseph Wright +% File: siunitx-quantity.dtx Copyright (C) 2018-2023 Joseph Wright % % It may be distributed and/or modified under the conditions of the % LaTeX Project Public License (LPPL), either version 1.3c of this @@ -419,37 +419,12 @@ % \subsection{Adjustments to units} % % \begin{macro}{\@@_non_latin:n} -% \begin{macro}{\@@_non_latin:nnnn} -% As in \pkg{siunitx-unit}, but internal in both cases as it's rather -% specialised. +% A shortcut. % \begin{macrocode} -\bool_lazy_or:nnTF - { \sys_if_engine_luatex_p: } - { \sys_if_engine_xetex_p: } - { - \cs_new:Npn \@@_non_latin:n #1 - { - \exp_after:wN \exp_after:wN \exp_after:wN - \exp_not:N \char_generate:nn {#1} { \char_value_catcode:n {#1} } - } - } - { - \cs_new:Npn \@@_non_latin:n #1 - { - \exp_last_unbraced:Nf \@@_non_latin:nnnn - { \char_to_utfviii_bytes:n {#1} } - } - \cs_new:Npn \@@_non_latin:nnnn #1#2#3#4 - { - \exp_after:wN \exp_after:wN \exp_after:wN - \exp_not:N \char_generate:nn {#1} { 13 } - \exp_after:wN \exp_after:wN \exp_after:wN - \exp_not:N \char_generate:nn {#2} { 13 } - } - } +\cs_new:Npn \@@_non_latin:n #1 + { \codepoint_generate:nn {#1} { \char_value_catcode:n {#1} } } % \end{macrocode} % \end{macro} -% \end{macro} % % \begin{macro}{\arcminute, \arcsecond, \degree} % The angles units are re-declared here: this is needed for using it |