diff options
author | Karl Berry <karl@freefriends.org> | 2021-07-20 19:44:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-07-20 19:44:24 +0000 |
commit | 07ec69b604e0c1a737d5471382a5f874feaab7c3 (patch) | |
tree | ffdfa3b662f0e8b822745f46d427791e117e5858 | |
parent | 5f2d9fa75323d09bc44900bfc55695056bd46c88 (diff) |
siunitx (20jul21)
git-svn-id: svn://tug.org/texlive/trunk@60000 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md | 18 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf | bin | 1497392 -> 1496050 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/siunitx/siunitx.pdf | bin | 635531 -> 635529 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx | 13 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx-symbol.dtx | 48 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx | 8 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx.dtx | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/siunitx/siunitx.sty | 63 |
8 files changed, 67 insertions, 85 deletions
diff --git a/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md b/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md index d02f5415818..83907537c68 100644 --- a/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf b/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf Binary files differindex 92e8cf9837f..513b2d7da8d 100644 --- a/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf +++ b/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf diff --git a/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf b/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf Binary files differindex 7ffe0267414..041c2f21c7e 100644 --- a/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf +++ b/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx index 108925d535e..59a6dd8129c 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx +++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/siunitx/siunitx-symbol.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-symbol.dtx index c86d77e9f18..a0c9368b216 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx-symbol.dtx +++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx index b0602c25433..be3e6eaf613 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx +++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx index 7111f983922..8f9b2dab570 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx +++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty index 79af4630af0..03d48ee1604 100644 --- a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty +++ b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty @@ -42,7 +42,7 @@ }% \endinput }% -\ProvidesExplPackage {siunitx} {2021-07-06} {3.0.19} +\ProvidesExplPackage {siunitx} {2021-07-20} {3.0.21} {A comprehensive (SI) units package} \msg_new:nnnn { siunitx } { incompatible-package } { Package~'#1'~incompatible. } @@ -1641,16 +1641,9 @@ \cs_new_protected:Npn \__siunitx_number_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__siunitx_number_parsed_tl - \tl_clear:N \l__siunitx_number_flex_tl - } - { - \__siunitx_number_parse_combine_uncert_auxii:fnnnn - { \int_eval:n { \tl_count:n {#3} - \tl_count:n {#7} } } - {#2} {#3} {#6} {#7} - } + \__siunitx_number_parse_combine_uncert_auxii:fnnnn + { \int_eval:n { \tl_count:n {#3} - \tl_count:n {#7} } } + {#2} {#3} {#6} {#7} } \cs_new_protected:Npn \__siunitx_number_parse_combine_uncert_auxii:nnnnn #1 @@ -5077,7 +5070,7 @@ \tl_clear:N \l__siunitx_unit_separator_tl } \cs_new_protected:Npn \__siunitx_unit_format_literal_auxix:nn #1#2 - { \__siunitx_unit_format_literal_auxvi:nN { #1 {#2} } } + { \__siunitx_unit_format_literal_auxv:nw { #1 {#2} } } \use:x { \cs_new_protected:Npn \exp_not:N \__siunitx_unit_format_literal_auxx:nw @@ -5769,8 +5762,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 } } } \siunitx_declare_unit:Nn \kilogram { \kilo \gram } @@ -6118,8 +6110,7 @@ \__siunitx_symbol_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 \__siunitx_symbol_deal_with_utf: { } @@ -6147,29 +6138,25 @@ \__siunitx_symbol_if_replace:NnT \arcminute { "02B9 } { \siunitx_declare_unit:Nn \arcminute - { \exp_not:N \ensuremath { { } ' } } + { \ensuremath { { } ' } } } \__siunitx_symbol_if_replace:NnT \arcsecond { "02BA } { \siunitx_declare_unit:Nn \arcsecond - { \exp_not:N \ensuremath { { } '' } } + { \ensuremath { { } '' } } } \__siunitx_symbol_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 } - { \__siunitx_symbol_non_latin:n { "00B0 } } - } + \@ifpackageloaded { inputenc } + { \exp_not:N \textdegree } + { \__siunitx_symbol_non_latin:n { "00B0 } } } - { quantity-product = { } } - } + } + { quantity-product = { } } } \group_begin: \tl_set:Nx \l__siunitx_symbol_tmpa_tl { \__siunitx_symbol_non_latin:n { "00B0 } C } @@ -6180,20 +6167,16 @@ \str_if_eq:VVTF \l__siunitx_symbol_tmpa_tl \l__siunitx_symbol_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 } - { \__siunitx_symbol_non_latin:n { "00B0 } } - } - C + \@ifpackageloaded { inputenc } + { \exp_not:N \textdegree } + { \__siunitx_symbol_non_latin:n { "00B0 } } } - } + C + } } { \group_end: } \__siunitx_symbol_if_replace:NnT \ohm { "03A9 } |