diff options
author | Norbert Preining <norbert@preining.info> | 2021-07-21 03:00:43 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-07-21 03:00:43 +0000 |
commit | d06b4118c72d0c81fc0760e24add55e808471dbc (patch) | |
tree | b66ab79ad229352b74d6e1f7ed8dc2884e671737 /macros/latex/contrib/siunitx | |
parent | 933416e3a978851a263168f5daad76eea18de483 (diff) |
CTAN sync 202107210300
Diffstat (limited to 'macros/latex/contrib/siunitx')
-rw-r--r-- | macros/latex/contrib/siunitx/CHANGELOG.md | 18 | ||||
-rw-r--r-- | macros/latex/contrib/siunitx/siunitx-code.pdf | bin | 1497392 -> 1496050 bytes | |||
-rw-r--r-- | macros/latex/contrib/siunitx/siunitx-number.dtx | 13 | ||||
-rw-r--r-- | macros/latex/contrib/siunitx/siunitx-symbol.dtx | 48 | ||||
-rw-r--r-- | macros/latex/contrib/siunitx/siunitx-unit.dtx | 8 | ||||
-rw-r--r-- | macros/latex/contrib/siunitx/siunitx.dtx | 2 | ||||
-rw-r--r-- | macros/latex/contrib/siunitx/siunitx.pdf | bin | 635531 -> 635529 bytes |
7 files changed, 44 insertions, 45 deletions
diff --git a/macros/latex/contrib/siunitx/CHANGELOG.md b/macros/latex/contrib/siunitx/CHANGELOG.md index d02f541581..83907537c6 100644 --- a/macros/latex/contrib/siunitx/CHANGELOG.md +++ b/macros/latex/contrib/siunitx/CHANGELOG.md @@ -7,6 +7,20 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to ## [Unreleased] +## [v3.0.21] + +### Fixed +- Print degree symbol if `fontspec` package is loaded with + `no-math` option (issue #505) +- Handling of 'over-long' separated uncertainties (issue #506) +- Symbol for arcs in text mode (issue #507) + +## [v3.0.20] + +### Fixed +- Interaction with `kotex` (issue #502) +- Handling of groups in literal units (issue #503) + ## [v3.0.19] ### Fixed @@ -1425,7 +1439,9 @@ 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.19...HEAD +[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.21...HEAD +[v3.0.21]: https://github.com/josephwright/siunitx/compare/v3.0.20...v3.0.21 +[v3.0.20]: https://github.com/josephwright/siunitx/compare/v3.0.19...v3.0.20 [v3.0.19]: https://github.com/josephwright/siunitx/compare/v3.0.18...v3.0.19 [v3.0.18]: https://github.com/josephwright/siunitx/compare/v3.0.17...v3.0.18 [v3.0.17]: https://github.com/josephwright/siunitx/compare/v3.0.16...v3.0.17 diff --git a/macros/latex/contrib/siunitx/siunitx-code.pdf b/macros/latex/contrib/siunitx/siunitx-code.pdf Binary files differindex 92e8cf9837..513b2d7da8 100644 --- a/macros/latex/contrib/siunitx/siunitx-code.pdf +++ b/macros/latex/contrib/siunitx/siunitx-code.pdf diff --git a/macros/latex/contrib/siunitx/siunitx-number.dtx b/macros/latex/contrib/siunitx/siunitx-number.dtx index 108925d535..59a6dd8129 100644 --- a/macros/latex/contrib/siunitx/siunitx-number.dtx +++ b/macros/latex/contrib/siunitx/siunitx-number.dtx @@ -906,16 +906,9 @@ \cs_new_protected:Npn \@@_parse_combine_uncert_auxi:nnnnnnnn #1#2#3#4#5#6#7#8 { - \int_compare:nNnTF { \tl_count:n {#6} } > { \tl_count:n {#2} } - { - \tl_clear:N \l_@@_parsed_tl - \tl_clear:N \l_@@_flex_tl - } - { - \@@_parse_combine_uncert_auxii:fnnnn - { \int_eval:n { \tl_count:n {#3} - \tl_count:n {#7} } } - {#2} {#3} {#6} {#7} - } + \@@_parse_combine_uncert_auxii:fnnnn + { \int_eval:n { \tl_count:n {#3} - \tl_count:n {#7} } } + {#2} {#3} {#6} {#7} } \cs_new_protected:Npn \@@_parse_combine_uncert_auxii:nnnnn #1 diff --git a/macros/latex/contrib/siunitx/siunitx-symbol.dtx b/macros/latex/contrib/siunitx/siunitx-symbol.dtx index c86d77e9f1..a0c9368b21 100644 --- a/macros/latex/contrib/siunitx/siunitx-symbol.dtx +++ b/macros/latex/contrib/siunitx/siunitx-symbol.dtx @@ -117,8 +117,7 @@ \@@_deal_with_utf: \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 } + \char_generate:nn {#2} { 12 } } } \cs_new:Npn \@@_deal_with_utf: { } @@ -165,34 +164,29 @@ \@@_if_replace:NnT \arcminute { "02B9 } { \siunitx_declare_unit:Nn \arcminute - { \exp_not:N \ensuremath { { } ' } } + { \ensuremath { { } ' } } } \@@_if_replace:NnT \arcsecond { "02BA } { \siunitx_declare_unit:Nn \arcsecond - { \exp_not:N \ensuremath { { } '' } } + { \ensuremath { { } '' } } } % \end{macrocode} -% For |\degree|, direct input works in text mode so there is -% only a need to tidy up for math mode. If \pkg{fontspec} is loaded then that -% problem goes away, so nothing needs to be done. +% For |\degree|, direct input works in text mode so there is only a need to +% tidy up for math mode. % \begin{macrocode} \@@_if_replace:NnT \degree { "00B0 } { - \@ifpackageloaded { fontspec } - { } + \siunitx_declare_unit:Nxn \degree { - \siunitx_declare_unit:Nxn \degree + \exp_not:N \text { - \exp_not:N \text - { - \@ifpackageloaded { inputenc } - { \exp_not:N \textdegree } - { \@@_non_latin:n { "00B0 } } - } + \@ifpackageloaded { inputenc } + { \exp_not:N \textdegree } + { \@@_non_latin:n { "00B0 } } } - { quantity-product = { } } - } + } + { quantity-product = { } } } % \end{macrocode} % For |\degreeCelsius|, much the same to think about but the comparison @@ -207,20 +201,16 @@ \str_if_eq:VVTF \l_@@_tmpa_tl \l_@@_tmpb_tl { \group_end: - \@ifpackageloaded { fontspec } - { } + \siunitx_declare_unit:Nx \degreeCelsius { - \siunitx_declare_unit:Nx \degreeCelsius + \exp_not:N \text { - \exp_not:N \text - { - \@ifpackageloaded { inputenc } - { \exp_not:N \textdegree } - { \@@_non_latin:n { "00B0 } } - } - C + \@ifpackageloaded { inputenc } + { \exp_not:N \textdegree } + { \@@_non_latin:n { "00B0 } } } - } + C + } } { \group_end: } % \end{macrocode} diff --git a/macros/latex/contrib/siunitx/siunitx-unit.dtx b/macros/latex/contrib/siunitx/siunitx-unit.dtx index b0602c2543..be3e6eaf61 100644 --- a/macros/latex/contrib/siunitx/siunitx-unit.dtx +++ b/macros/latex/contrib/siunitx/siunitx-unit.dtx @@ -1351,7 +1351,7 @@ \tl_clear:N \l_@@_separator_tl } \cs_new_protected:Npn \@@_format_literal_auxix:nn #1#2 - { \@@_format_literal_auxvi:nN { #1 {#2} } } + { \@@_format_literal_auxv:nw { #1 {#2} } } \use:x { \cs_new_protected:Npn \exp_not:N \@@_format_literal_auxx:nw @@ -2511,7 +2511,8 @@ % \begin{macro}{\@@_non_latin:nnnn} % A small amount of code to make it convenient to include non-Latin % characters in units without having to directly include them in the -% sources directly. +% sources directly. We only make the first token active as some packages +% (\foreign{e.g.}~\pkg{kotex}) do this. % \begin{macrocode} \bool_lazy_or:nnTF { \sys_if_engine_luatex_p: } @@ -2530,8 +2531,7 @@ { \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 } + \char_generate:nn {#2} { 12 } } } % \end{macrocode} diff --git a/macros/latex/contrib/siunitx/siunitx.dtx b/macros/latex/contrib/siunitx/siunitx.dtx index 7111f98392..8f9b2dab57 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} {2021-07-06} {3.0.19} +\ProvidesExplPackage {siunitx} {2021-07-20} {3.0.21} {A comprehensive (SI) units package} % \end{macrocode} % diff --git a/macros/latex/contrib/siunitx/siunitx.pdf b/macros/latex/contrib/siunitx/siunitx.pdf Binary files differindex 7ffe026741..041c2f21c7 100644 --- a/macros/latex/contrib/siunitx/siunitx.pdf +++ b/macros/latex/contrib/siunitx/siunitx.pdf |