summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-05-20 20:17:51 +0000
committerKarl Berry <karl@freefriends.org>2021-05-20 20:17:51 +0000
commit5d4d6e312887e7c62c64d35f26f62f135998afa9 (patch)
tree5cdafd396e4a508472cb363f360c639d5e5dd6ae /Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
parent7f67c7c0b66228ec6cdb3c7e8c42b50a5ad40105 (diff)
siunitx (20may21)
git-svn-id: svn://tug.org/texlive/trunk@59279 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx')
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx19
1 files changed, 14 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
index adc798fb2ca..45f8ad25627 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
+++ b/Master/texmf-dist/source/latex/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: