From 6d6c3b4ee419b9f485a213d2ece28b06e9ca2f7c Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 20 May 2021 03:00:38 +0000 Subject: CTAN sync 202105200300 --- macros/latex/contrib/siunitx/siunitx-number.dtx | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'macros/latex/contrib/siunitx/siunitx-number.dtx') diff --git a/macros/latex/contrib/siunitx/siunitx-number.dtx b/macros/latex/contrib/siunitx/siunitx-number.dtx index adc798fb2c..45f8ad2562 100644 --- a/macros/latex/contrib/siunitx/siunitx-number.dtx +++ b/macros/latex/contrib/siunitx/siunitx-number.dtx @@ -59,6 +59,17 @@ % % \begin{documentation} % +% This submodule is dedicated to parsing and formatting numbers. A small number +% of \LaTeXe{} math mode commands are assumed to be available as part of the +% formatted output. The sign commands \cs{mp}, \cs{pm}, \cs{ll}, \cs{le}, +% \cs{gg} and \cs{ge} are used to replace two-character input; \cs{pm} +% is also required for the output of uncertainties. The standard settings +% require \cs{times}. For the display of colored negative numbers, the command +% \cs{color} is assumed to be available. Where the latter may apply, numbers +% should be printed inside a group: note that \TeX{} grouping is not added +% \emph{within} formatted numbers as they may need to be decomposed into parts +% (see \cs{siunitx_number_output:NN}). +% % \section{Formatting numbers} % % \begin{function}{\siunitx_number_parse:nN, \siunitx_number_parse:VN} @@ -3085,11 +3096,9 @@ \cs_new:Npn \@@_output_sign_color:w #1 \@@_output_end: { - \exp_not:N \textcolor { \exp_not:V \l_@@_negative_color_tl } - { - #1 - \@@_output_end: - } + \exp_not:N \color { \exp_not:V \l_@@_negative_color_tl } + #1 + \@@_output_end: } \cs_new:Npn \@@_output_sign_brackets:w #1 \@@_output_end: -- cgit v1.2.3