From 67acf92f90956827364ebe689dbdc659c3d402e3 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 19 Jan 2022 03:01:05 +0000 Subject: CTAN sync 202201190301 --- macros/latex/contrib/siunitx/CHANGELOG.md | 14 +++++++++++++- macros/latex/contrib/siunitx/siunitx-code.pdf | Bin 607833 -> 608018 bytes macros/latex/contrib/siunitx/siunitx-locale.dtx | 8 ++++++++ macros/latex/contrib/siunitx/siunitx-symbol.dtx | 6 ++++-- macros/latex/contrib/siunitx/siunitx-unit.dtx | 4 +++- macros/latex/contrib/siunitx/siunitx.dtx | 13 +++++++------ macros/latex/contrib/siunitx/siunitx.pdf | Bin 638335 -> 638357 bytes macros/latex/contrib/siunitx/siunitx.tex | 3 ++- 8 files changed, 37 insertions(+), 11 deletions(-) (limited to 'macros/latex/contrib/siunitx') diff --git a/macros/latex/contrib/siunitx/CHANGELOG.md b/macros/latex/contrib/siunitx/CHANGELOG.md index 649008576a..ddee0243e6 100644 --- a/macros/latex/contrib/siunitx/CHANGELOG.md +++ b/macros/latex/contrib/siunitx/CHANGELOG.md @@ -7,6 +7,17 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to ## [Unreleased] +## [v3.0.42] - 2022-01-18 + +### Added +- Slovene translations (see pull request + [\#570](https://github.com/josephwright/siunitx/pull/570)) + +### Changed +- Enable new LaTeX option handling if available +- Use U+2126 rather than U+03A9 for `\ohm` in text mode with Unicode + engines + ## [v3.0.41] - 2022-01-13 ### Fixed @@ -1660,7 +1671,8 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to ### Added - First public testing release (as `si`) -[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.41...HEAD +[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.42...HEAD +[v3.0.42]: https://github.com/josephwright/siunitx/compare/v3.0.41...v3.0.42 [v3.0.41]: https://github.com/josephwright/siunitx/compare/v3.0.40...v3.0.41 [v3.0.40]: https://github.com/josephwright/siunitx/compare/v3.0.39...v3.0.40 [v3.0.39]: https://github.com/josephwright/siunitx/compare/v3.0.38...v3.0.39 diff --git a/macros/latex/contrib/siunitx/siunitx-code.pdf b/macros/latex/contrib/siunitx/siunitx-code.pdf index b5922ebc96..bc6e13dedc 100644 Binary files a/macros/latex/contrib/siunitx/siunitx-code.pdf and b/macros/latex/contrib/siunitx/siunitx-code.pdf differ diff --git a/macros/latex/contrib/siunitx/siunitx-locale.dtx b/macros/latex/contrib/siunitx/siunitx-locale.dtx index 8535a74c20..681ad06ee7 100644 --- a/macros/latex/contrib/siunitx/siunitx-locale.dtx +++ b/macros/latex/contrib/siunitx/siunitx-locale.dtx @@ -107,6 +107,12 @@ inter-unit-product = \, , output-decimal-marker = { , } } , + locale / SI .meta:n = + { + exponent-product = \times , + inter-unit-product = \, , + output-decimal-marker = { , } + } , locale / UK .meta:n = { exponent-product = \times , @@ -137,10 +143,12 @@ { \RequirePackage { translations } \DeclareTranslation { Catalan } { and } { i } + \DeclareTranslation { Slovene } { and } { in } \DeclareTranslation { Catalan } { to~(numerical~range) } { a } \DeclareTranslation { English } { to~(numerical~range) } { to } \DeclareTranslation { French } { to~(numerical~range) } { à } \DeclareTranslation { German } { to~(numerical~range) } { bis } + \DeclareTranslation { Slovene } { to~(numerical~range) } { do } \DeclareTranslation { Spanish } { to~(numerical~range) } { a } \keys_set:nn { siunitx } { diff --git a/macros/latex/contrib/siunitx/siunitx-symbol.dtx b/macros/latex/contrib/siunitx/siunitx-symbol.dtx index 8952aabeab..eaf2caac9b 100644 --- a/macros/latex/contrib/siunitx/siunitx-symbol.dtx +++ b/macros/latex/contrib/siunitx/siunitx-symbol.dtx @@ -118,6 +118,8 @@ \exp_after:wN \exp_after:wN \exp_after:wN \exp_not:N \char_generate:nn {#1} { 13 } \char_generate:nn {#2} { 12 } + \tl_if_blank:nF {#3} + { \char_generate:nn {#3} { 12 } } } } \cs_new:Npn \@@_deal_with_utf: { } @@ -230,7 +232,7 @@ % a mode-dependent definition. This doesn't work if the text mode symbol is % bust: the \pkg{fourier} package puts us in that position. % \begin{macrocode} - \@@_if_replace:NnT \ohm { "03A9 } + \@@_if_replace:NnT \ohm { "2126 } { \tl_set:Nx \l_@@_tmpa_tl { @@ -262,7 +264,7 @@ \bool_lazy_or:nnTF { \sys_if_engine_luatex_p: } { \sys_if_engine_xetex_p: } - { \@@_non_latin:n { "03A9 } } + { \@@_non_latin:n { "2126 } } { \exp_not:N \textohm } } \exp_not:N \fi diff --git a/macros/latex/contrib/siunitx/siunitx-unit.dtx b/macros/latex/contrib/siunitx/siunitx-unit.dtx index 677e05f750..1ac6db5596 100644 --- a/macros/latex/contrib/siunitx/siunitx-unit.dtx +++ b/macros/latex/contrib/siunitx/siunitx-unit.dtx @@ -2532,6 +2532,8 @@ \exp_after:wN \exp_after:wN \exp_after:wN \exp_not:N \char_generate:nn {#1} { 13 } \char_generate:nn {#2} { 12 } + \tl_if_blank:nF {#3} + { \char_generate:nn {#3} { 12 } } } } % \end{macrocode} @@ -2680,7 +2682,7 @@ % Named derived units: second half of alphabet. % \begin{macrocode} \siunitx_declare_unit:Nn \newton { N } -\siunitx_declare_unit:Nx \ohm { \@@_non_latin:n { "03A9 } } +\siunitx_declare_unit:Nx \ohm { \@@_non_latin:n { "2126 } } \siunitx_declare_unit:Nn \pascal { Pa } \siunitx_declare_unit:Nn \radian { rad } \siunitx_declare_unit:Nn \siemens { S } diff --git a/macros/latex/contrib/siunitx/siunitx.dtx b/macros/latex/contrib/siunitx/siunitx.dtx index 35902e25c7..400f4fa539 100644 --- a/macros/latex/contrib/siunitx/siunitx.dtx +++ b/macros/latex/contrib/siunitx/siunitx.dtx @@ -121,7 +121,7 @@ % % Identify the package and give the over all version information. % \begin{macrocode} -\ProvidesExplPackage {siunitx} {2022-01-13} {3.0.41} +\ProvidesExplPackage {siunitx} {2022-01-18} {3.0.42} {A comprehensive (SI) units package} % \end{macrocode} % @@ -200,11 +200,12 @@ % \subsection{Option handling} % % \begin{macrocode} -\RequirePackage { l3keys2e } -% \end{macrocode} -% -% \begin{macrocode} -\ProcessKeysOptions { siunitx } +\IfFormatAtLeastTF { 2022-06-01 } + { \ProcessKeyOptions [ siunitx ] } + { + \RequirePackage { l3keys2e } + \ProcessKeysOptions { siunitx } + } % \end{macrocode} % % \begin{macrocode} diff --git a/macros/latex/contrib/siunitx/siunitx.pdf b/macros/latex/contrib/siunitx/siunitx.pdf index 266462e8b6..e5d013218f 100644 Binary files a/macros/latex/contrib/siunitx/siunitx.pdf and b/macros/latex/contrib/siunitx/siunitx.pdf differ diff --git a/macros/latex/contrib/siunitx/siunitx.tex b/macros/latex/contrib/siunitx/siunitx.tex index 69f61e8c58..7306796936 100644 --- a/macros/latex/contrib/siunitx/siunitx.tex +++ b/macros/latex/contrib/siunitx/siunitx.tex @@ -2860,7 +2860,8 @@ same value (one of \opt{center}, \opt{right} or \opt{left}). \pkg{siunitx} allows the user to switch between the typographic conventions of different (geographical) areas by using locales. Currently, the package is supplied with configurations for locales \opt{UK}, \opt{US}, \opt{DE} -(Germany), \opt{FR} (French) and \opt{ZA} (South Africa). The \opt{locale} +(Germany), \opt{FR} (French), \opt{SI} (Slovene) and \opt{ZA} (South Africa). +The \opt{locale} option is used to switch to a particular locale. \begin{LaTeXdemo} \qty{1.234}{\metre}\\ -- cgit v1.2.3