texlive[66627] Master/texmf-dist: siunitx (14mar23)
commits+karl at tug.org
commits+karl at tug.org
Tue Mar 21 17:55:59 CET 2023
Revision: 66627
http://tug.org/svn/texlive?view=revision&revision=66627
Author: karl
Date: 2023-03-21 17:55:59 +0100 (Tue, 21 Mar 2023)
Log Message:
-----------
siunitx (14mar23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
trunk/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
trunk/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
trunk/Master/texmf-dist/source/latex/siunitx/siunitx-angle.dtx
trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
Modified: trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md 2023-03-21 16:55:38 UTC (rev 66626)
+++ trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md 2023-03-21 16:55:59 UTC (rev 66627)
@@ -7,6 +7,12 @@
## [Unreleased]
+## [v3.2.3] - 2023-03-14
+
+### Fixed
+- Allow for `parse-nmumbers = false` in handling `\ang` (see issues
+ [\#649](https://github.com/josephwright/siunitx/issues/649))
+
## [v3.2.2] - 2023-03-04
### Fixed
@@ -1876,7 +1882,8 @@
### Added
- First public testing release (as `si`)
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.2.2...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.2.3...HEAD
+[v3.2.3]: https://github.com/josephwright/siunitx/compare/v3.2.2...v3.2.3
[v3.2.2]: https://github.com/josephwright/siunitx/compare/v3.2.1...v3.2.2
[v3.2.1]: https://github.com/josephwright/siunitx/compare/v3.2.0...v3.2.1
[v3.2.0]: https://github.com/josephwright/siunitx/compare/v3.1.11...v3.2.0
Modified: trunk/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx-angle.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-angle.dtx 2023-03-21 16:55:38 UTC (rev 66626)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-angle.dtx 2023-03-21 16:55:59 UTC (rev 66627)
@@ -236,7 +236,7 @@
% \end{macrocode}
% \end{variable}
%
-% \begin{macro}{\siunitx_angle:n}
+% \begin{macro}{\siunitx_angle:n, \@@_angle:n}
% \begin{macro}{\siunitx_angle:nnn}
% \begin{macro}{\@@_arc_convert:n}
% The first step here is to force format conversion if required. Going to
@@ -245,6 +245,21 @@
% \begin{macrocode}
\cs_new_protected:Npn \siunitx_angle:n #1
{
+ \bool_if:NTF \l_siunitx_number_parse_bool
+ { \@@_angle:n {#1} }
+ {
+ \tl_if_blank:nF {#1}
+ {
+ \tl_set:Nn \l_@@_degrees_tl { \ensuremath {#1} }
+ \@@_arc_print:VVV
+ \l_@@_degrees_tl
+ \c_empty_tl
+ \c_empty_tl
+ }
+ }
+ }
+\cs_new_protected:Npn \@@_angle:n #1
+ {
\bool_if:NTF \l_@@_force_arc_bool
{ \exp_args:Ne \@@_arc_convert:n { \fp_eval:n {#1} } }
{
@@ -260,12 +275,27 @@
}
\cs_new_protected:Npn \siunitx_angle:nnn #1#2#3
{
- \bool_if:NTF \l_@@_force_decimal_bool
+ \bool_if:NTF \l_siunitx_number_parse_bool
{
- \exp_args:Ne \siunitx_angle:n
- { \fp_eval:n { #1 + (#2) / 60 + (#3) / 3600 } }
+ \bool_if:NTF \l_@@_force_decimal_bool
+ {
+ \exp_args:Ne \siunitx_angle:n
+ { \fp_eval:n { #1 + (#2) / 60 + (#3) / 3600 } }
+ }
+ { \@@_arc_sign:nnn {#1} {#2} {#3} }
}
- { \@@_arc_sign:nnn {#1} {#2} {#3} }
+ {
+ \tl_set:Nx \l_@@_degrees_tl
+ { \tl_if_blank:nF {#1} { \exp_not:n { \ensuremath {#1} } } }
+ \tl_set:Nx \l_@@_minutes_tl
+ { \tl_if_blank:nF {#2} { \exp_not:n { \ensuremath {#2} } } }
+ \tl_set:Nx \l_@@_seconds_tl
+ { \tl_if_blank:nF {#3} { \exp_not:n { \ensuremath {#3} } } }
+ \@@_arc_print:VVV
+ \l_@@_degrees_tl
+ \l_@@_minutes_tl
+ \l_@@_seconds_tl
+ }
}
\cs_new_protected:Npn \@@_arc_convert:n #1
{
@@ -439,18 +469,25 @@
{
\tl_if_blank:nF {#1}
{
- \bool_if:NTF \l_@@_astronomy_bool
- { \@@_arc_print_auxii:nw {#2} #1 \q_stop }
+ \bool_if:NTF \l_siunitx_number_parse_bool
{
- \@@_arc_print_auxv:w #1 \q_stop
+ \bool_if:NTF \l_@@_astronomy_bool
+ { \@@_arc_print_auxii:nw {#2} #1 \q_stop }
+ {
+ \@@_arc_print_auxv:w #1 \q_stop
+ \@@_arc_print_auxvi:n {#2}
+ }
+ }
+ {
+ \siunitx_print_number:n {#1}
\@@_arc_print_auxvi:n {#2}
}
- \tl_if_blank:nF {#3}
+ \tl_if_blank:nF {#3}
{
\nobreak
\l_@@_separator_tl
}
- }
+ }
}
\cs_generate_variant:Nn \@@_arc_print_auxi:nnn { nV }
% \end{macrocode}
Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx 2023-03-21 16:55:38 UTC (rev 66626)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx 2023-03-21 16:55:59 UTC (rev 66627)
@@ -122,7 +122,7 @@
%
% Identify the package and give the over all version information.
% \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2023-03-04} {3.2.2}
+\ProvidesExplPackage {siunitx} {2023-03-14} {3.2.3}
{A comprehensive (SI) units package}
% \end{macrocode}
%
Modified: trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty 2023-03-21 16:55:38 UTC (rev 66626)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty 2023-03-21 16:55:59 UTC (rev 66627)
@@ -42,7 +42,7 @@
}%
\endinput
}%
-\ProvidesExplPackage {siunitx} {2023-03-04} {3.2.2}
+\ProvidesExplPackage {siunitx} {2023-03-14} {3.2.3}
{A comprehensive (SI) units package}
\msg_new:nnnn { siunitx } { incompatible-package }
{ Package~'#1'~incompatible. }
@@ -107,6 +107,21 @@
\bool_new:N \l__siunitx_angle_force_decimal_bool
\cs_new_protected:Npn \siunitx_angle:n #1
{
+ \bool_if:NTF \l_siunitx_number_parse_bool
+ { \__siunitx_angle_angle:n {#1} }
+ {
+ \tl_if_blank:nF {#1}
+ {
+ \tl_set:Nn \l__siunitx_angle_degrees_tl { \ensuremath {#1} }
+ \__siunitx_angle_arc_print:VVV
+ \l__siunitx_angle_degrees_tl
+ \c_empty_tl
+ \c_empty_tl
+ }
+ }
+ }
+\cs_new_protected:Npn \__siunitx_angle_angle:n #1
+ {
\bool_if:NTF \l__siunitx_angle_force_arc_bool
{ \exp_args:Ne \__siunitx_angle_arc_convert:n { \fp_eval:n {#1} } }
{
@@ -122,12 +137,27 @@
}
\cs_new_protected:Npn \siunitx_angle:nnn #1#2#3
{
- \bool_if:NTF \l__siunitx_angle_force_decimal_bool
+ \bool_if:NTF \l_siunitx_number_parse_bool
{
- \exp_args:Ne \siunitx_angle:n
- { \fp_eval:n { #1 + (#2) / 60 + (#3) / 3600 } }
+ \bool_if:NTF \l__siunitx_angle_force_decimal_bool
+ {
+ \exp_args:Ne \siunitx_angle:n
+ { \fp_eval:n { #1 + (#2) / 60 + (#3) / 3600 } }
+ }
+ { \__siunitx_angle_arc_sign:nnn {#1} {#2} {#3} }
}
- { \__siunitx_angle_arc_sign:nnn {#1} {#2} {#3} }
+ {
+ \tl_set:Nx \l__siunitx_angle_degrees_tl
+ { \tl_if_blank:nF {#1} { \exp_not:n { \ensuremath {#1} } } }
+ \tl_set:Nx \l__siunitx_angle_minutes_tl
+ { \tl_if_blank:nF {#2} { \exp_not:n { \ensuremath {#2} } } }
+ \tl_set:Nx \l__siunitx_angle_seconds_tl
+ { \tl_if_blank:nF {#3} { \exp_not:n { \ensuremath {#3} } } }
+ \__siunitx_angle_arc_print:VVV
+ \l__siunitx_angle_degrees_tl
+ \l__siunitx_angle_minutes_tl
+ \l__siunitx_angle_seconds_tl
+ }
}
\cs_new_protected:Npn \__siunitx_angle_arc_convert:n #1
{
@@ -249,13 +279,20 @@
{
\tl_if_blank:nF {#1}
{
- \bool_if:NTF \l__siunitx_angle_astronomy_bool
- { \__siunitx_angle_arc_print_auxii:nw {#2} #1 \q_stop }
+ \bool_if:NTF \l_siunitx_number_parse_bool
{
- \__siunitx_angle_arc_print_auxv:w #1 \q_stop
+ \bool_if:NTF \l__siunitx_angle_astronomy_bool
+ { \__siunitx_angle_arc_print_auxii:nw {#2} #1 \q_stop }
+ {
+ \__siunitx_angle_arc_print_auxv:w #1 \q_stop
+ \__siunitx_angle_arc_print_auxvi:n {#2}
+ }
+ }
+ {
+ \siunitx_print_number:n {#1}
\__siunitx_angle_arc_print_auxvi:n {#2}
}
- \tl_if_blank:nF {#3}
+ \tl_if_blank:nF {#3}
{
\nobreak
\l__siunitx_angle_separator_tl
More information about the tex-live-commits
mailing list.