summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/siunitx/siunitx.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/siunitx/siunitx.tex')
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx.tex63
1 files changed, 38 insertions, 25 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.tex b/Master/texmf-dist/source/latex/siunitx/siunitx.tex
index 62fa382f866..8854ff3f75b 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx.tex
+++ b/Master/texmf-dist/source/latex/siunitx/siunitx.tex
@@ -1256,22 +1256,23 @@ Table~\ref{tab:opt:num:in}.
Type &
\multicolumn{1}{l@{}}{Default} \\
\midrule
- evaluate-expression & Switch & false \\
- expression & Literal & |#1| \\^^A (
- input-close-uncertainty & Literal & ) \\
- input-comparators & Literal &
+ evaluate-expression & Switch & false \\
+ expression & Literal & |#1| \\^^A (
+ input-close-uncertainty & Literal & ) \\
+ input-comparators & Literal &
<=>\cs{approx}\cs{ge}\cs{geq} \\
& & \cs{gg}\cs{le}\cs{leq}\cs{ll} \cs{sim} \\
- input-decimal-markers & Literal & ., \\
- input-digits & Literal & 0123456789 \\
- input-exponent-markers & Literal & dDeE \\
- input-ignore & Literal & \meta{none} \\
- input-open-uncertainty & Literal & ( \\ ^^A )
- input-signs & Literal & +-\cs{pm}\cs{mp} \\
- input-uncertainty-signs & Literal & \cs{pm} \\
- parse-numbers & Switch & true \\
- retain-explicit-plus & Switch & false \\
- retain-zero-uncertainty & Switch & false \\
+ input-decimal-markers & Literal & ., \\
+ input-digits & Literal & 0123456789 \\
+ input-exponent-markers & Literal & dDeE \\
+ input-ignore & Literal & \meta{none} \\
+ input-open-uncertainty & Literal & ( \\ ^^A )
+ input-signs & Literal & +-\cs{pm}\cs{mp} \\
+ input-uncertainty-signs & Literal & \cs{pm} \\
+ parse-numbers & Switch & true \\
+ retain-explicit-decimal-marker & Switch & false \\
+ retain-explicit-plus & Switch & false \\
+ retain-zero-uncertainty & Switch & false \\
\bottomrule
\end{tabular}
\end{table}
@@ -1361,15 +1362,21 @@ most notably in that a decimal marker must be |.|.
\qty[expression = 10 * (#1)]{2 + 4 * 3}{\joule}
\end{LaTeXdemo}
+\DescribeOption{retain-explicit-decimal-marker}
\DescribeOption{retain-explicit-plus}
\DescribeOption{retain-zero-uncertainty}
-The inclusion of a leading plus sign is usually unnecessary for positive
-numbers, and so they are not retained as-standard when parsing. The
-\opt{retain-explicit-plus} option is available to control this behaviour.
-Similarly, an uncertainty of zero is normally not meaningful, and so is
-ignored by the parser. This can be controlled using the
+In some areas, a trailing decimal marker with no decimal part present is used
+to show that zeros in the integer part are significant. This can be enabled
+using the \opt{retain-explicit-decimal-marker} option. The inclusion of a
+leading plus sign is usually unnecessary for positive numbers, and so they are
+not retained as-standard when parsing. The \opt{retain-explicit-plus} option is
+available to control this behaviour. Similarly, an uncertainty of zero is
+normally not meaningful, and so is ignored by the parser. This can be
+controlled using the
\opt{retain-zero-uncertainty} option.
\begin{LaTeXdemo}
+ \num{10.} \\
+ \num[retain-explicit-decimal-marker]{10.} \\
\num{+345} \\
\num[retain-explicit-plus]{+345} \\
\num{12.3(0)} \\
@@ -1589,6 +1596,7 @@ conveys. The options are summarised in Table~\ref{tab:opt:num:out}.
print-implicit-plus & Switch & false \\
print-unity-mantissa & Switch & true \\
print-zero-exponent & Switch & false \\
+ print-zero-integer & Switch & false \\
tight-spacing & Switch & false \\
uncertainty-mode & Choice & compact \\
uncertainty-separator & Literal & \meta{none} \\
@@ -1750,16 +1758,21 @@ if no sign was present in the input.
\DescribeOption{print-unity-mantissa}
\DescribeOption{print-zero-exponent}
-Printing of a mantissa of $1$ and an exponent of $0$ is controllable by the
-options \opt{print-unity-mantissa} and \opt{print-zero-exponent}. The standard
-settings print a mantissa of $1$ but omit an exponent of $0$. Notice that where
-both are set to \opt{false}, the value $1$ will still be printed
-(\foreign{i.e.}~\opt{print-zero-exponent} has a higher priority).
+\DescribeOption{print-zero-integer}
+Printing of a mantissa of $1$, an exponent of $0$ and an integer component of
+$0$ is controllable by the options \opt{print-unity-mantissa},
+\opt{print-zero-exponent} and \opt{print-zero-integer}. The standard settings
+print a mantissa of $1$ and an integer part of $0$, but omit an exponent of
+$0$. Notice that where both \opt{print-unity-mantissa} and
+\opt{print-zero-exponent} are set to \opt{false}, the value $1$ will still be
+printed (\foreign{i.e.}~\opt{print-zero-exponent} has a higher priority).
\begin{LaTeXdemo}
\num{1e4} \\
\num[print-unity-mantissa = false]{1e4} \\
\num{444e0} \\
- \num[print-zero-exponent = true]{444e0}
+ \num[print-zero-exponent = true]{444e0} \\
+ \num{0.123} \\
+ \num[print-zero-integer = false]{0.123}
\end{LaTeXdemo}
\subsection{Lists, products and ranges}