summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/siunitx/siunitx.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/siunitx/siunitx.tex')
-rw-r--r--macros/latex/contrib/siunitx/siunitx.tex7
1 files changed, 5 insertions, 2 deletions
diff --git a/macros/latex/contrib/siunitx/siunitx.tex b/macros/latex/contrib/siunitx/siunitx.tex
index 735ab2d0d8..136283140d 100644
--- a/macros/latex/contrib/siunitx/siunitx.tex
+++ b/macros/latex/contrib/siunitx/siunitx.tex
@@ -314,8 +314,8 @@ optional argument, \meta{options}, and one mandatory one, \meta{number}. The
contents of \meta{number} are automatically formatted. The formatter removes
both \enquote{soft} (\verb*| |) and \enquote{hard} spaces (|\,| and |~|),
automatically identifies exponents (as standard marked using |e|, |E|, |d| or
-|D|) and adds the appropriate spacing of large numbers. With the standard
-settings a leading zero is added before a decimal marker, if needed: both |.|
+|D|) and adds the appropriate spacing of large numbers.If required,
+a leading zero is added before a decimal marker: both |.|
and "," are recognised as decimal markers.
\begin{LaTeXdemo}
\num{123} \\
@@ -2158,6 +2158,7 @@ the output directly (Table~\ref{tab:opt:units:out}).
\midrule
bracket-unit-denominator & Switch & true \\
forbid-literal-units & Switch & false \\
+ fraction-command & Literal & \cs{frac} \\
inter-unit-product & Literal & \cs{,} \\
parse-units & Switch & true \\
per-mode & Choice & power \\
@@ -2183,11 +2184,13 @@ centred dot. To get the correct spacing it is necessary to use
\DescribeOption{per-mode}
\DescribeOption{per-symbol}
+\DescribeOption{fraction-command}
\DescribeOption{bracket-unit-denominator}
The handling of \cs{per} is altered using the \opt{per-mode} choice option. The
standard setting is \opt{power}, meaning that \cs{per} generates reciprocal
powers for units. Setting the option to \opt{fraction} uses the |\frac|
function to typeset the positive and negative powers of a unit separately.
+The exact function can be adjusted using the \opt{fraction-command} option.
\begin{LaTeXdemo}
\unit{\joule\per\mole\per\kelvin} \\
\unit{\metre\per\second\squared} \\