diff options
author | Norbert Preining <norbert@preining.info> | 2022-04-26 03:02:04 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-04-26 03:02:04 +0000 |
commit | 6f7554fc6cab67e3dc397ce7a942889eedbc4967 (patch) | |
tree | cd63f9ed43b147e44b3f1981bf7bda23680416b1 /macros/latex/contrib/siunitx/siunitx-code.tex | |
parent | 4688b855bb6f8b817901a7c777e8aecd1a189622 (diff) |
CTAN sync 202204260302
Diffstat (limited to 'macros/latex/contrib/siunitx/siunitx-code.tex')
-rw-r--r-- | macros/latex/contrib/siunitx/siunitx-code.tex | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/macros/latex/contrib/siunitx/siunitx-code.tex b/macros/latex/contrib/siunitx/siunitx-code.tex index bf2bd1b7e9..a4c3978310 100644 --- a/macros/latex/contrib/siunitx/siunitx-code.tex +++ b/macros/latex/contrib/siunitx/siunitx-code.tex @@ -1,6 +1,6 @@ \iffalse meta-comment -File: siunitx-code.tex Copyright (C) 2016-2021 Joseph Wright +File: siunitx-code.tex Copyright (C) 2016-2022 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 @@ -34,9 +34,19 @@ for those people who are interested. % Commands for this document \ExplSyntaxOn -\cs_new_eq:NN \LowerCaseText \tl_lower_case:n +\makeatletter +\NewDocumentCommand \acro { m } + { + \textsc + { + \exp_args:NV \tl_if_head_eq_charcode:nNTF \f@series { m } + { \text_lowercase:n } + { \use:n } + {#1} + } + } +\makeatother \ExplSyntaxOff -\NewDocumentCommand\acro{m}{\textsc{\LowerCaseText{#1}}} \NewDocumentCommand\foreign{m}{\textit{#1}} % Standard settings |