diff options
author | Karl Berry <karl@freefriends.org> | 2021-08-04 21:15:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-08-04 21:15:29 +0000 |
commit | ce7d64db1fb70a31bc172c3c6f2c3f62cac9f785 (patch) | |
tree | 43f874041a179da1ddf6507df7a7ececbc842abf /Master/texmf-dist/source/latex/siunitx/siunitx.tex | |
parent | 84add80fcbe06487790abb0c888ad0675a9d2f8d (diff) |
siunitx (4aug21)
git-svn-id: svn://tug.org/texlive/trunk@60164 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/siunitx/siunitx.tex')
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx.tex | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.tex b/Master/texmf-dist/source/latex/siunitx/siunitx.tex index 735ab2d0d8c..136283140d6 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx.tex +++ b/Master/texmf-dist/source/latex/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} \\ |