diff options
author | Karl Berry <karl@freefriends.org> | 2021-07-05 20:54:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-07-05 20:54:36 +0000 |
commit | 919d654bed4c7ab98fc426801eaa655da8f75797 (patch) | |
tree | 96f9a08c76de72e825361613f073b831ca8c7ac5 /Master | |
parent | 0b1e7a48f8935511132fbd01249c6964e780f2f3 (diff) |
siunitx (5jul21)
git-svn-id: svn://tug.org/texlive/trunk@59844 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md | 9 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf | bin | 1493737 -> 1493556 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/siunitx/siunitx.pdf | bin | 635011 -> 635018 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx-quantity.dtx | 23 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx.dtx | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/siunitx/siunitx.sty | 20 |
6 files changed, 40 insertions, 14 deletions
diff --git a/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md b/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md index 8cd9f6dfeed..829db2c92a5 100644 --- a/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md +++ b/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md @@ -7,6 +7,12 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to ## [Unreleased] +## [v3.0.18] + +### Fixed +- Printing of reciprocal units when `per-mode = symbol` is active + (issue #500) + ## [v3.0.17] ### Fixed @@ -1414,7 +1420,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.17...HEAD +[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.18...HEAD +[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 [v3.0.16]: https://github.com/josephwright/siunitx/compare/v3.0.15...v3.0.16 [v3.0.15]: https://github.com/josephwright/siunitx/compare/v3.0.14...v3.0.15 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 a3f4606a73b..ed17e84c1c8 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 ed08b36163f..57e3ffb45ed 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-quantity.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-quantity.dtx index 353fe94e6e8..e4dc93200e7 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx-quantity.dtx +++ b/Master/texmf-dist/source/latex/siunitx/siunitx-quantity.dtx @@ -372,18 +372,29 @@ % } % For printing a single part of a quantity. This is needed for compound % quantities and so is public: that's also the reason for passing both -% argument explicitly. +% argument explicitly. The lazy test here is looking for the case where +% a |1| has been inserted at the start of a format unit \emph{and} we +% have some other number to print: the |1| is then removed and there is +% no space inserted. % \begin{macrocode} \cs_new_protected:Npn \siunitx_quantity_print:nn #1#2 { \siunitx_print_number:n {#1} \tl_if_blank:nF {#2} { - \tl_use:N \l_@@_product_tl - \bool_if:NTF \l_@@_break_bool - { \penalty \binoppenalty } - { \nobreak } - \siunitx_print_unit:n {#2} + \bool_lazy_or:nnTF + { \tl_if_blank_p:n {#1} } + { ! \tl_if_head_eq_charcode_p:nN {#2} { 1 } } + { + \tl_use:N \l_@@_product_tl + \bool_if:NTF \l_@@_break_bool + { \penalty \binoppenalty } + { \nobreak } + \siunitx_print_unit:n {#2} + } + { + \exp_args:No \siunitx_print_unit:n { \use_none:n #2 } + } } } \cs_generate_variant:Nn \siunitx_quantity_print:nn { nV , VV , xV } diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx index 30afff3ae2b..52da6d7b36f 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-06-29} {3.0.17} +\ProvidesExplPackage {siunitx} {2021-07-04} {3.0.18} {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 681d6bf8757..6faa306cf73 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-06-29} {3.0.17} +\ProvidesExplPackage {siunitx} {2021-07-04} {3.0.18} {A comprehensive (SI) units package} \msg_new:nnnn { siunitx } { incompatible-package } { Package~'#1'~incompatible. } @@ -6046,11 +6046,19 @@ \siunitx_print_number:n {#1} \tl_if_blank:nF {#2} { - \tl_use:N \l__siunitx_quantity_product_tl - \bool_if:NTF \l__siunitx_quantity_break_bool - { \penalty \binoppenalty } - { \nobreak } - \siunitx_print_unit:n {#2} + \bool_lazy_or:nnTF + { \tl_if_blank_p:n {#1} } + { ! \tl_if_head_eq_charcode_p:nN {#2} { 1 } } + { + \tl_use:N \l__siunitx_quantity_product_tl + \bool_if:NTF \l__siunitx_quantity_break_bool + { \penalty \binoppenalty } + { \nobreak } + \siunitx_print_unit:n {#2} + } + { + \exp_args:No \siunitx_print_unit:n { \use_none:n #2 } + } } } \cs_generate_variant:Nn \siunitx_quantity_print:nn { nV , VV , xV } |