summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/siunitx/siunitx-number.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-05-20 03:00:38 +0000
committerNorbert Preining <norbert@preining.info>2021-05-20 03:00:38 +0000
commit6d6c3b4ee419b9f485a213d2ece28b06e9ca2f7c (patch)
tree243789c085bcb650c397f86eeaaddbc45ca92dff /macros/latex/contrib/siunitx/siunitx-number.dtx
parent94c996b5f40175b4a858ddd1f19e3947198b9bd0 (diff)
CTAN sync 202105200300
Diffstat (limited to 'macros/latex/contrib/siunitx/siunitx-number.dtx')
-rw-r--r--macros/latex/contrib/siunitx/siunitx-number.dtx19
1 files changed, 14 insertions, 5 deletions
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: