diff --git a/MANIFEST b/MANIFEST index da76379dc..4ec9ffbc9 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1012,6 +1012,9 @@ t/complex/labelled.latexml t/complex/physics.pdf t/complex/physics.tex t/complex/physics.xml +t/complex/si_v2.pdf +t/complex/si_v2.tex +t/complex/si_v2.xml t/complex/si.pdf t/complex/si.tex t/complex/si.xml diff --git a/lib/LaTeXML/Package/siunitx.sty.ltxml b/lib/LaTeXML/Package/siunitx.sty.ltxml index c174f47fb..9808305b4 100644 --- a/lib/LaTeXML/Package/siunitx.sty.ltxml +++ b/lib/LaTeXML/Package/siunitx.sty.ltxml @@ -765,6 +765,9 @@ DefMacro('\num OptionalKeyVals:SIX {}', sub { my $result = six_wrap(six_format_number(six_parse_number($gullet, $number))); six_end_processing(); return $result; }); +# V3 \num no longer processes complex, nor products, defines two new commands +Let(T_CS('\complexnum'),T_CS('\num')); +Let(T_CS('\numproduct'),T_CS('\num')); # \numlist[options]{number;number;...} DefMacro('\numlist OptionalKeyVals:SIX {}', sub { @@ -1158,6 +1161,8 @@ DefMacro('\SI OptionalKeyVals:SIX {}{}', sub { $fnumber, I_wrap({}, six_process_units($units)))); six_end_processing(); return $result; }); +# V3 \num no longer processes complex, nor products, defines two new commands +Let(T_CS('\qtyproduct'),T_CS('\si')); # \SIlist[options]{number;number;...}{units} DefMacro('\SIlist OptionalKeyVals:SIX {}{}', sub { diff --git a/t/80_complex.t b/t/80_complex.t index 901d04a18..8af5c5623 100644 --- a/t/80_complex.t +++ b/t/80_complex.t @@ -13,4 +13,8 @@ latexml_tests("t/complex", texlive_min => 2021}, si => { env=>'CI', # only runs in continuous integration - packages => 'siunitx.sty', texlive_min => 2015 } }); + packages => 'siunitx.sty', texlive_min => 2021 }, + si_v2 => { + env=>'CI', # only runs in continuous integration + packages => 'siunitx.sty', texlive_min => 2015 }, + }); diff --git a/t/complex/si.pdf b/t/complex/si.pdf index d7fa36ff4..63b2df838 100644 Binary files a/t/complex/si.pdf and b/t/complex/si.pdf differ diff --git a/t/complex/si.tex b/t/complex/si.tex index f94d9c5cb..cb1338c12 100644 --- a/t/complex/si.tex +++ b/t/complex/si.tex @@ -6,6 +6,10 @@ \usepackage{multirow} \usepackage{booktabs} +% recover version 2's {s} column type +%%\usepackage{collcell} +%%\newcolumntype{s}{>{\collectcell\si}c<{\endcollectcell}} + \DeclareSIQualifier\polymer{pol} \DeclareSIQualifier\catalyst{cat} \DeclareSIQualifier\isotropic{i} %? @@ -22,7 +26,7 @@ \def\mabbra{a} \DeclareSIUnit\mabbrb{\mabbra} -\DeclareSIPrefix\killer{\kilo}{3} +%%\DeclareSIPrefix\killer{\kilo}{3} \usepackage{amsmath} \begin{document} @@ -54,12 +58,12 @@ \subsection{General} %\num{\sqrt{2}}\\ %\num{{a word}}\\ \num{12345,67890}\\ -\num{1+-2i}\\ +\complexnum{1+-2i}\\ \num{.3e45}\\ -\num{1.654 x 2.34 x 3.430}\\ -\num{\pi}\\ -\num{2\pi}\\ -\num{\pi/3}\\ +\numproduct{1.654 x 2.34 x 3.430}\\ +%%\num{\pi}\\ +%%\num{2\pi}\\ +%%\num{\pi/3}\\ \num{123}\\ \num{1234}\\ @@ -75,19 +79,19 @@ \subsection{General} \num{123(3)e4}\\ \num{123\pm2}\\ -\num{123\pm2i}\\ -\num{123+234i}\\ +\complexnum{123\pm2i}\\ +\complexnum{123+234i}\\ %\num{123+234}\\ %\num{123e2+234e3i}\\ -\num{123+234ie3}\\ -\num{123(1)+234(1)ie3}\\ +\complexnum{123+234ie3}\\ +\complexnum{123(1)+234(1)ie3}\\ %\num{123e2(1)+234e3i(1)}\\ %\num{+234(1)ie3}\\ %comes out weird? -\num{+3i}\\ -\num{+3ie4}\\ +\complexnum{+3i}\\ +\complexnum{+3ie4}\\ Pretty nonsensical stuff? -\num{1.\pi e+3}\\ +%%\num{1.\pi e+3}\\ \def\dig{1234}\\ \num{\dig.\dig}\\ \def\odd{\xi}\\ @@ -95,9 +99,9 @@ \subsection{General} \num[input-symbols=\xi]{3\xi}\\ \num[input-symbols=\xi]{3\odd}\\ %\num[input-symbols=\odd]{3\odd}\\ -\num[input-symbols=\odd, input-protect-tokens=\odd]{3\odd}\\ -\num[input-symbols=\odd, input-protect-tokens=\odd]{3\odder}\\ -\num[input-symbols=\odder, input-protect-tokens=\odder]{3\odder}\\ +%%\num[input-symbols=\odd, input-protect-tokens=\odd]{3\odd}\\ +%%\num[input-symbols=\odd, input-protect-tokens=\odd]{3\odder}\\ +%%\num[input-symbols=\odder, input-protect-tokens=\odder]{3\odder}\\ %\num[input-symbols=\odder, input-protect-tokens=\odd]{3\odder}\\ %\num[input-symbols=\odd, input-protect-tokens=\odder]{3\odder}\\ @@ -106,7 +110,7 @@ \subsection{General} \num{1.23\pm0.01}\\ %\num{1.23(1.0)}\\ %\num{1.23(\pm1)}\\ -\num{1.23(\pi)}\\ +%%\num{1.23(\pi)}\\ \subsection{Parsing numbers} @@ -127,8 +131,8 @@ \subsubsection{input-open-uncertainty, input-close-uncertainty, input-uncertaint \num{12.3 +- 6}\\ \subsubsection{input-complex-roots} -\num{9.99 + 88.8i} \\ -\num{9.99 + i88.8}\\ +\complexnum{9.99 + 88.8i} \\ +\complexnum{9.99 + i88.8}\\ \subsubsection{input-protect-tokens} @@ -158,11 +162,11 @@ \subsubsection{round-mode, round-precision} } \subsubsection{round-integer-to-decimal} { -\num[round-mode = figures]{1} \\ -\num[round-mode = places]{1} \\ -\sisetup{round-integer-to-decimal} -\num[round-mode = figures]{1} \\ -\num[round-mode = places]{1}\\ +\num[round-mode = figures, round-precision=1]{1} \\ +\num[round-mode = places, round-precision=0]{1} \\ +%% \sisetup{round-integer-to-decimal} +%% \num[round-mode = figures]{1} \\ +%% \num[round-mode = places]{1}\\ } \subsubsection{round-minimum} @@ -187,12 +191,12 @@ \subsubsection{round-half} \subsubsection{add-decimal-zero, add-integer-zero} { -\num{123.} \\ +\num[minimum-decimal-digits=1]{123.} \\ \num{456} \\ \num{.789} \\ \sisetup{ add-decimal-zero = false, - add-integer-zero = false, +%% add-integer-zero = false, }% \num{123.} \\ \num{456} \\ @@ -209,8 +213,8 @@ \subsubsection{minimum-integer-digits} \subsubsection{explicit-sign, retain-explicit-plus} \num{+345} \\ \num[retain-explicit-plus]{+345} \\ -\num[explicit-sign = -]{345}\\ -\num[explicit-sign = -]{+345}\\ +%%\num[explicit-sign = -]{345}\\ +%%\num[explicit-sign = -]{+345}\\ \subsubsection{retain-unity-mantissa, retain-zero-exponent} \num{1e4} \\ @@ -256,7 +260,8 @@ \subsubsection{group-digits, group-four-digits,group-seperator} \num[group-digits= integer]{12345.67890}\\ \num{1234567890.1234567890}\\ -\num[group-four-digits]{1234567890.1234567890}\\ +%%\num[group-four-digits]{1234567890.1234567890}\\ +%%\num[digit-group-size=4]{1234567890.1234567890}\\ \num{12345} \\ \num[group-separator = {,}]{12345} \\ @@ -271,16 +276,16 @@ \subsubsection{group-minimum-digits} \subsubsection{output-complex-root,output-decimal-marker,copy-complex-root,copy-decimal-marker} \num{1.23} \\ \num[output-decimal-marker = {,}]{1.23} \\ -\num{1+2i} \\ -\num[output-complex-root = \text{\ensuremath{i}}]{1+2i} \\ -\num[output-complex-root = j]{1+2i} \\ -\num[copy-complex-root]{1+2j} \\ -\num[copy-decimal-marker]{555,555}\\ +\complexnum{1+2i} \\ +\complexnum[output-complex-root = \text{\ensuremath{i}}]{1+2i} \\ +\complexnum[output-complex-root = j]{1+2i} \\ +%%\complexnum[copy-complex-root]{1+2j} \\ +%%\num[copy-decimal-marker]{555,555}\\ \subsubsection{complex-root-position} -\num{67-0.9i} \\ -\num[complex-root-position = before-number]{67-0.9i} \\ -\num[complex-root-position = after-number]{67-0.9i}\\ +\complexnum{67-0.9i} \\ +\complexnum[complex-root-position = before-number]{67-0.9i} \\ +\complexnum[complex-root-position = after-number]{67-0.9i}\\ \subsubsection{exponent-base, exponent-product} \num[exponent-product = \times]{1e2} \\ @@ -309,8 +314,8 @@ \subsubsection{separate-uncertainty,uncertainty-separator,output-open-uncertaint \num[separate-uncertainty]{8.2(13)}\\ \num[separate-uncertainty]{8.2\pm1.3} \\ -\num{1.234(5) x \pi} \\ -\num[separate-uncertainty = true]{1.234(5) x \pi} \\ +%%\num{1.234(5) x \pi} \\ +%\num[separate-uncertainty = true]{1.234(5) x \pi} \\ \num{1.2 +- 0.001}\\ \num[separate-uncertainty]{1.2 +- 0.001}\\ @@ -318,14 +323,14 @@ \subsubsection{separate-uncertainty,uncertainty-separator,output-open-uncertaint \subsubsection{bracket-numbers, open-bracket, close-bracket} { \num{1 e10} \\ -\num{2i e10} \\ -\num{1+2i e10} \\ -\num[bracket-numbers = false]{1+2i e10} \\ -\sisetup{ - open-bracket = \{, - close-bracket = \}, -} -\num{1+2i e10}\\ +\complexnum{2i e10} \\ +\complexnum{1+2i e10} \\ +\complexnum[bracket-numbers = false]{1+2i e10} \\ +%%\sisetup{ +%% open-bracket = \{, +%% close-bracket = \}, +%%} +%%\complexnum{1+2i e10}\\ } \subsubsection{negative-color} @@ -341,28 +346,28 @@ \subsubsection{bracket-negative-numbers} \subsection{Multi-part Numbers} \subsubsection{input-product,input-quotient} -\num{1 x 2 x 3} \\ -\num{1e4 x 2(3) x 3/4} \\ -\num[input-product=*]{4 * 5 * 6} \\ -\num{ 1 / 2e4 } \\ -\num{ 1e2 / 3e4 }\\ - -\subsubsection{output-product, output-quotient} -\num[output-product = \cdot]{4.87 x 5.321 x 6.90545} \\ -\num[output-quotient = \text{ div }]{1 / 2}\\ - -\subsubsection{quotient-mode} -\num{1 / 2e4} \\ -\num[quotient-mode = fraction]{1 / 2e4}\\ - -\subsubsection{fraction-function} -{ -\sisetup{quotient-mode= fraction} -\num{1 / 1}\\ -\num[fraction-function= \dfrac]{1 / 2}\\ -%\num[fraction-function= \sfrac]{1 / 3}\\ -\num[fraction-function= \tfrac]{1 / 4}\\ -} +\numproduct{1 x 2 x 3} \\ +%%\numproduct{1e4 x 2(3) x 3/4} \\ +%%\numproduct[input-product=*]{4 * 5 * 6} \\ +%%\num{ 1 / 2e4 } \\ +%%\num{ 1e2 / 3e4 }\\ + +%%\subsubsection{output-product, output-quotient} +%%\numproduct[output-product = \cdot]{4.87 x 5.321 x 6.90545} \\ +%%\num[output-quotient = \text{ div }]{1 / 2}\\ + +%%\subsubsection{quotient-mode} +%%\num{1 / 2e4} \\ +%%\num[quotient-mode = fraction]{1 / 2e4}\\ + +%%\subsubsection{fraction-function} +%%{ +%%\sisetup{quotient-mode= fraction} +%%\num{1 / 1}\\ +%%\num[fraction-function= \dfrac]{1 / 2}\\ +%%%\num[fraction-function= \sfrac]{1 / 3}\\ +%%\num[fraction-function= \tfrac]{1 / 4}\\ +%%} \subsection{Lists and ranges of numbers} \subsubsection{list-final-separator,list-pair-separator,list-separator} @@ -491,16 +496,16 @@ \section{Units} \centering \begin{tabular}{lll}\hline\hline Unit & Macro & Symbol \\\hline -\showunit{astronomicalunit}\\ -\showunit{atomicmassunit}\\ -\showunit{bohr}\\ -\showunit{clight}\\ +%%\showunit{astronomicalunit}\\ +%%\showunit{atomicmassunit}\\ +%%\showunit{bohr}\\ +%%\showunit{clight}\\ \showunit{dalton}\\ -\showunit{electronmass}\\ +%%\showunit{electronmass}\\ \showunit{electronvolt}\\ -\showunit{elementarycharge}\\ -\showunit{hartree}\\ -\showunit{planckbar}\\ +%%\showunit{elementarycharge}\\ +%%\showunit{hartree}\\ +%%\showunit{planckbar}\\ \end{tabular} \end{table} @@ -509,19 +514,19 @@ \section{Units} \centering \begin{tabular}{lll}\hline\hline Unit & Macro & Symbol \\\hline -\showunit{angstrom}\\ -\showunit{bar}\\ -\showunit{barn}\\ +%%\showunit{angstrom}\\ +%%\showunit{bar}\\ +%%\showunit{barn}\\ \showunit{bel}\\ \showunit{decibel}\\ -\showunit{knot}\\ -\showunit{mmHg}\\ -\showunit{nauticalmile}\\ +%%\showunit{knot}\\ +%%\showunit{mmHg}\\ +%%\showunit{nauticalmile}\\ \showunit{neper}\\ \end{tabular} \end{table} -\def\showprefix#1{#1 & \texttt{\Backslash#1} & \si{\csname#1\endcsname} & \si[prefixes-as-symbols=false]{\csname#1\endcsname}} +\def\showprefix#1{#1 & \texttt{\Backslash#1} & \si{\csname#1\endcsname\meter} & \si[prefixes-as-symbols=false]{\csname#1\endcsname\meter}} \begin{table} \caption{Other non-SI units} \centering @@ -554,7 +559,7 @@ \section{Units} \showunit{mg}\\ \showunit{g}\\ \showunit{kg}\\ -\showunit{amu}\\\hline +%%\showunit{amu}\\\hline \showunit{pm}\\ \showunit{nm}\\ \showunit{um}\\ @@ -663,11 +668,11 @@ \subsection{Using units} % Not allowed. %\si{\kilo\kilogram} %\si{\kilo\kilo\gram} -{ -% and note that regular macros ARE expanded! -\def\killermeater{\kilo\meter} -\si{\killermeater} -} +%%{ +%%% and note that regular macros ARE expanded! +%%\def\killermeater{\kilo\meter} +%%\si{\killermeater} +%%} { % BUT, it prefers its OWN definitions! \def\gram{Grr} @@ -685,7 +690,7 @@ \subsection{Using units} \si{\mabbra}\\ \si{\mabbrb}\\ -\si{\killer\meter}\\ +%%\si{\killer\meter}\\ % Where can highlight go? \si{\highlight{red}\kilo\gram\metre\per\second} \\ @@ -744,13 +749,13 @@ \subsubsection{sticky-per} \si{\pascal\per\gray\henry} \\ \si[sticky-per]{\pascal\per\gray\henry}\\ -\subsubsection{power-font} -\si{\metre\per\second\squared} \\ -\si[power-font = unit]{\metre\per\second\squared}\\ +%%\subsubsection{power-font} +%%\si{\metre\per\second\squared} \\ +%%\si[power-font = unit]{\metre\per\second\squared}\\ -\subsubsection{literal-superscript-as-power} -\si{m.s^{2}} \\ -\si[literal-superscript-as-power = false]{m.s^{2}}\\ +%%\subsubsection{literal-superscript-as-power} +%%\si{m.s^{2}} \\ +%\si[literal-superscript-as-power = false]{m.s^{2}}\\ \subsubsection{qualifier-mode, qualifier-phrase} \si{\kilogram\polymer\squared\per\mole\catalyst\per\hour} \\ @@ -812,12 +817,12 @@ \subsubsection{multi-part-units} \SI{1.234(5)e-4}{\metre}\\ } \subsubsection{product-units} -\SI{2 x 3 x 4}{\metre} \\ -\SI[product-units = brackets]{2 x 3 x 4}{\metre}\\ -\SI[product-units = brackets-power]{2 x 3 x 4}{\metre}\\ -\SI[product-units = power]{2 x 3 x 4}{\metre}\\ -\SI[product-units = repeat]{2 x 3 x 4}{\metre}\\ -\SI[product-units = single]{2 x 3 x 4}{\metre}\\ +\qtyproduct{2 x 3 x 4}{\metre} \\ +\qtyproduct[product-units = brackets]{2 x 3 x 4}{\metre}\\ +%%\qtyproduct[product-units = brackets-power]{2 x 3 x 4}{\metre}\\ +\qtyproduct[product-units = power]{2 x 3 x 4}{\metre}\\ +\qtyproduct[product-units = repeat]{2 x 3 x 4}{\metre}\\ +\qtyproduct[product-units = single]{2 x 3 x 4}{\metre}\\ \subsubsection{list-units,range-units} \SIlist{2;4;6;8}{\tesla} \\ @@ -918,37 +923,37 @@ \section{Tabular material} \end{tabular} \end{table} -\begin{table}[H] -\centering -\caption{Units in tables.} -\label{tab:s:demo} -\begin{tabular}{s} -\toprule -\multicolumn{1}{c}{Unit} \\ -\midrule -\metre\squared\per\second \\ -\pascal \\ -m.s^{-1} \\ -\bottomrule -\end{tabular} -\end{table} - -\begin{table}[H] -\centering -\caption{The \texttt{s} column processes everything.} -\label{tab:s:processing} -\sisetup{color = orange} -\begin{tabular}{ss} -\toprule -{Unit} -& \multicolumn{1}{c}{Unit}\\ -\midrule -{\si{m^3}} & \multicolumn{1}{c}{\si{m^3}} \\ -\kilogram -& \kilogram \\ -\bottomrule -\end{tabular} -\end{table} +% % \begin{table}[H] +% % \centering +% % \caption{Units in tables.} +% % \label{tab:s:demo} +% % \begin{tabular}{s} +% % \toprule +% % \multicolumn{1}{c}{Unit} \\ +% % \midrule +% % \metre\squared\per\second \\ +% % \pascal \\ +% % m.s^{-1} \\ +% % \bottomrule +% % \end{tabular} +% % \end{table} + +% % \begin{table}[H] +% % \centering +% % \caption{The \texttt{s} column processes everything.} +% % \label{tab:s:processing} +% % \sisetup{color = orange} +% % \begin{tabular}{ss} +% % \toprule +% % {Unit} +% % & \multicolumn{1}{c}{Unit}\\ +% % \midrule +% % {\si{m^3}} & \multicolumn{1}{c}{\si{m^3}} \\ +% % \kilogram +% % & \kilogram \\ +% % \bottomrule +% % \end{tabular} +% % \end{table} \subsubsection{table-parse-only} \begin{table}[H] @@ -1335,58 +1340,58 @@ \subsubsection{table-text-alignment} \end{tabular} \end{table} -\subsubsection{table-unit-alignment} -\begin{table}[H] -\centering -\caption{Alignment options in \texttt{s} columns.} -\label{tab:s:align} -\begin{tabular} -{ -s[table-unit-alignment = right] -s -s[table-unit-alignment = left] -} -\toprule -{Right-aligned} & -{Centred text} & -{Left-aligned} \\ -\midrule -\metre\per\second & \metre\per\second & \metre\per\second \\ -\kilogram -& \kilogram -& \kilogram -\\ -\bottomrule -\end{tabular} -\end{table} - -\subsubsection{table-alignment} - -\subsubsection{table-column-width} -\begin{table}[H] -\centering -\caption{Fixed-width columns.} -\label{tab:width:fixed} -\begin{tabular} -{ -s -s[table-column-width = 2 cm] -S -S[table-column-width = 2 cm] -} -\toprule -{Flexible} & -{Fixed} -& -{Flexible} & -{Fixed} -\\ -\midrule -\metre\per\second & \metre\per\second & 1.23 & 1.23 \\ -\kilogram\candela & \kilogram\candela & 45.6 & 45.6 \\ -\bottomrule -\end{tabular} -\end{table} +% % \subsubsection{table-unit-alignment} +% % \begin{table}[H] +% % \centering +% % \caption{Alignment options in \texttt{s} columns.} +% % \label{tab:s:align} +% % \begin{tabular} +% % { +% % s[table-unit-alignment = right] +% % s +% % s[table-unit-alignment = left] +% % } +% % \toprule +% % {Right-aligned} & +% % {Centred text} & +% % {Left-aligned} \\ +% % \midrule +% % \metre\per\second & \metre\per\second & \metre\per\second \\ +% % \kilogram +% % & \kilogram +% % & \kilogram +% % \\ +% % \bottomrule +% % \end{tabular} +% % \end{table} + +% % \subsubsection{table-alignment} + +% % \subsubsection{table-column-width} +% % \begin{table}[H] +% % \centering +% % \caption{Fixed-width columns.} +% % \label{tab:width:fixed} +% % \begin{tabular} +% % { +% % s +% % s[table-column-width = 2 cm] +% % S +% % S[table-column-width = 2 cm] +% % } +% % \toprule +% % {Flexible} & +% % {Fixed} +% % & +% % {Flexible} & +% % {Fixed} +% % \\ +% % \midrule +% % \metre\per\second & \metre\per\second & 1.23 & 1.23 \\ +% % \kilogram\candela & \kilogram\candela & 45.6 & 45.6 \\ +% % \bottomrule +% % \end{tabular} +% % \end{table} % \begin{table}[H] % \centering diff --git a/t/complex/si.xml b/t/complex/si.xml index ce47e4810..174733e1d 100644 --- a/t/complex/si.xml +++ b/t/complex/si.xml @@ -244,29 +244,6 @@ Some text 3.430 - - - π - - - - - - - - 2 - π - - - - - - - / - π - 3 - -

@@ -516,63 +493,11 @@ Some text

Pretty nonsensical stuff? - - - - × - - - - 1 - . - π - - - - - 10 - 3 - - - - + 1234.1234 - - - - - - - 3 - ξ - - - - - - - - - - 3 - ξ - - - - - - - - - - 3 - ξ - - - - + @@ -583,7 +508,7 @@ Some text + @@ -627,21 +552,6 @@ Some text - - - - 1.23 - - - - ( - π - ) - - - -

@@ -946,16 +856,7 @@ Some text 1 - - - - 1 - - - - 1 - -

+

@@ -1046,9 +947,9 @@ Some text 456 - + - .789 + 0.789

@@ -1106,21 +1007,7 @@ Some text - - - - - - - 345 - - - - - - 345 - -

+

@@ -1317,10 +1204,6 @@ Some text 1 234 567 890.123 456 789 0 - - - 1 234 567 890.123 456 789 0 -

@@ -1440,30 +1323,7 @@ Some text - - - + - 1 - - - 2 - j - - - - - - - - - 555 - , - 555 - - - -

+

@@ -1718,72 +1578,27 @@ Some text -

- - - × - - - 1.234 - - - - ( - 5 - ) - - - - π - - - - - - × - - - - - - - - ( - - ± - 1.234 - 0.005 - - ) - - - π - - -

- - -

+

- 1.200 - - + 1.200 + + ( - 1 + 1 ) - + ± - 1.2 - 0.001 + 1.2 + 0.001

@@ -1876,39 +1691,7 @@ Some text - - - × - - - - - - - - { - - + - 1 - - - 2 - i - - - } - - - - - 10 - 10 - - - -

+

@@ -2002,316 +1785,87 @@ Some text 3 - +

+ +
+ + + + 1.6 + 1.6 + §1.6 + + <tag close=" ">1.6</tag>Lists and ranges of numbers + + + 1.6.1 + 1.6.1 + §1.6.1 + + <tag close=" ">1.6.1</tag>list-final-separator,list-pair-separator,list-separator + +

- - / - - × - - × - - × - 1 - - - 10 - 4 - - - - - 2 - - - - ( - 3 - ) - - - - - 3 + + + + + + - 4 - + + 0.1 + ,   + 0.2 +   and   + 0.3 + + - + - - × - - × - 4 - 5 + + + + + + - 6 - + + 0.1 + ,   + 0.2 +   and   + 0.3 + + - + - - / - 1 - - - - - - - - ( - - × - 2 - - - 10 - 4 - - - ) - - - + + + + + + + + + 0.1 + ; + 0.2 +   and   + 0.3 + + - + - - / - - × - 1 - - - 10 - 2 - - - - - - - - - - ( - - × - 3 - - - 10 - 4 - - - ) - - - - -

-
-
- - - 1.5.2 - 1.5.2 - §1.5.2 - - <tag close=" ">1.5.2</tag>output-product, output-quotient - -

- - - - - - 4.87 - 5.321 - - 6.905 45 - - - - - - div - 1 - 2 - - -

-
-
- - - 1.5.3 - 1.5.3 - §1.5.3 - - <tag close=" ">1.5.3</tag>quotient-mode - -

- - - / - 1 - - - - - - - - ( - - × - 2 - - - 10 - 4 - - - ) - - - - - - - - - 1 - - × - 2 - - - 10 - 4 - - - - -

-
-
- - - 1.5.4 - 1.5.4 - §1.5.4 - - <tag close=" ">1.5.4</tag>fraction-function - -

- - - - 1 - 1 - - - - - - - 1 - 2 - - - - - - - 1 - 4 - - -

-
-
-
- - - 1.6 - 1.6 - §1.6 - - <tag close=" ">1.6</tag>Lists and ranges of numbers - - - 1.6.1 - 1.6.1 - §1.6.1 - - <tag close=" ">1.6.1</tag>list-final-separator,list-pair-separator,list-separator - -

- - - - - - - - - - 0.1 - ,   - 0.2 -   and   - 0.3 - - - - - - - - - - - - - - 0.1 - ,   - 0.2 -   and   - 0.3 - - - - - - - - - - - - - - 0.1 - ; - 0.2 -   and   - 0.3 - - - - - - - - - - - + + + + + + 0.1 @@ -3317,135 +2871,23 @@ Some text astronomicalunit - \astronomicalunit - - - ua - - - -
- atomicmassunit - \atomicmassunit - - - u - - -
-
- bohr - \bohr - - - - - - - a - 0 - - - - - -
-
- clight - \clight - - - - - - - c - 0 - - - - - -
-
- dalton - \dalton - + dalton + \dalton + Da
-
- electronmass - \electronmass - - - - - - - m - e - - - - - -
electronvolt \electronvolt - + eV
-
- elementarycharge - \elementarycharge - - - - - e - - - - -
-
- hartree - \hartree - - - - - - - E - h - - - - - -
-
- planckbar - \planckbar - - - - - - - - - -
@@ -3467,36 +2909,9 @@ Some text angstrom - \angstrom - - - Å - - - -
- bar - \bar - - - bar - - -
-
- barn - \barn - - - b - - -
-
- bel - \bel - + bel + \bel + B @@ -3505,43 +2920,16 @@ Some text decibel \decibel - + dB
-
- knot - \knot - - - kn - - -
-
- mmHg - \mmHg - - - mmHg - - -
-
- nauticalmile - \nauticalmile - - - M - - -
neper \neper - + Np @@ -3575,12 +2963,12 @@ Some text yocto \yocto - + - y + ym - + @@ -3589,18 +2977,18 @@ Some text 10 -24 - + m
deca \deca - + - da + dam - + @@ -3609,7 +2997,7 @@ Some text 10 1 - + m @@ -3617,12 +3005,12 @@ Some text zepto \zepto - + - z + zm - + @@ -3631,18 +3019,18 @@ Some text 10 -21 - + m hecto \hecto - + - h + hm - + @@ -3651,7 +3039,7 @@ Some text 10 2 - + m @@ -3659,12 +3047,12 @@ Some text atto \atto - + - a + am - + @@ -3673,18 +3061,18 @@ Some text 10 -18 - + m kilo \kilo - + - k + km - + @@ -3693,7 +3081,7 @@ Some text 10 3 - + m @@ -3701,12 +3089,12 @@ Some text femto \femto - + - f + fm - + @@ -3715,18 +3103,18 @@ Some text 10 -15 - + m mega \mega - + - M + Mm - + @@ -3735,7 +3123,7 @@ Some text 10 6 - + m @@ -3743,12 +3131,12 @@ Some text pico \pico - + - p + pm - + @@ -3757,18 +3145,18 @@ Some text 10 -12 - + m giga \giga - + - G + Gm - + @@ -3777,7 +3165,7 @@ Some text 10 9 - + m @@ -3785,12 +3173,12 @@ Some text nano \nano - + - n + nm - + @@ -3799,18 +3187,18 @@ Some text 10 -9 - + m tera \tera - + - T + Tm - + @@ -3819,7 +3207,7 @@ Some text 10 12 - + m @@ -3827,12 +3215,16 @@ Some text micro \micro - + - µ + + + µ + m + - + @@ -3841,18 +3233,18 @@ Some text 10 -6 - + m peta \peta - + - P + Pm - + @@ -3861,7 +3253,7 @@ Some text 10 15 - + m @@ -3869,12 +3261,12 @@ Some text milli \milli - + - m + mm - + @@ -3883,18 +3275,18 @@ Some text 10 -3 - + m exa \exa - + - E + Em - + @@ -3903,7 +3295,7 @@ Some text 10 18 - + m @@ -3911,12 +3303,12 @@ Some text centi \centi - + - c + cm - + @@ -3925,18 +3317,18 @@ Some text 10 -2 - + m zetta \zetta - + - Z + Zm - + @@ -3945,7 +3337,7 @@ Some text 10 21 - + m @@ -3953,12 +3345,12 @@ Some text deci \deci - + - d + dm - + @@ -3967,18 +3359,18 @@ Some text 10 -1 - + m yotta \yotta - + - Y + Ym - + @@ -3987,7 +3379,7 @@ Some text 10 24 - + m @@ -4080,18 +3472,9 @@ Some text amu - \amu - - - u - - - -
- pm - \pm - + pm + \pm + pm @@ -4100,7 +3483,7 @@ Some text nm \nm - + nm @@ -4109,7 +3492,7 @@ Some text um \um - + @@ -4122,7 +3505,7 @@ Some text mm \mm - + mm @@ -4131,7 +3514,7 @@ Some text cm \cm - + cm @@ -4140,7 +3523,7 @@ Some text dm \dm - + dm @@ -4149,7 +3532,7 @@ Some text m \m - + m @@ -4158,7 +3541,7 @@ Some text km \km - + km @@ -4167,7 +3550,7 @@ Some text as \as - + as @@ -4176,7 +3559,7 @@ Some text fs \fs - + fs @@ -4185,7 +3568,7 @@ Some text ps \ps - + ps @@ -4194,7 +3577,7 @@ Some text ns \ns - + ns @@ -4203,7 +3586,7 @@ Some text us \us - + @@ -4216,7 +3599,7 @@ Some text ms \ms - + ms @@ -4225,7 +3608,7 @@ Some text s \s - + s @@ -4234,7 +3617,7 @@ Some text fmol \fmol - + fmol @@ -4243,7 +3626,7 @@ Some text pmol \pmol - + pmol @@ -4252,7 +3635,7 @@ Some text nmol \nmol - + nmol @@ -4261,7 +3644,7 @@ Some text umol \umol - + @@ -4274,7 +3657,7 @@ Some text mmol \mmol - + mmol @@ -4283,7 +3666,7 @@ Some text mol \mol - + mol @@ -4292,7 +3675,7 @@ Some text kmol \kmol - + kmol @@ -4301,7 +3684,7 @@ Some text pA \pA - + pA @@ -4310,7 +3693,7 @@ Some text nA \nA - + nA @@ -4319,7 +3702,7 @@ Some text uA \uA - + @@ -4332,7 +3715,7 @@ Some text mA \mA - + mA @@ -4341,7 +3724,7 @@ Some text A \A - + A @@ -4350,7 +3733,7 @@ Some text kA \kA - + kA @@ -4359,7 +3742,7 @@ Some text ul \ul - + @@ -4372,7 +3755,7 @@ Some text ml \ml - + ml @@ -4381,7 +3764,7 @@ Some text l \l - + l @@ -4390,7 +3773,7 @@ Some text hl \hl - + hl @@ -4399,7 +3782,7 @@ Some text uL \uL - + @@ -4412,7 +3795,7 @@ Some text mL \mL - + mL @@ -4421,7 +3804,7 @@ Some text L \L - + L @@ -4430,7 +3813,7 @@ Some text hL \hL - + hL @@ -4439,7 +3822,7 @@ Some text mHz \mHz - + mHz @@ -4448,7 +3831,7 @@ Some text Hz \Hz - + Hz @@ -4457,7 +3840,7 @@ Some text kHz \kHz - + kHz @@ -4466,7 +3849,7 @@ Some text MHz \MHz - + MHz @@ -4475,7 +3858,7 @@ Some text GHz \GHz - + GHz @@ -4484,7 +3867,7 @@ Some text THz \THz - + THz @@ -4493,7 +3876,7 @@ Some text mN \mN - + mN @@ -4502,7 +3885,7 @@ Some text N \N - + N @@ -4511,7 +3894,7 @@ Some text kN \kN - + kN @@ -4520,7 +3903,7 @@ Some text MN \MN - + MN @@ -4529,7 +3912,7 @@ Some text Pa \Pa - + Pa @@ -4538,7 +3921,7 @@ Some text kPa \kPa - + kPa @@ -4547,7 +3930,7 @@ Some text MPa \MPa - + MPa @@ -4556,7 +3939,7 @@ Some text GPa \GPa - + GPa @@ -4565,7 +3948,7 @@ Some text mohm \mohm - + @@ -4578,7 +3961,7 @@ Some text kohm \kohm - + @@ -4591,7 +3974,7 @@ Some text Mohm \Mohm - + @@ -4604,7 +3987,7 @@ Some text pV \pV - + pV @@ -4613,7 +3996,7 @@ Some text nV \nV - + nV @@ -4622,7 +4005,7 @@ Some text uV \uV - + @@ -4635,7 +4018,7 @@ Some text mV \mV - + mV @@ -4644,7 +4027,7 @@ Some text V \V - + V @@ -4653,7 +4036,7 @@ Some text kV \kV - + kV @@ -4662,7 +4045,7 @@ Some text W \W - + W @@ -4671,7 +4054,7 @@ Some text uW \uW - + @@ -4684,7 +4067,7 @@ Some text mW \mW - + mW @@ -4693,7 +4076,7 @@ Some text kW \kW - + kW @@ -4702,7 +4085,7 @@ Some text MW \MW - + MW @@ -4711,7 +4094,7 @@ Some text GW \GW - + GW @@ -4720,7 +4103,7 @@ Some text J \J - + J @@ -4729,7 +4112,7 @@ Some text kJ \kJ - + kJ @@ -4738,7 +4121,7 @@ Some text eV \eV - + eV @@ -4747,7 +4130,7 @@ Some text meV \meV - + meV @@ -4756,7 +4139,7 @@ Some text keV \keV - + keV @@ -4765,7 +4148,7 @@ Some text MeV \MeV - + MeV @@ -4774,7 +4157,7 @@ Some text GeV \GeV - + GeV @@ -4783,7 +4166,7 @@ Some text TeV \TeV - + TeV @@ -4792,12 +4175,12 @@ Some text kWh \kWh - + - - kW - h + + kW + h @@ -4805,7 +4188,7 @@ Some text F \F - + F @@ -4814,7 +4197,7 @@ Some text fF \fF - + fF @@ -4823,7 +4206,7 @@ Some text pF \pF - + pF @@ -4832,7 +4215,7 @@ Some text K \K - + K @@ -4841,7 +4224,7 @@ Some text dB \dB - + dB @@ -4871,12 +4254,12 @@ Some text kibi \kibi - + - Ki + Kim - + @@ -4885,7 +4268,7 @@ Some text 2 10 - + m @@ -4893,12 +4276,12 @@ Some text mebi \mebi - + - Mi + Mim - + @@ -4907,7 +4290,7 @@ Some text 2 20 - + m @@ -4915,12 +4298,12 @@ Some text gibi \gibi - + - Gi + Gim - + @@ -4929,7 +4312,7 @@ Some text 2 30 - + m @@ -4937,12 +4320,12 @@ Some text tebi \tebi - + - Ti + Tim - + @@ -4951,7 +4334,7 @@ Some text 2 40 - + m @@ -4959,12 +4342,12 @@ Some text pebi \pebi - + - Pi + Pim - + @@ -4973,7 +4356,7 @@ Some text 2 50 - + m @@ -4981,12 +4364,12 @@ Some text exbi \exbi - + - Ei + Eim - + @@ -4995,7 +4378,7 @@ Some text 2 60 - + m @@ -5003,12 +4386,12 @@ Some text zebi \zebi - + - Zi + Zim - + @@ -5017,7 +4400,7 @@ Some text 2 70 - + m @@ -5025,12 +4408,12 @@ Some text yobi \yobi - + - Yi + Yim - + @@ -5039,7 +4422,7 @@ Some text 2 80 - + m @@ -5067,17 +4450,9 @@ Some text + - km - - - - - - - - kg + kg

@@ -5116,20 +4491,13 @@ Some text -

- - km - -

- - -

+

- - kg - m - + + kg + m + s @@ -5139,13 +4507,13 @@ Some text + - - kg - m - + + kg + m + s @@ -5155,13 +4523,13 @@ Some text + - - kg - m - + + kg + m + s @@ -5171,13 +4539,13 @@ Some text + - - kg - m - + + kg + m + s @@ -5187,13 +4555,13 @@ Some text + - - kg - m - + + kg + m + s @@ -5205,17 +4573,17 @@ Some text -

+ +

- - + + kg - m - + m + s @@ -5225,16 +4593,16 @@ Some text + - - kg - + + kg + m - + s @@ -5244,16 +4612,16 @@ Some text + - - kg - + + kg + m - + s @@ -5263,13 +4631,13 @@ Some text + - - kg - m - + + kg + m + @@ -5282,13 +4650,13 @@ Some text + - - kg - m - + + kg + m + @@ -5746,89 +5114,13 @@ Some text 2.1.4 §2.1.4 - 2.1.4power-font + 2.1.4qualifier-mode, qualifier-phrase -

- - - - m - - - s - - - - 2 - - - - - +

- - m - - - s - - - - 2 - - - - -

-
-
- - - 2.1.5 - 2.1.5 - §2.1.5 - - <tag close=" ">2.1.5</tag>literal-superscript-as-power - -

- - - - m - - - s - 2 - - - - - - - - m - - - s - 2 - - - -

-
-
- - - 2.1.6 - 2.1.6 - §2.1.6 - - <tag close=" ">2.1.6</tag>qualifier-mode, qualifier-phrase - -

- - - - + + @@ -5837,7 +5129,7 @@ Some text 2 - + @@ -5849,7 +5141,7 @@ Some text 1 - + h @@ -5859,36 +5151,36 @@ Some text + - - + + kg - + ( - pol + pol ) 2 - + mol - + ( - cat + cat ) @@ -5898,7 +5190,7 @@ Some text 1 - + h @@ -5908,11 +5200,11 @@ Some text + - - + + @@ -5921,7 +5213,7 @@ Some text 2 - + @@ -5933,7 +5225,7 @@ Some text 1 - + h @@ -5943,17 +5235,17 @@ Some text + - - + + - + ( - + kg pol @@ -5963,13 +5255,13 @@ Some text 2 - + - + ( - + mol cat @@ -5982,7 +5274,7 @@ Some text 1 - + h @@ -5992,24 +5284,24 @@ Some text + dBi

- -

+ +

- - + + - + ( - + kg of @@ -6020,13 +5312,13 @@ Some text 2 - + - + ( - + mol of @@ -6040,7 +5332,7 @@ Some text 1 - + h @@ -6050,29 +5342,29 @@ Some text + - - + + - + ( - kgbypol + kgbypol ) 2 - + - + ( - molbycat + molbycat ) @@ -6081,7 +5373,7 @@ Some text 1 - + h @@ -6094,20 +5386,20 @@ Some text + - 2.1.7 - 2.1.7 - §2.1.7 + 2.1.5 + 2.1.5 + §2.1.5 - 2.1.7prefixes-as-symbols - -

+ 2.1.5prefixes-as-symbols + +

- - ml - + + ml + mol @@ -6115,22 +5407,22 @@ Some text 1 - dA + dA - + - - + + 10 -4 - - - l - + + + l + mol @@ -6138,67 +5430,67 @@ Some text 1 - A + A - + - - + + 10 -1 - - - + + + kg 2 - s + s - + - - + + Mg 2 - ds + ds - + - - + + 10 5 - - - + + + kg 2 - s + s - + - - + + @@ -6207,34 +5499,34 @@ Some text 2 - ds + ds - + - - + + 10 -19 - - - + + + kg 2 - s + s - + - - + + Mg @@ -6242,21 +5534,21 @@ Some text 2 - ds + ds - + - - + + 10 -7 - - - + + + kg @@ -6264,15 +5556,15 @@ Some text 2 - s + s - + - - + + @@ -6284,21 +5576,21 @@ Some text 2 - ds + ds - + - - + + 10 17 - - - + + + kg @@ -6306,20 +5598,20 @@ Some text 2 - s + s

- + - 2.1.8 - 2.1.8 - §2.1.8 + 2.1.6 + 2.1.6 + §2.1.6 - <tag close=" ">2.1.8</tag>parse-units + <tag close=" ">2.1.6</tag>parse-units
@@ -6522,100 +5814,59 @@ Some text 2.2.4product-units -

- - - - - × - - × - 2 - 3 - - 4 - - m - - - +

- - - × - - × - 2 - 3 - - 4 - - m + + 2 + x + 3 + x + 4 - + - - - × - - × - 2 - 3 - - 4 - - m + + 2 + x + 3 + x + 4 - + - - - × - - × - 2 - 3 - - 4 - - m + + 2 + x + 3 + x + 4 - + - - - × - - × - 2 - 3 - - 4 - - m + + 2 + x + 3 + x + 4 - + - - - × - - × - 2 - 3 - - 4 - - m + + 2 + x + 3 + x + 4

@@ -7147,129 +6398,6 @@ Some text - - Table 12 - 12 - Table 12 - - 12Units in tables. - Table 12Units in tables. - - -
- Unit -
-
- -
- - - - - - - m - 2 - - - - s - - - - 1 - - - - - -
-
- - - Pa - - -
-
- - - - - - - - - - m - . - - - s - - - - 1 - - - - - - -
-
-
- -
- - Table 13 - 13 - Table 13 - - 13The s column processes everything. - - - - - - - - - - - - - - - - - - - -
Table 13The s column processes everything.
UnitUnit
- - - - m - 3 - - - - - - - m - 3 - - -
- - kg - - - - kg - -
3.0.1 @@ -7277,14 +6405,14 @@ Some text §3.0.1 <tag close=" ">3.0.1</tag>table-parse-only - +
- Table 14 - 14 - Table 14 + Table 12 + 12 + Table 12 - 14Parsing without aligning in an S column. - + 12Parsing without aligning in an S column. + @@ -7294,68 +6422,68 @@ Some text + 12.345 - + 12.345 - -
Table 14Parsing without aligning in an S column.Table 12Parsing without aligning in an S column.
+ 6.78 - + 6.78
+ - + - 88.8 - - + + ( - 9 + 9 ) - + - + - 88.8 - - + + ( - 9 + 9 ) @@ -7364,12 +6492,12 @@ Some text + - × - 4.5 - + × + 4.5 + 10 3 @@ -7377,12 +6505,12 @@ Some text + - × - 4.5 - + × + 4.5 + 10 3 @@ -7402,14 +6530,14 @@ Some text §3.0.2 3.0.2table-number-alignment - +
- Table 15 - 15 - Table 15 + Table 13 + 13 + Table 13 - 15Aligning the S column. - + 13Aligning the S column. + @@ -7421,88 +6549,88 @@ Some text + 2.3456 - + 2.3456 - + 2.3456 - + 2.3456 - - -
Table 15Aligning the S column.Table 13Aligning the S column.
+ 34.2345 - + 34.2345 - + 34.2345 - + 34.2345
+ 56.7835 - + 56.7835 - + 56.7835 - + 56.7835
+ 90.473 - + 90.473 - + 90.473 - + 90.473 @@ -7520,14 +6648,14 @@ Some text 3.0.3table-figures-decimal, table-figures-exponent,table-figures-integer,table-figures- uncertainty - +
- Table 16 - 16 - Table 16 + Table 14 + 14 + Table 14 - 16Reserving space in S columns. - + 14Reserving space in S columns. + @@ -7541,52 +6669,52 @@ uncertainty - - - -
Table 16Reserving space in S columns.Table 14Reserving space in S columns.
+ 2.3 - + 2.3 - + - 2.3 - - + 2.3 + + ( - 5 + 5 ) - + ± - 2.3 - 0.5 + 2.3 + 0.5 - + 2.3 - + - × - 2.3 - + × + 2.3 + 10 8 @@ -7596,89 +6724,89 @@ uncertainty
+ 34.23 - + 34.23 - + - 34.23 - - + 34.23 + + ( - 4 + 4 ) - + ± - 34.23 - 0.04 + 34.23 + 0.04 - + 34.23 - + 34.23
+ 56.78 - + 56.78 - + - 56.78 - - + 56.78 + + ( - 3 + 3 ) - + ± - 56.78 - 0.03 + 56.78 + 0.03 - + @@ -7689,12 +6817,12 @@ uncertainty - + - × - 56.78 - + × + 56.78 + 10 3 @@ -7704,42 +6832,42 @@ uncertainty
+ 3.76 - + 3.76 - + - 3.76 - - + 3.76 + + ( - 2 + 2 ) - + ± - 3.76 - 0.02 + 3.76 + 0.02 - + @@ -7750,12 +6878,12 @@ uncertainty - + - - - + + + 10 6 @@ -7775,14 +6903,14 @@ uncertainty §3.0.4 3.0.4table-comparator - +
- Table 17 - 17 - Table 17 + Table 15 + 15 + Table 15 - 17Reserving space for comparators in S columns. - + 15Reserving space for comparators in S columns. + @@ -7792,20 +6920,20 @@ uncertainty - - - -
Table 17Reserving space for comparators in S columns.Table 15Reserving space for comparators in S columns.
+ 2.3 - + < - × - 2.3 - + × + 2.3 + 10 8 @@ -7816,12 +6944,12 @@ uncertainty
+ 34.23 - + = @@ -7832,20 +6960,20 @@ uncertainty
+ 56.78 - + - × - 56.78 - + × + 56.78 + 10 3 @@ -7856,20 +6984,20 @@ uncertainty
+ 3.76 - + - - - + + + 10 6 @@ -7890,14 +7018,14 @@ uncertainty §3.0.5 3.0.5table-format - +
- Table 18 - 18 - Table 18 + Table 16 + 16 + Table 16 - 18Using the table-format option. - + 16Using the table-format option. + @@ -7910,43 +7038,43 @@ uncertainty - - - -
Table 18Using the table-format option.Table 16Using the table-format option.
+ 2.3 - + 2.3 - + - 2.3 - - + 2.3 + + ( - 5 + 5 ) - + 2.3 - + - × - 2.3 - + × + 2.3 + 10 8 @@ -7956,71 +7084,71 @@ uncertainty
+ 34.23 - + 34.23 - + - 34.23 - - + 34.23 + + ( - 4 + 4 ) - + 34.23 - + 34.23
+ 56.78 - + 56.78 - + - 56.78 - - + 56.78 + + ( - 3 + 3 ) - + @@ -8031,12 +7159,12 @@ uncertainty - + - × - 56.78 - + × + 56.78 + 10 3 @@ -8046,33 +7174,33 @@ uncertainty
+ 3.76 - + 3.76 - + - 3.76 - - + 3.76 + + ( - 2 + 2 ) - + @@ -8083,12 +7211,12 @@ uncertainty - + - - - + + + 10 6 @@ -8108,35 +7236,35 @@ uncertainty §3.0.6 3.0.6table-space-text-pre, table-space-text-post - +
- Table 19 - 19 - Table 19 + Table 17 + 17 + Table 17 - 19Text before and after numbers. - + 17Text before and after numbers. + - - -
Table 19Text before and after numbers.Table 17Text before and after numbers.
Values
+ 2.3456
+ 34.2345 a
+ 56.7835 @@ -8156,14 +7284,14 @@ uncertainty §3.0.7 3.0.7table-align-comparator, table-align-exponent, table-align-uncertainty - +
- Table 20 - 20 - Table 20 + Table 18 + 18 + Table 18 - 20The table-align-exponent option - + 18The table-align-exponent option + @@ -8173,12 +7301,12 @@ uncertainty - -
Table 20The table-align-exponent optionTable 18The table-align-exponent option
+ - × - 1.2 - + × + 1.2 + 10 3 @@ -8186,12 +7314,12 @@ uncertainty - + - × - 1.2 - + × + 1.2 + 10 3 @@ -8201,12 +7329,12 @@ uncertainty
+ - × - 1.234 - + × + 1.234 + 10 56 @@ -8214,12 +7342,12 @@ uncertainty - + - × - 1.234 - + × + 1.234 + 10 56 @@ -8231,14 +7359,14 @@ uncertainty
- +
- Table 21 - 21 - Table 21 + Table 19 + 19 + Table 19 - 21The table-align-uncertainty option - + 19The table-align-uncertainty option + @@ -8248,41 +7376,41 @@ uncertainty - -
Table 21The table-align-uncertainty optionTable 19The table-align-uncertainty option
+ ± - 1.2 - 0.1 + 1.2 + 0.1 - + ± - 1.2 - 0.3 + 1.2 + 0.3
+ ± - 1.234 - 0.005 + 1.234 + 0.005 - + ± - 1.234 - 0.005 + 1.234 + 0.005 @@ -8290,14 +7418,14 @@ uncertainty
- +
- Table 22 - 22 - Table 22 + Table 20 + 20 + Table 20 - 22The table-align-comparator option - + 20The table-align-comparator option + @@ -8307,7 +7435,7 @@ uncertainty - -
Table 22The table-align-comparator optionTable 20The table-align-comparator option
+ > @@ -8316,7 +7444,7 @@ uncertainty - + > @@ -8327,7 +7455,7 @@ uncertainty
+ < @@ -8336,7 +7464,7 @@ uncertainty - + < @@ -8357,24 +7485,24 @@ uncertainty §3.0.8 3.0.8table-omit-exponent - +
- Table 23 - 23 - Table 23 + Table 21 + 21 + Table 21 - 23The table-omit-exponent option - + 21The table-omit-exponent option + - - - -
Table 23The table-omit-exponent optionTable 21The table-omit-exponent option
HeaderHeader / + Header / - - - + + + 10 3 @@ -8386,12 +7514,12 @@ uncertainty
+ - × - 1.2 - + × + 1.2 + 10 3 @@ -8399,12 +7527,12 @@ uncertainty - + - × - 1.2 - + × + 1.2 + 10 3 @@ -8414,12 +7542,12 @@ uncertainty
+ - × - 3 - + × + 3 + 10 2 @@ -8427,12 +7555,12 @@ uncertainty - + - × - 3 - + × + 3 + 10 2 @@ -8442,12 +7570,12 @@ uncertainty
+ - × - 1.0 - + × + 1.0 + 10 4 @@ -8455,12 +7583,12 @@ uncertainty - + - × - 1.0 - + × + 1.0 + 10 4 @@ -8488,14 +7616,14 @@ uncertainty §3.0.10 3.0.10table-auto-round - +
- Table 24 - 24 - Table 24 + Table 22 + 22 + Table 22 - 24The table-auto-round option. - + 22The table-auto-round option. + @@ -8505,24 +7633,24 @@ uncertainty - -
Table 24The table-auto-round option.Table 22The table-auto-round option.
+ 1.2 - + 1.2
+ 1.2345 - + 1.2345 @@ -8539,14 +7667,14 @@ uncertainty §3.0.11 3.0.11parse-numbers - +
- Table 25 - 25 - Table 25 + Table 23 + 23 + Table 23 - 25Aligning without parsing. - + 23Aligning without parsing. + @@ -8558,128 +7686,128 @@ uncertainty - - - - -
Table 25Aligning without parsing.Table 23Aligning without parsing.
+ 2.35 - + 2.35 - + 2.35 - + 2.35
+ 34.234 - + 34.234 - + 34.234 - + 34.234
+ 56.783 - + 56.783 - + 56.783 - + 56.783
+ - - + + - 3 + 3 , - 762 + 762 - + - - + + - 3 + 3 , - 762 + 762 - + - - + + - 3 + 3 , - 762 + 762 - + 3.762
+ @@ -8687,7 +7815,7 @@ uncertainty - + @@ -8695,7 +7823,7 @@ uncertainty - + @@ -8703,7 +7831,7 @@ uncertainty - + @@ -8723,14 +7851,14 @@ uncertainty §3.0.12 3.0.12table-text-alignment - +
- Table 26 - 26 - Table 26 + Table 24 + 24 + Table 24 - 26Aligning text in S columns. - + 24Aligning text in S columns. + @@ -8741,68 +7869,68 @@ uncertainty - - - -
Table 26Aligning text in S columns.Table 24Aligning text in S columns.
+ 992.435 - + 992.435 - + 992.435
+ 7734.2344 - + 7734.2344 - + 7734.2344
+ 56.7834 - + 56.7834 - + 56.7834
+ 3.7462 - + 3.7462 - + 3.7462 @@ -8812,211 +7940,5 @@ uncertainty
- - - 3.0.13 - 3.0.13 - §3.0.13 - - <tag close=" ">3.0.13</tag>table-unit-alignment - - - Table 27 - 27 - Table 27 - - 27Alignment options in s columns. - - - - - - - - - - - - - - - - - - - - - - -
Table 27Alignment options in s columns.
Right-alignedCentred textLeft-aligned
- - - - m - - - s - - - - 1 - - - - - - - - - m - - - s - - - - 1 - - - - - - - - - m - - - s - - - - 1 - - - - -
- - kg - - - - kg - - - - kg - -
-
- - - 3.0.14 - 3.0.14 - §3.0.14 - - <tag close=" ">3.0.14</tag>table-alignment - - - - 3.0.15 - 3.0.15 - §3.0.15 - - <tag close=" ">3.0.15</tag>table-column-width - - - Table 28 - 28 - Table 28 - - 28Fixed-width columns. - - - - - - - - - - - - - - - - - - - - - - - - - -
Table 28Fixed-width columns.
FlexibleFixedFlexibleFixed
- - - - m - - - s - - - - 1 - - - - - - - - - m - - - s - - - - 1 - - - - - - - 1.23 - - - - 1.23 - -
- - - - kg - cd - - - - - - - kg - cd - - - - - 45.6 - - - - 45.6 - -
-
diff --git a/t/complex/si_v2.pdf b/t/complex/si_v2.pdf new file mode 100644 index 000000000..f1764b69c Binary files /dev/null and b/t/complex/si_v2.pdf differ diff --git a/t/complex/si_v2.tex b/t/complex/si_v2.tex new file mode 100644 index 000000000..85bee7b16 --- /dev/null +++ b/t/complex/si_v2.tex @@ -0,0 +1,1581 @@ +\documentclass{article} +\usepackage{xcolor} +\usepackage{cancel} +\usepackage{siunitx}[=v2] +\usepackage{float} +\usepackage{multirow} +\usepackage{booktabs} + +\DeclareSIQualifier\polymer{pol} +\DeclareSIQualifier\catalyst{cat} +\DeclareSIQualifier\isotropic{i} %? +\newbox\slashbox +\setbox\slashbox\hbox{\verb|\|} +\def\Backslash{\copy\slashbox} + +\DeclareSIUnit\abbra{ a } +\DeclareSIUnit\abbrb{ \abbra } % abbreviation +\DeclareSIUnit\abbrc{ \abbrb } % abbreviation twice +\DeclareSIUnit\abbrd{ \abbre } % before defined +\DeclareSIUnit\abbre{ e } + +\def\mabbra{a} +\DeclareSIUnit\mabbrb{\mabbra} + +\DeclareSIPrefix\killer{\kilo}{3} + +\usepackage{amsmath} +\begin{document} +%\ang{1.2e10;2 x 3;4} +\ang{1.2;3;4} +{ +\color{red} +Some text \\ +\SI{4}{\metre\per\sievert} \\ +More text \\ +\SI[color = blue]{4}{\metre\per\sievert} \\ +Still red here! +\numlist[color = blue]{1;2;3;4}\\ +Still red here!\\ +} + +Unsemantic: +\si{m^2.s}\\ +\si{\mu m^2}\\ + +Semantic again: +\SI{0.094}{\pi . \milli\meter . \milli\radian}\\ + +\SI{0.094}{\frac{1}{3} . \milli\meter . \milli\radian}\\ + +\SI{0.094}{\pi \per \milli\meter . \milli\radian\tothe{3}}\\ +\section{Numbers} +\subsection{General} +%\num{\sqrt{2}}\\ +%\num{{a word}}\\ +\num{12345,67890}\\ +\num{1+-2i}\\ +\num{.3e45}\\ +\num{1.654 x 2.34 x 3.430}\\ +\num{\pi}\\ +\num{2\pi}\\ +\num{\pi/3}\\ + +\num{123}\\ +\num{1234}\\ +\num{12345}\\ +\num{0.123}\\ +\num{0,1234}\\ +\num{.12345}\\ +\num{3.45d-4}\\ +\num{-e10}\\ + +\num{123e4}\\ +%\num{123e4(3)}\\ +\num{123(3)e4}\\ + +\num{123\pm2}\\ +\num{123\pm2i}\\ +\num{123+234i}\\ +%\num{123+234}\\ +%\num{123e2+234e3i}\\ +\num{123+234ie3}\\ +\num{123(1)+234(1)ie3}\\ +%\num{123e2(1)+234e3i(1)}\\ +%\num{+234(1)ie3}\\ %comes out weird? +\num{+3i}\\ +\num{+3ie4}\\ + +Pretty nonsensical stuff? +\num{1.\pi e+3}\\ +\def\dig{1234}\\ +\num{\dig.\dig}\\ +\def\odd{\xi}\\ +\def\odder{\odd}\\ +\num[input-symbols=\xi]{3\xi}\\ +\num[input-symbols=\xi]{3\odd}\\ +%\num[input-symbols=\odd]{3\odd}\\ +\num[input-symbols=\odd, input-protect-tokens=\odd]{3\odd}\\ +\num[input-symbols=\odd, input-protect-tokens=\odd]{3\odder}\\ +\num[input-symbols=\odder, input-protect-tokens=\odder]{3\odder}\\ +%\num[input-symbols=\odder, input-protect-tokens=\odd]{3\odder}\\ +%\num[input-symbols=\odd, input-protect-tokens=\odder]{3\odder}\\ + +\num{1.23(1)}\\ +%\num{1.23(0.01)} +\num{1.23\pm0.01}\\ +%\num{1.23(1.0)}\\ +%\num{1.23(\pm1)}\\ +\num{1.23(\pi)}\\ + +\subsection{Parsing numbers} + +\subsubsection{input-digits, input-decimal-markers, input-signs, input-exponent-markers} + +\subsubsection{input-symbols, input-ignore} +\subsubsection{input-comparators} + +\num{< 10} \\ +%\SI{>> 5}{\metre} \\ +\num{\le 0.12}\\ + +\subsubsection{input-open-uncertainty, input-close-uncertainty, input-uncertainty-signs} +\num{9.99(9)}\\ +\num{9.99 +- 0.09}\\ +\num{9.99 \pm 0.09}\\ +\num{123 +- 4.5}\\ +\num{12.3 +- 6}\\ + +\subsubsection{input-complex-roots} +\num{9.99 + 88.8i} \\ +\num{9.99 + i88.8}\\ + +\subsubsection{input-protect-tokens} + +\subsubsection{parse-numbers} +\num[parse-numbers = false]{\sqrt{2}}\\ + +\subsection{Post-processing numbers} +\subsubsection{round-mode, round-precision} +{ +\num{1.23456} \\ +\num{14.23} \\ +\num{0.12345(9)} \\ +\sisetup{ + round-mode = places, + round-precision = 3 +}% +\num{1.23456} \\ +\num{14.23} \\ +\num{0.12345(9)} \\ +\sisetup{ + round-mode = figures, + round-precision = 3 +}% +\num{1.23456} \\ +\num{14.23} \\ +\num{0.12345(9)}\\ +} +\subsubsection{round-integer-to-decimal} +{ +\num[round-mode = figures]{1} \\ +\num[round-mode = places]{1} \\ +\sisetup{round-integer-to-decimal} +\num[round-mode = figures]{1} \\ +\num[round-mode = places]{1}\\ +} + +\subsubsection{round-minimum} +{ +\sisetup{round-mode = places}% +\num{0.0055} \\ +\num{0.0045} \\ +\sisetup{round-minimum = 0.01}% +\num{0.0055} \\ +\num{0.0045}\\ +} + +\subsubsection{round-half} +{ +\sisetup{round-mode = places, round-half = up}% +\num{0.055} \\ +\num{0.045} \\ +\sisetup{round-half = even}% +\num{0.055} \\ +\num{0.045} +} + +\subsubsection{add-decimal-zero, add-integer-zero} +{ +\num{123.} \\ +\num{456} \\ +\num{.789} \\ +\sisetup{ + add-decimal-zero = false, + add-integer-zero = false, +}% +\num{123.} \\ +\num{456} \\ +\num{.789}\\ +} + +\subsubsection{minimum-integer-digits} +\num{123} \\ +\num[minimum-integer-digits = 1]{123} \\ +\num[minimum-integer-digits = 2]{123} \\ +\num[minimum-integer-digits = 3]{123} \\ +\num[minimum-integer-digits = 4]{123}\\ + +\subsubsection{explicit-sign, retain-explicit-plus} +\num{+345} \\ +\num[retain-explicit-plus]{+345} \\ +\num[explicit-sign = -]{345}\\ +\num[explicit-sign = -]{+345}\\ + +\subsubsection{retain-unity-mantissa, retain-zero-exponent} +\num{1e4} \\ +\num[retain-unity-mantissa = false]{1e4} \\ +\num{444e0} \\ +\num[retain-zero-exponent = true]{444e0}\\ + +\subsubsection{scientific-notation, fixed-exponent} +{ +\num{0.001}\\ +\num{0.0100} \\ +\num{1200}\\ +\sisetup{scientific-notation = true}% +\num{0.001}\\ +\num{0.0100} \\ +\num{1200}\\ +\sisetup{scientific-notation = engineering}% +\num{0.001}\\ +\num{0.0100} \\ +\num{1200}\\ +\sisetup{ +fixed-exponent = 2, +scientific-notation = fixed, +}% +\num{0.001}\\ +\num{0.0100} \\ +\num{1200}\\ +} + +\subsubsection{omit-uncertainty} +\num{0.01(2)} \\ +\num[omit-uncertainty]{0.01(2)}\\ + +\subsection{Printing numbers} +\subsubsection{group-digits, group-four-digits,group-seperator} +\num{12345.67890}\\ +\num[group-digits= false]{12345.67890}\\ +\num[group-digits= decimal]{12345.67890} \\ +\num[group-digits= integer]{12345.67890}\\ + +\num[group-digits= false]{12345.67890}\\ +\num[group-digits= decimal]{12345.67890} \\ +\num[group-digits= integer]{12345.67890}\\ + +\num{1234567890.1234567890}\\ +\num[group-four-digits]{1234567890.1234567890}\\ + +\num{12345} \\ +\num[group-separator = {,}]{12345} \\ +\num[group-separator = \text{~}]{12345}\\ + +\subsubsection{group-minimum-digits} +\num{1234} \\ +\num[group-minimum-digits = 4]{1234} \\ +\num{1234.5678} \\ +\num[group-minimum-digits = 4]{1234.5678}\\ + +\subsubsection{output-complex-root,output-decimal-marker,copy-complex-root,copy-decimal-marker} +\num{1.23} \\ +\num[output-decimal-marker = {,}]{1.23} \\ +\num{1+2i} \\ +\num[output-complex-root = \text{\ensuremath{i}}]{1+2i} \\ +\num[output-complex-root = j]{1+2i} \\ +\num[copy-complex-root]{1+2j} \\ +\num[copy-decimal-marker]{555,555}\\ + +\subsubsection{complex-root-position} +\num{67-0.9i} \\ +\num[complex-root-position = before-number]{67-0.9i} \\ +\num[complex-root-position = after-number]{67-0.9i}\\ + +\subsubsection{exponent-base, exponent-product} +\num[exponent-product = \times]{1e2} \\ +\num[exponent-product = \cdot]{1e2} \\ +\num[exponent-base = 2]{1e2}\\ + +\subsubsection{output-exponent-marker} +\num[output-exponent-marker = \text{e}]{1e2} \\ +\num[output-exponent-marker = \ensuremath{\mathrm{E}}]{1e2}\\ + +\subsubsection{separate-uncertainty,uncertainty-separator,output-open-uncertainty,output-close-uncertainty} +{ +\num{1.234(5)} \\ +\num{1.234\pm 0.005} \\ +\num[separate-uncertainty = true]{1.234(5)} \\ +\num[separate-uncertainty = true]{1.234\pm 0.005} \\ +\sisetup{ + output-open-uncertainty = [, + output-close-uncertainty = ], + uncertainty-separator= {\,} +} +\num{1.234(5)}\\ +} +\num{8.2(13)} \\ +\num{8.2\pm1.3} \\ +\num[separate-uncertainty]{8.2(13)}\\ +\num[separate-uncertainty]{8.2\pm1.3} \\ + +\num{1.234(5) x \pi} \\ +\num[separate-uncertainty = true]{1.234(5) x \pi} \\ + +\num{1.2 +- 0.001}\\ +\num[separate-uncertainty]{1.2 +- 0.001}\\ + +\subsubsection{bracket-numbers, open-bracket, close-bracket} +{ +\num{1 e10} \\ +\num{2i e10} \\ +\num{1+2i e10} \\ +\num[bracket-numbers = false]{1+2i e10} \\ +\sisetup{ + open-bracket = \{, + close-bracket = \}, +} +\num{1+2i e10}\\ +} + +\subsubsection{negative-color} +\num{-15673} \\ +\num[negative-color = red]{-15673} + +\subsubsection{bracket-negative-numbers} +\num{-15673} \\ +\num[bracket-negative-numbers]{-15673} \\ +%\SI{-10}{\metre} \\ +%\SI[bracket-negative-numbers]{-10}{\metre} + +\subsection{Multi-part Numbers} + +\subsubsection{input-product,input-quotient} +\num{1 x 2 x 3} \\ +\num{1e4 x 2(3) x 3/4} \\ +\num[input-product=*]{4 * 5 * 6} \\ +\num{ 1 / 2e4 } \\ +\num{ 1e2 / 3e4 }\\ + +\subsubsection{output-product, output-quotient} +\num[output-product = \cdot]{4.87 x 5.321 x 6.90545} \\ +\num[output-quotient = \text{ div }]{1 / 2}\\ + +\subsubsection{quotient-mode} +\num{1 / 2e4} \\ +\num[quotient-mode = fraction]{1 / 2e4}\\ + +\subsubsection{fraction-function} +{ +\sisetup{quotient-mode= fraction} +\num{1 / 1}\\ +\num[fraction-function= \dfrac]{1 / 2}\\ +%\num[fraction-function= \sfrac]{1 / 3}\\ +\num[fraction-function= \tfrac]{1 / 4}\\ +} + +\subsection{Lists and ranges of numbers} +\subsubsection{list-final-separator,list-pair-separator,list-separator} +\numlist{0.1;0.2;0.3}\\ +\numlist[color=blue]{0.1;0.2;0.3}\\ +\numlist[list-separator = {; }]{0.1;0.2;0.3}\\ +\numlist[list-final-separator = {, }]{0.1;0.2;0.3} \\ +\numlist[ +list-separator += { and }, +list-final-separator = { and finally } +]{0.1;0.2;0.3} \\ +\numlist{0.1;0.2} \\ +\numlist[list-pair-separator = {, and }]{0.1;0.2}\\ + +\subsection{range-phrase} + +\numrange{5}{100} \\ +\numrange[range-phrase = --]{5}{100}\\ +\numrange[color=blue,range-phrase = --]{5}{100}\\ + +\subsection{Angles} +\subsubsection{number-angle-product} +\ang{2.67} \\ +\ang[number-angle-product = \,]{2.67} +\subsubsection{arc-separator} +\ang{6;7;6.5} \\ +\ang[arc-separator = \,]{6;7;6.5} +\subsubsection{add-arc-degree-zero,add-arc-minute-zero,add-arc-second-zero} +\ang{-1;;} \\ +\ang{;-2;} \\ +\ang{;;-3} \\ +{ +\sisetup{add-arc-degree-zero} +\ang{-1;;} \\ +\ang{;-2;} \\ +\ang{;;-3} \\ +} +{ +\sisetup{add-arc-minute-zero} +\ang{-1;;} \\ +\ang{;-2;} \\ +\ang{;;-3} \\ +} +{ +\sisetup{add-arc-second-zero} +\ang{-1;;} \\ +\ang{;-2;} \\ +\ang{;;-3}\\ +} +\ang[add-arc-minute-zero,add-arc-second-zero]{45.697}\\ +\ang[color=blue,add-arc-minute-zero,add-arc-second-zero]{45.697}\\ + +\subsubsection{angle-symbol-over-decimal} +\ang{45.697} \\ +\ang{6;7;6.5} \\ +\ang[angle-symbol-over-decimal]{45.697} \\ +\ang[angle-symbol-over-decimal]{6;7;6.5}\\ +\ang[color=blue,angle-symbol-over-decimal]{6;7;6.5} +% \ang{10}\\ +% \ang{12.3}\\ +% \ang{4,5}\\ +% \ang{1;2;3}\\ +% \ang{;;1}\\ +% \ang{+10;;}\\ +% \ang{-0;1;}\\ + + +\section{Units} +\def\showunit#1{#1 & \texttt{\Backslash#1} & \si{\csname#1\endcsname}} +\begin{table} +\caption{SI base units} +\centering +\begin{tabular}{lll}\hline\hline +Unit & Macro & Symbol \\\hline +\showunit{ampere}\\ +\showunit{candela}\\ +\showunit{kelvin}\\ +\showunit{kilogram}\\ +\showunit{metre}\\ +\showunit{mole}\\ +\showunit{second}\\ +\end{tabular} +\end{table} + +\begin{table} +\caption{Coherent derived units} +\centering +\begin{tabular}{llllll}\hline\hline +Unit & Macro & Symbol & +Unit & Macro & Symbol \\\hline +\showunit{becquerel} & \showunit{newton} \\ +\showunit{degreeCelsius} & \showunit{ohm} \\ +\showunit{coulomb} & \showunit{pascal} \\ +\showunit{farad} & \showunit{radian} \\ +\showunit{gray} & \showunit{siemens} \\ +\showunit{hertz} & \showunit{sievert} \\ +\showunit{henry} & \showunit{steradian} \\ +\showunit{joule} & \showunit{tesla} \\ +\showunit{katal} & \showunit{volt} \\ +\showunit{lumen} & \showunit{watt} \\ +\showunit{lux} & \showunit{weber} \\ +\end{tabular} +\end{table} + +\begin{table} +\caption{Non-SI units} +\centering +\begin{tabular}{lll}\hline\hline +Unit & Macro & Symbol \\\hline +\showunit{day}\\ +\showunit{degree}\\ +\showunit{hectare}\\ +\showunit{hour} \\ +\showunit{litre}\\ +\showunit{liter}\\ +\showunit{arcminute}\\ +\showunit{minute}\\ +\showunit{arcsecond}\\ +\showunit{tonne}\\ +\end{tabular} +\end{table} + +\begin{table} +\caption{Expermental Non-SI units} +\centering +\begin{tabular}{lll}\hline\hline +Unit & Macro & Symbol \\\hline +\showunit{astronomicalunit}\\ +\showunit{atomicmassunit}\\ +\showunit{bohr}\\ +\showunit{clight}\\ +\showunit{dalton}\\ +\showunit{electronmass}\\ +\showunit{electronvolt}\\ +\showunit{elementarycharge}\\ +\showunit{hartree}\\ +\showunit{planckbar}\\ +\end{tabular} +\end{table} + +\begin{table} +\caption{Other non-SI units} +\centering +\begin{tabular}{lll}\hline\hline +Unit & Macro & Symbol \\\hline +\showunit{angstrom}\\ +\showunit{bar}\\ +\showunit{barn}\\ +\showunit{bel}\\ +\showunit{decibel}\\ +\showunit{knot}\\ +\showunit{mmHg}\\ +\showunit{nauticalmile}\\ +\showunit{neper}\\ +\end{tabular} +\end{table} + +\def\showprefix#1{#1 & \texttt{\Backslash#1} & \si{\csname#1\endcsname} & \si[prefixes-as-symbols=false]{\csname#1\endcsname}} +\begin{table} +\caption{Other non-SI units} +\centering +\begin{tabular}{llllllll}\hline\hline +Unit & Macro & Symbol & Power & +Unit & Macro & Symbol & Power \\\hline +\showprefix{yocto} & \showprefix{deca}\\ +\showprefix{zepto} & \showprefix{hecto}\\ +\showprefix{atto} & \showprefix{kilo}\\ +\showprefix{femto} & \showprefix{mega}\\ +\showprefix{pico} & \showprefix{giga}\\ +\showprefix{nano} & \showprefix{tera}\\ +\showprefix{micro} & \showprefix{peta}\\ +\showprefix{milli} & \showprefix{exa}\\ +\showprefix{centi} & \showprefix{zetta}\\ +\showprefix{deci} & \showprefix{yotta}\\ +\end{tabular} +\end{table} + + +\begin{table} +\caption{Abbreviated units} +\centering +\begin{tabular}{lll}\hline\hline +Unit & Macro & Symbol \\\hline +\showunit{fg}\\ +\showunit{pg}\\ +\showunit{ng}\\ +\showunit{ug}\\ +\showunit{mg}\\ +\showunit{g}\\ +\showunit{kg}\\ +\showunit{amu}\\\hline +\showunit{pm}\\ +\showunit{nm}\\ +\showunit{um}\\ +\showunit{mm}\\ +\showunit{cm}\\ +\showunit{dm}\\ +\showunit{m}\\ +\showunit{km}\\\hline +\showunit{as}\\ +\showunit{fs}\\ +\showunit{ps}\\ +\showunit{ns}\\ +\showunit{us}\\ +\showunit{ms}\\ +\showunit{s}\\\hline +\showunit{fmol}\\ +\showunit{pmol}\\ +\showunit{nmol}\\ +\showunit{umol}\\ +\showunit{mmol}\\ +\showunit{mol}\\ +\showunit{kmol}\\\hline +\showunit{pA}\\ +\showunit{nA}\\ +\showunit{uA}\\ +\showunit{mA}\\ +\showunit{A}\\ +\showunit{kA}\\\hline +\showunit{ul}\\ +\showunit{ml}\\ +\showunit{l}\\ +\showunit{hl}\\ +\showunit{uL}\\ +\showunit{mL}\\ +\showunit{L}\\ +\showunit{hL}\\\hline +\showunit{mHz}\\ +\showunit{Hz}\\ +\showunit{kHz}\\ +\showunit{MHz}\\ +\showunit{GHz}\\ +\showunit{THz}\\\hline +\showunit{mN}\\ +\showunit{N}\\ +\showunit{kN}\\ +\showunit{MN}\\\hline +\showunit{Pa}\\ +\showunit{kPa}\\ +\showunit{MPa}\\ +\showunit{GPa}\\\hline +\showunit{mohm}\\ +\showunit{kohm}\\ +\showunit{Mohm}\\\hline +\showunit{pV}\\ +\showunit{nV}\\ +\showunit{uV}\\ +\showunit{mV}\\ +\showunit{V}\\ +\showunit{kV}\\\hline +\showunit{W}\\ +\showunit{uW}\\ +\showunit{mW}\\ +\showunit{kW}\\ +\showunit{MW}\\ +\showunit{GW}\\\hline +\showunit{J}\\ +\showunit{kJ}\\\hline +\showunit{eV}\\ +\showunit{meV}\\ +\showunit{keV}\\ +\showunit{MeV}\\ +\showunit{GeV}\\ +\showunit{TeV}\\\hline +\showunit{kWh}\\\hline +\showunit{F}\\ +\showunit{fF}\\ +\showunit{pF}\\\hline +\showunit{K}\\\hline +\showunit{dB}\\\hline +\end{tabular} +\end{table} + +\begin{table} +\caption{Binary prefixes} +\centering +\begin{tabular}{llllllll}\hline\hline +Unit & Macro & Symbol & Power \\\hline +\showprefix{kibi} \\ +\showprefix{mebi} \\ +\showprefix{gibi} \\ +\showprefix{tebi} \\ +\showprefix{pebi} \\ +\showprefix{exbi} \\ +\showprefix{zebi} \\ +\showprefix{yobi} \\ +\end{tabular} +\end{table} + +%\subsection{Creating Units} +%\subsection{Loading additional units} + +\subsection{Using units} +% Note that \kilogram is defined as \kilo\gram, and acts sorta like a macro +\si{\kilogram} +\si{\kilo\gram} +% Not allowed. +%\si{\kilo\kilogram} +%\si{\kilo\kilo\gram} +{ +% and note that regular macros ARE expanded! +\def\killermeater{\kilo\meter} +\si{\killermeater} +} +{ +% BUT, it prefers its OWN definitions! +\def\gram{Grr} +\si{\kilo\gram} +} + +% However, it's happy with various indirect definitions. +% Ie. units, prefixes (at least) act like regular macros within \si. +\si{\abbra}\\ +\si{\abbrb}\\ +\si{\abbrc}\\ +\si{\abbrd}\\ +\si{\abbre}\\ + +\si{\mabbra}\\ +\si{\mabbrb}\\ + +\si{\killer\meter}\\ + +% Where can highlight go? +\si{\highlight{red}\kilo\gram\metre\per\second} \\ +\si{\kilo\highlight{red}\gram\metre\per\second} \\ +\si{\kilo\gram\highlight{red}\metre\per\second} \\ +\si{\kilo\gram\metre\highlight{red}\per\second} \\ +\si{\kilo\gram\metre\per\highlight{red}\second} \\ + +\si{\cancel\kilo\gram\metre\per\second} \\ +\si{\kilo\cancel\gram\metre\per\second} \\ +\si{\kilo\gram\cancel\metre\per\second} \\ +\si{\kilo\gram\metre\cancel\per\second} \\ +\si{\kilo\gram\metre\per\cancel\second} \\ + +\subsubsection{forbid-literal-units, inter-unit-product} +\si{\farad\squared\lumen\candela} \\ +\si[inter-unit-product = \ensuremath{{}\cdot{}}]{\farad\squared\lumen\candela}\\ +\si[color=blue,inter-unit-product = \ensuremath{{}\cdot{}}]{\farad\squared\lumen\candela}\\ +\subsubsection{per-mode, per-symbol, bracket-unit-denominator} +\si{\joule\per\mole\per\kelvin} \\ +\si{\metre\per\second\squared} \\ +\si[per-mode=fraction]{\joule\per\mole\per\kelvin} \\ +\si[per-mode=fraction]{\joule\raiseto{-1}\mole\per\kelvin} \\ +\si[per-mode=fraction]{\metre\per\second\squared}\\ +\si{\ampere\per\mole\second} \\ +\si[per-mode = reciprocal-positive-first]{\ampere\per\mole\second} + +{ +\sisetup{per-mode = symbol}% +\si{\joule\per\mole\per\kelvin} \\ +\si{\metre\per\second\squared} \\ +\si[per-symbol = \text{~div~}]{\joule\per\mole\per\kelvin} \\ +\si[bracket-unit-denominator = false]{\joule\per\mole\per\kelvin}\\ +} +\si[per-mode=repeated-symbol]{\joule\per\mole\per\kelvin}\\ +{ +\sisetup{per-mode = symbol-or-fraction}% +\( \si{\joule\per\mole\per\kelvin} \) +\[ \si{\joule\per\mole\per\kelvin} \] +\si{\joule\per\mole\per\kelvin} \\ +\( +\displaystyle +\si{\joule\per\mole\per\kelvin} +\) +\[ +\textstyle +\si{\joule\per\mole\per\kelvin} +\] +\[ +\textstyle +\si[color=blue]{\joule\per\mole\per\kelvin} +\] +} + +\subsubsection{sticky-per} +\si{\pascal\per\gray\henry} \\ +\si[sticky-per]{\pascal\per\gray\henry}\\ + +\subsubsection{power-font} +\si{\metre\per\second\squared} \\ +\si[power-font = unit]{\metre\per\second\squared}\\ + +\subsubsection{literal-superscript-as-power} +\si{m.s^{2}} \\ +\si[literal-superscript-as-power = false]{m.s^{2}}\\ + +\subsubsection{qualifier-mode, qualifier-phrase} +\si{\kilogram\polymer\squared\per\mole\catalyst\per\hour} \\ +\si[qualifier-mode = brackets] +{\kilogram\polymer\squared\per\mole\catalyst\per\hour} \\ +\si[qualifier-mode = subscript] +{\kilogram\polymer\squared\per\mole\catalyst\per\hour} \\ +\si[qualifier-mode = space] +{\kilogram\polymer\squared\per\mole\catalyst\per\hour} \\ +\si[qualifier-mode = text] +{\deci\bel\isotropic}\\ + +\si[qualifier-mode = phrase] +{\kilogram\polymer\squared\per\mole\catalyst\per\hour} \\ +\si[qualifier-mode = phrase, qualifier-phrase = { by }] +{\kilogram\polymer\squared\per\mole\catalyst\per\hour} \\ + +\subsubsection{prefixes-as-symbols} +\si{\milli\litre\per\mole\deci\ampere} \\ +%%\SI{10}{\kilo\gram\squared\deci\second} \\ +\si[prefixes-as-symbols=false]{\milli\litre\per\mole\deci\ampere}\\ +\si[prefixes-as-symbols=false]{\kilo\gram\squared\deci\second}\\ +\si{\mega\gram\squared\deci\second}\\ +\si[prefixes-as-symbols=false]{\mega\gram\squared\deci\second}\\ +\si{\micro\gram\squared\deci\second}\\ +\si[prefixes-as-symbols=false]{\micro\gram\squared\deci\second}\\ +\si{\per\mega\gram\squared\deci\second}\\ +\si[prefixes-as-symbols=false]{\per\mega\gram\squared\deci\second}\\ +\si{\per\micro\gram\squared\deci\second}\\ +\si[prefixes-as-symbols=false]{\per\micro\gram\squared\deci\second}\\ +%%\SI[prefixes-as-symbols=false]{10}{\kilo\gram\squared\deci\second}\\ + +\subsubsection{parse-units} +%%\SI{300}{\MHz} \\ +%%\SI[parse-units = false]{300}{\MHz}\\ + +\subsection{Numbers with units} +\subsubsection{allow-number-unit-breaks} +\subsubsection{number-unit-product} +\SI{2.67}{\farad} \\ +\SI[number-unit-product = \ ]{2.67}{\farad} \\ +\SI[number-unit-product = ]{2.67}{\farad}\\ +\SI[number-unit-product = \,]{2.67}{\farad}\\ +\SI[number-unit-product = \;]{2.67}{\farad}\\ +\SI[number-unit-product = $\times$]{2.67}{\farad}\\ +\SI[color=blue,number-unit-product = $\times$]{2.67}{\farad}\\ +\subsubsection{multi-part-units} +{ +\sisetup{separate-uncertainty}% +\SI{12.3(4)}{\kilo\gram} \\ +\SI[multi-part-units = brackets]{12.3(4)}{\kilo\gram} \\ +\SI[multi-part-units = repeat]{12.3(4)}{\kilo\gram}\\ +\SI[multi-part-units = single]{12.3(4)}{\kilo\gram}\\ +} + +{ +\sisetup{separate-uncertainty,bracket-numbers = false}% +\num{1.234(5)e-4} \\ +\SI{1.234(5)e-4}{\metre}\\ +} +\subsubsection{product-units} +\SI{2 x 3 x 4}{\metre} \\ +\SI[product-units = brackets]{2 x 3 x 4}{\metre}\\ +\SI[product-units = brackets-power]{2 x 3 x 4}{\metre}\\ +\SI[product-units = power]{2 x 3 x 4}{\metre}\\ +\SI[product-units = repeat]{2 x 3 x 4}{\metre}\\ +\SI[product-units = single]{2 x 3 x 4}{\metre}\\ + +\subsubsection{list-units,range-units} +\SIlist{2;4;6;8}{\tesla} \\ +\SIlist[list-units = brackets]{2;4;6;8}{\tesla} \\ +\SIlist[list-units = repeat]{2;4;6;8}{\tesla} \\ +\SIlist[list-units = single]{2;4;6;8}{\tesla} \\ +\SIrange{2}{4}{\degreeCelsius} \\ +\SIrange[range-units = brackets]{2}{4}{\degreeCelsius} \\ +\SIrange[range-units = repeat]{2}{4}{\degreeCelsius} \\ +\SIrange[range-units = single]{2}{4}{\degreeCelsius}\\ + +\subsubsection{exponent-to-prefix} +\SI{1700}{\g} \\ +\SI{1.7e3}{\g} \\ +{ +\sisetup{exponent-to-prefix}% +\SI{1700}{\g} \\ +\SI{1.7e3}{\g} \\ +} +{ +\sisetup{fixed-exponent = 3, scientific-notation = fixed}% +\SI{1700}{\g} \\ +\SI{1.7e3}{\g}\\ +} + + +\section{Tabular material} +% \begin{tabular}{S} +% 2.3456 \\ +% \end{tabular} +% \end{document} + + +\begin{table}[H] +\caption{Standard behaviour of the \texttt{S} column type.} +\label{tab:S:standard} +\centering +\begin{tabular}{S} +\toprule +{Some Values} \\ +\midrule +2.3456 \\ +34.2345 \\ +-6.7835 \\ +90.473 \\ +5642.5 \\ +1.2e3 \\ +e4 \\ +\bottomrule +\end{tabular} +\end{table} + + +%\end{document} + + + +\begin{table}[H] +\caption{Detection of surrounding material in an \texttt{S} column.} +\label{tab:S:extras} +\centering +\begin{tabular}{S[color=orange]} +\toprule +{Some Values} \\ +\midrule +12.34 \\ +\color{purple} 975,31 \\ +44.268 \textsuperscript{\emph{a}} \\ +\bottomrule +\end{tabular} +\end{table} + +\begin{table}[H] +\caption{Controlling complex alignment with the tablenum macro.} +\label{tab:tablenum} +\centering +\begin{tabular}{lr} +\toprule +Heading & Heading \\ +\midrule +Info & More info \\ +Info & More info \\ +\multicolumn{2}{c}{\tablenum[table-format = 4.4]{12,34}} \\ +\multicolumn{2}{c}{\tablenum[table-format = 4.4]{333.5567}} \\ +\multicolumn{2}{c}{\tablenum[table-format = 4.4]{4563.21}} \\ +\bottomrule +\end{tabular} +\hfil +\begin{tabular}{lr} +\toprule +Heading & Heading \\ +\midrule +\multirow{2}*{\tablenum{88,999}} & aaa \\ +& bbb \\ +\multirow{2}*{\tablenum{33,435}} & ccc \\ +& ddd \\ +\bottomrule +\end{tabular} +\end{table} + +\begin{table}[H] +\centering +\caption{Units in tables.} +\label{tab:s:demo} +\begin{tabular}{s} +\toprule +\multicolumn{1}{c}{Unit} \\ +\midrule +\metre\squared\per\second \\ +\pascal \\ +m.s^{-1} \\ +\bottomrule +\end{tabular} +\end{table} + +\begin{table}[H] +\centering +\caption{The \texttt{s} column processes everything.} +\label{tab:s:processing} +\sisetup{color = orange} +\begin{tabular}{ss} +\toprule +{Unit} +& \multicolumn{1}{c}{Unit}\\ +\midrule +{\si{m^3}} & \multicolumn{1}{c}{\si{m^3}} \\ +\kilogram +& \kilogram \\ +\bottomrule +\end{tabular} +\end{table} + +\subsubsection{table-parse-only} +\begin{table}[H] +\centering +\caption{Parsing without aligning in an \texttt{S} column.} +\label{tab:S:parse} +\begin{tabular}{SS[table-parse-only]} +\toprule +{Decimal-centred} & +{Simple centring} \\ +\midrule +12.345 & 12.345 \\ +6,78 & 6,78 \\ +-88.8(9) & -88.8(9) \\ +4.5e3 & 4.5e3 \\ +\bottomrule +\end{tabular} +\end{table} + +\subsubsection{table-number-alignment} +\begin{table}[H] +\caption{Aligning the \texttt{S} column.} +\label{tab:S:align} +\centering +\sisetup{ +table-figures-integer = 2, +table-figures-decimal = 4 +} +\begin{tabular}{ +S +S[table-number-alignment = center] +S[table-number-alignment = left] +S[table-number-alignment = right] +} +\toprule +{Some Values} & {Some Values} & {Some Values} & {Some Values} \\ +\midrule +2.3456 & 2.3456 & 2.3456 & 2.3456\\ +34.2345 & 34.2345 & 34.2345 & 34.2345\\ +56.7835 & 56.7835& 56.7835 & 56.7835\\ +90.473 & 90.473 & 90.473 & 90.473\\ +\bottomrule +\end{tabular} +\end{table} + +\subsubsection{table-figures-decimal, table-figures-exponent,table-figures-integer,table-figures- +uncertainty} + +\begin{table}[H] +\caption{Reserving space in \texttt{S} columns.} +\label{tab:S:space} +\sisetup{ +table-number-alignment = center, +table-figures-integer = 2 +} +\centering +\begin{tabular}{ +S +S[table-number-alignment = right] +S[table-figures-uncertainty = 1] +S[separate-uncertainty, table-figures-uncertainty = 1] +S[table-sign-mantissa] +S[table-figures-exponent = 1] +} +\toprule +{Values} +& {Values} +& {Values} +& {Values} +& {Values} +& {Values} \\ +\midrule +2.3 & 2.3 & 2.3(5) & 2.3(5) & 2.3 & 2.3e8\\ +34.23 & 34.23 & 34.23(4) & 34.23(4) & 34.23 & 34.23\\ +56.78 & 56.78 & 56.78(3) & 56.78(3) & -56.78 & 56.78e3\\ +3,76 & 3,76 & 3,76(2) & 3.76(2) & +-3.76 & e6\\ +\bottomrule +\end{tabular} +\end{table} + +\subsubsection{table-comparator} +\begin{table}[H] +\caption{Reserving space for comparators in \texttt{S} columns.} +\label{tab:S:comparators} +\sisetup{ +table-number-alignment = center, +table-figures-integer = 2, +table-figures-decimal = 2, +table-figures-exponent = 2, +} +\centering +\begin{tabular}{ +S +S[table-comparator = true]} +\toprule +{Values} +& {Values} \\ +\midrule +2 .3 & < 2.3e8\\ +34.23 & = 34.23 \\ +56.78 & >= 56.78e3\\ +3,76 & \gg e6 \\ +\bottomrule +\end{tabular} +\end{table} + +\subsubsection{table-format} +\begin{table}[H] +\caption{Using the \texttt{table-format} option.} +\label{tab:S:format} +\centering +\begin{tabular}{ +S +S[table-format = 2.2] +S[table-format = 2.2(1)] +S[table-format = +2.2] +S[table-format = 2.2e1] +} +\toprule +{Values} +& {Values} +& {Values} +& {Values} +& {Values} \\ +\midrule +2.3 & 2.3 & 2.3(5) & 2.3 & 2.3e8 \\ +34.23 & 34.23 & 34.23(4) & 34.23 & 34.23 \\ +56.78 & 56.78 & 56.78(3) & -56.78 & 56.78e3 \\ +3,76 & 3,76 & 3.76(2) & +-3.76 & e6 \\ +\bottomrule +\end{tabular} +\end{table} + + +\subsubsection{table-space-text-pre, table-space-text-post} +\begin{table}[H] +\caption{Text before and after numbers.} +\label{tab:S:ends} +\centering +\sisetup{ +table-number-alignment = center, +table-figures-integer = 2, +table-figures-decimal = 4, +table-space-text-pre += now~, +table-space-text-post = +\textsuperscript{\emph{a}} +} +\begin{tabular}{S} +\toprule +{Values} \\ +\midrule +2.3456 \\ +34.2345 \textsuperscript{\emph{a}}\\ +56.7835 \\ +now~ 90.473 \\ +\bottomrule +\end{tabular} +\end{table} + +\subsubsection{table-align-comparator, table-align-exponent, table-align-uncertainty} +\begin{table}[H] +\centering +\caption{The \texttt{table-align-exponent} option} +\label{tab:align:exp} +\sisetup{table-format = 1.3e2, table-number-alignment = center} +\begin{tabular}{SS[table-align-exponent = false]} +\toprule +{Header} & {Header} \\ +\midrule +1.2e3 & 1.2e3 \\ +1.234e56 & 1.234e56 \\ +\bottomrule +\end{tabular} +\end{table} + +\begin{table}[H] +\centering +\caption{The \texttt{table-align-uncertainty} option} +\label{tab:align:uncert} +\sisetup{ +separate-uncertainty, +table-format = 1.3(1), +} +\begin{tabular}{SS[table-align-uncertainty = false]} +\toprule +{Header} & {Header} \\ +\midrule +1.2(1) & 1.2(3) \\ +1.234(5) & 1.234(5) \\ +\bottomrule +\end{tabular} +\end{table} + +\begin{table}[H] +\centering +\caption{The \texttt{table-align-comparator} option} +\label{tab:align:comp} +\sisetup{table-format = >2.2} +\begin{tabular}{SS[table-align-comparator = false]} +\toprule +{Header} & {Header} \\ +\midrule +> 1.2 & > 1.2 \\ +< 12.34 & < 12.34 \\ +\bottomrule +\end{tabular} +\end{table} + +\subsubsection{table-omit-exponent} +\begin{table}[H] +\centering +\caption{The \texttt{table-omit-exponent} option} +\label{tab:exp:omit} +\begin{tabular}{ +S[table-format = 1.1e1] +S[fixed-exponent = 3, table-format = 2.1, table-omit-exponent] +} +\toprule +{Header} & {Header / \num{e3}} \\ +\midrule +1.2e3 & 1.2e3 \\ +3e2 & 3e2 \\ +1.0e4 & 1.0e4 \\ +\bottomrule +\end{tabular} +\end{table} + +\subsubsection{table-align-text-pre,table-align-text-post} +% \begin{table}[H] +% \caption{Closing notes up to text.} +% \label{tab:S:notes} +% \newrobustcmd\NoteMark[1]{% +% \textsuperscript{\emph{#1}}% +% } +% \centering +% \sisetup{ +% table-number-alignment = center, +% table-figures-integer = 2, +% table-figures-decimal = 4, +% table-space-text-pre +% = \NoteMark{a} +% } +% \begin{tabular}{ +% S +% S[table-align-text-pre = false] +% } +% \toprule +% {Values} +% & {Values} \\ +% \midrule +% 2.3456 & +% 2.3456 \\ +% \NoteMark{a} 4.234 & \NoteMark{a} 4.234 \\ +% \NoteMark{b} +% .78 +% & \NoteMark{b} +% .78 \\ +% \NoteMark{d} 88 +% & \NoteMark{d} 88 +% \\ +% \bottomrule +% \end{tabular} +% \hfil +% \sisetup{table-space-text-post = \NoteMark{a}} +% \begin{tabular}{ +% S +% S[table-align-text-post = false] +% } +% \toprule +% {Values} +% & {Values} \\ +% \midrule +% 2.3456 +% & 2.3456 \\ +% 34.234 \NoteMark{a} & 34.234 \NoteMark{a} \\ +% 56.78 +% \NoteMark{b} & 56.78 \NoteMark{b} \\ +% 90.4 +% \NoteMark{c} & 90.4 +% \NoteMark{c} \\ +% 88 +% \NoteMark{d} & 88 +% \NoteMark{d} \\ +% \bottomrule +% \end{tabular} +% \end{table} + +\subsubsection{table-auto-round} +\begin{table}[H] +\centering +\caption{The \texttt{table-auto-round} option.} +\label{tab:S:auto} +\sisetup{ +table-number-alignment = center, +table-figures-integer = 1, +table-figures-decimal = 3 +} +% Notice the overfull hbox which results with +% the first column +\begin{tabular}{ +S +S[table-auto-round] +} +\toprule +{Header} & {Header} \\ +\midrule +1.2 & 1.2 \\ +1.2345 & 1.2345 \\ +\bottomrule +\end{tabular} +\end{table} + +\subsubsection{parse-numbers} +\begin{table}[H] +\caption{Aligning without parsing.} +\label{tab:S:nonparsed} +\sisetup{ +parse-numbers = false, +table-figures-integer = 2, +table-figures-decimal = 3 +} +\centering +\begin{tabular}{ +S +S[table-number-alignment = center] +S[table-number-alignment = right] +S[table-number-alignment = left] +} +\toprule +{Some values} +& {Some values} +& {Some values} +& {Some values} \\ +\midrule +2.35 & +2.35 & +2.35 & +2.35 \\ +34.234 & +34.234 & +34.234 & 34.234 \\ +56.783 & +56.783 & +56.783 & 56.783 \\ +3,762 & +3,762 & +3,762 & +3.762 \\ +\sqrt{2} & \sqrt{2} & \sqrt{2} & \sqrt{2} \\ +\bottomrule +\end{tabular} +\end{table} + +\subsubsection{table-text-alignment} +\begin{table}[H] +\caption{Aligning text in \texttt{S} columns.} +\label{tab:S:text} +\sisetup{ +table-number-alignment = center, +table-figures-integer = 4, +table-figures-decimal = 4 +} +\centering +\begin{tabular}{ +S +S[table-text-alignment = left] +S[table-text-alignment = right] +} +\toprule +{Values} +& {Values} +& {Values} \\ +\midrule +992.435 & 992.435 & 992.435 \\ +7734.2344 & 7734.2344 & 7734.2344 \\ +56.7834 & +56.7834 & +56.7834 \\ +3,7462 & +3,7462 & +3,7462 \\ +\bottomrule +\end{tabular} +\end{table} + +\subsubsection{table-unit-alignment} +\begin{table}[H] +\centering +\caption{Alignment options in \texttt{s} columns.} +\label{tab:s:align} +\begin{tabular} +{ +s[table-unit-alignment = right] +s +s[table-unit-alignment = left] +} +\toprule +{Right-aligned} & +{Centred text} & +{Left-aligned} \\ +\midrule +\metre\per\second & \metre\per\second & \metre\per\second \\ +\kilogram +& \kilogram +& \kilogram +\\ +\bottomrule +\end{tabular} +\end{table} + +\subsubsection{table-alignment} + +\subsubsection{table-column-width} +\begin{table}[H] +\centering +\caption{Fixed-width columns.} +\label{tab:width:fixed} +\begin{tabular} +{ +s +s[table-column-width = 2 cm] +S +S[table-column-width = 2 cm] +} +\toprule +{Flexible} & +{Fixed} +& +{Flexible} & +{Fixed} +\\ +\midrule +\metre\per\second & \metre\per\second & 1.23 & 1.23 \\ +\kilogram\candela & \kilogram\candela & 45.6 & 45.6 \\ +\bottomrule +\end{tabular} +\end{table} + +% \begin{table}[H] +% \centering +% \caption{Right-aligning under a heading.} +% \label{tab:width:special} +% \settowidth\mylength{Long header} +% \sisetup{ +% table-format +% = 4 +% , +% table-number-alignment = center +% , +% table-column-width +% = \mylength , +% input-decimal-markers = +% , +% input-symbols +% = . +% , +% } +% \begin{tabular}{S} +% \toprule +% {Long header} \\ +% \midrule +% 12.33 \\ +% 2 +% \\ +% 1234 +% \\ +% \bottomrule +% \end{tabular} +% \end{table} + +\end{document} + + + + + + + + + + + + + +\si{kg.m.s^{-1}}\\ +\si{\kilogram\metre\per\second} \\ +\si[per-mode=symbol]{\kilogram\metre\per\second} \\ +\si[per-mode=symbol]{\kilogram\metre\per\ampere\per\second} + +\numlist{10;20;30}\\ +\SIlist{0.13;0.67;0.80}{\milli\metre} \\ +\numrange{10}{20}\\ +\SIrange{0.13}{0.67}{\milli\metre}\\ + + +\numlist{10;30;50;70} + +\numrange{10}{30} + + +\si{kg.m/s^2} \\ +\si{g_{polymer}~mol_{cat}.s^{-1}} + +\si{\kilo\gram\metre\per\square\second} +\si{\gram\per\cubic\centi\metre} +\si{\square\volt\cubic\lumen\per\farad} +\si{\metre\squared\per\gray\cubic\lux} +\si{\henry\second} + +\SI[mode=text]{1.23}{J.mol^{-1}.K^{-1}}\\ +\SI{.23e7}{\candela}\\ +\SI[per-mode=symbol]{1.99}[\$]{\per\kilogram}\\ +\SI[per-mode=fraction]{1,345}{\coulomb\per\mole}\\ + +\SIlist{10;30;45}{\metre} + +\si{\square\becquerel} \\ +\si{\joule\squared\per\lumen} \\ +\si{\cubic\lux\volt\tesla\cubed} + +\si{\henry\tothe{5}} \\ +\si{\raiseto{4.5}\radian} + +\si{\joule\per\mole\per\kelvin} \\ +\si{\joule\per\mole\kelvin} \\ +\si{\per\henry\tothe{5}} \\ +\si{\per\square\becquerel} + +\si{\kilogram\of{metal}} \\ +\SI[qualifier-mode = brackets] +{0.1}{\milli\mole\of{cat}\per\kilogram\of{prod}} + +\si[per-mode = fraction] +{\cancel\kilogram\metre\per\cancel\kilogram\per\second} \\ +\si{\highlight{red}\kilogram\metre\per\second} \\ +\si[unit-color = purple] +{\highlight{red}\kilogram\metre\per\second} + + +\si{\kilo} \\ +\si{\micro} \\ +\si[prefixes-as-symbols = false]{\kilo} + +\si{\kilo\gram\micro} \\ +\SI{10}{\micro} + + +\begin{table} +\caption{Standard behaviour of the \texttt{S} column type.} +\label{tab:S:standard} +\centering +\begin{tabular}{S} +\toprule +{Some Values} \\ +\midrule +2.3456 \\ +34.2345 \\ +-6.7835 \\ +90.473 \\ +5642.5 +\\ +1.2e3 \\ +e4 \\ +\bottomrule +\end{tabular} +\end{table} + +\begin{table} +\caption{Detection of surrounding material in an \texttt{S} +column.} +\label{tab:S:extras} +\centering +\begin{tabular}{S[color=orange]} +\toprule +{Some Values} \\ +\midrule +12.34 \\ +\color{purple} 975,31 \\ +44.268 \textsuperscript{\emph{a}} \\ +\bottomrule +\end{tabular} +\end{table} + +\begin{table} +\caption{Controlling complex alignment with the tablenum macro.} +\label{tab:tablenum} +\centering +\begin{tabular}{lr} +\toprule +Heading & Heading \\ +\midrule +Info & More info \\ +Info & More info \\ +\multicolumn{2}{c}{\tablenum[table-format = 4.4]{12,34}} +\\ +\multicolumn{2}{c}{\tablenum[table-format = 4.4]{333.5567}} \\ +\multicolumn{2}{c}{\tablenum[table-format = 4.4]{4563.21}} +\bottomrule +\end{tabular} +\hfil +\begin{tabular}{lr} +\toprule +Heading & Heading \\ +\midrule +\multirow{2}*{\tablenum{88,999}} & aaa \\ +& bbb \\ +\multirow{2}*{\tablenum{33,435}} & ccc \\ +& ddd \\ +\bottomrule +\end{tabular} +\end{table} + +\begin{table} +\centering +\caption{Units in tables.} +\label{tab:s:demo} +\begin{tabular}{s} +\toprule +\multicolumn{1}{c}{Unit} \\ +\midrule +\metre\squared\per\second \\ +\pascal \\ +m.s^{-1} \\ +\bottomrule +\end{tabular} +\end{table} + + +\end{document} diff --git a/t/complex/si_v2.xml b/t/complex/si_v2.xml new file mode 100644 index 000000000..ce47e4810 --- /dev/null +++ b/t/complex/si_v2.xml @@ -0,0 +1,9022 @@ + + + + + + + + + + + + + + +

+ + + + + + + + 1.2 + ° + + + + 3 + + + + + 4 + + + + + + + + +Some text + + + + 4 + + + m + + + Sv + + - + 1 + + + + + + More text + + + + 4 + + + m + + + Sv + + - + 1 + + + + + + Still red here! + + + + + + + + + + + + 1 + ,   + 2 + ,   + 3 +   and   + 4 + + + + Still red here!

+
+ +

Unsemantic: + + + + + + + m + 2 + + s + + + + + + + μ + + + m + 2 + + + +

+
+ +

Semantic again: + + + + + 0.094 + + + π + mm + mrad + + + +

+
+ +

+ + + + 0.094 + + + + + 1 + 3 + + mm + mrad + + + +

+
+ +

+ + + + 0.094 + + + + / + π + mm + + + + mrad + 3 + + + + +

+
+
+ + 1 + 1 + §1 + + <tag close=" ">1</tag>Numbers + + + 1.1 + 1.1 + §1.1 + + <tag close=" ">1.1</tag>General + +

+ + 12 345.678 90 + + + + + ± + 1 + + + 2 + i + + + + + + + × + 0.3 + + + 10 + 45 + + + + + + + × + + × + 1.654 + 2.34 + + 3.430 + + + + + π + + + + + + + + 2 + π + + + + + + + / + π + 3 + + +

+
+ +

+ + 123 + + + + 1234 + + + + 12 345 + + + + 0.123 + + + + 0.1234 + + + + 0.123 45 + + + + + × + 3.45 + + + 10 + + + + - + 4 + + + + + + + + + + - + + + 10 + 10 + + + +

+
+ +

+ + + × + 123 + + + 10 + 4 + + + + + + + × + + + 123 + + + + ( + 3 + ) + + + + + + 10 + 4 + + + +

+
+ +

+ + + + 123 + + + + ( + 2 + ) + + + + + + + + ± + 123 + + + 2 + i + + + + + + + + + 123 + + + 234 + i + + + + + + + × + + + + + + + + ( + + + + 123 + + + 234 + i + + + ) + + + + + 10 + 3 + + + + + + + × + + + + + + + + ( + + + + + + 123 + + + + ( + 1 + ) + + + + + + + + 234 + + + + ( + 1 + ) + + + + i + + + ) + + + + + 10 + 3 + + + + + + + + 3 + i + + + + + + × + + + 3 + i + + + + 10 + 4 + + + +

+
+ +

Pretty nonsensical stuff? + + + + × + + + + 1 + . + π + + + + + 10 + 3 + + + + + + 1234.1234 + + + + + + + + 3 + ξ + + + + + + + + + + 3 + ξ + + + + + + + + + + 3 + ξ + + + + + + + + + + 3 + ξ + + + + + + + + + + 3 + ξ + + + +

+
+ +

+ + + + 1.23 + + + + ( + 1 + ) + + + + + + + + + 1.23 + + + + ( + 1 + ) + + + + + + + + + 1.23 + + + + ( + π + ) + + + + +

+
+
+ + + 1.2 + 1.2 + §1.2 + + <tag close=" ">1.2</tag>Parsing numbers + + + 1.2.1 + 1.2.1 + §1.2.1 + + <tag close=" ">1.2.1</tag>input-digits, input-decimal-markers, input-signs, input-exponent-markers + + + + 1.2.2 + 1.2.2 + §1.2.2 + + <tag close=" ">1.2.2</tag>input-symbols, input-ignore + + + + 1.2.3 + 1.2.3 + §1.2.3 + + <tag close=" ">1.2.3</tag>input-comparators + +

+ + + < + + 10 + + + + + + + + 0.12 + + +

+
+
+ + + 1.2.4 + 1.2.4 + §1.2.4 + + <tag close=" ">1.2.4</tag>input-open-uncertainty, input-close-uncertainty, input-uncertainty-signs + +

+ + + + 9.99 + + + + ( + 9 + ) + + + + + + + + + 9.99 + + + + ( + 9 + ) + + + + + + + + + 9.99 + + + + ( + 9 + ) + + + + + + + + + 123.0 + + + + ( + 45 + ) + + + + + + + + + 12.3 + + + + ( + 60 + ) + + + + +

+
+
+ + + 1.2.5 + 1.2.5 + §1.2.5 + + <tag close=" ">1.2.5</tag>input-complex-roots + +

+ + + + + 9.99 + + + 88.8 + i + + + + + + + + + 9.99 + + + 88.8 + i + + + +

+
+
+ + + 1.2.6 + 1.2.6 + §1.2.6 + + <tag close=" ">1.2.6</tag>input-protect-tokens + + + + 1.2.7 + 1.2.7 + §1.2.7 + + <tag close=" ">1.2.7</tag>parse-numbers + +

+ + + + 2 + + +

+
+
+
+ + + 1.3 + 1.3 + §1.3 + + <tag close=" ">1.3</tag>Post-processing numbers + + + 1.3.1 + 1.3.1 + §1.3.1 + + <tag close=" ">1.3.1</tag>round-mode, round-precision + +

+ + 1.234 56 + + + + 14.23 + + + + + + 0.123 45 + + + + ( + 9 + ) + + + + + + + 1.234 56 + + + + 14.23 + + + + + + 0.123 45 + + + + ( + 9 + ) + + + + + + + 1.234 56 + + + + 14.23 + + + + + + 0.123 45 + + + + ( + 9 + ) + + + + +

+
+
+ + + 1.3.2 + 1.3.2 + §1.3.2 + + <tag close=" ">1.3.2</tag>round-integer-to-decimal + +

+ + 1 + + + + 1 + + + + + 1 + + + + 1 + +

+
+
+ + + 1.3.3 + 1.3.3 + §1.3.3 + + <tag close=" ">1.3.3</tag>round-minimum + +

+ + 0.0055 + + + + 0.0045 + + + + 0.0055 + + + + 0.0045 + +

+
+
+ + + 1.3.4 + 1.3.4 + §1.3.4 + + <tag close=" ">1.3.4</tag>round-half + +

+ + 0.055 + + + + 0.045 + + + + 0.055 + + + + 0.045 + +

+
+
+ + + 1.3.5 + 1.3.5 + §1.3.5 + + <tag close=" ">1.3.5</tag>add-decimal-zero, add-integer-zero + +

+ + 123.0 + + + + 456 + + + + 0.789 + + + + + + + 123 + . + + + + + + 456 + + + + .789 + +

+
+
+ + + 1.3.6 + 1.3.6 + §1.3.6 + + <tag close=" ">1.3.6</tag>minimum-integer-digits + +

+ + 123 + + + + 123 + + + + 123 + + + + 123 + + + + 123 + +

+
+
+ + + 1.3.7 + 1.3.7 + §1.3.7 + + <tag close=" ">1.3.7</tag>explicit-sign, retain-explicit-plus + +

+ + 345 + + + + + + + + + 345 + + + + + + + + + - + 345 + + + + + + 345 + +

+
+
+ + + 1.3.8 + 1.3.8 + §1.3.8 + + <tag close=" ">1.3.8</tag>retain-unity-mantissa, retain-zero-exponent + +

+ + + × + 1 + + + 10 + 4 + + + + + + + × + 1 + + + 10 + 4 + + + + + + 444 + + + + + × + 444 + + + 10 + 0 + + + +

+
+
+ + + 1.3.9 + 1.3.9 + §1.3.9 + + <tag close=" ">1.3.9</tag>scientific-notation, fixed-exponent + +

+ + 0.001 + + + + 0.0100 + + + + 1200 + + + + 0.001 + + + + 0.0100 + + + + 1200 + + + + 0.001 + + + + 0.0100 + + + + 1200 + + + + 0.001 + + + + 0.0100 + + + + 1200 + +

+
+
+ + + 1.3.10 + 1.3.10 + §1.3.10 + + <tag close=" ">1.3.10</tag>omit-uncertainty + +

+ + + + 0.01 + + + + ( + 2 + ) + + + + + + + 0.01 + +

+
+
+
+ + + 1.4 + 1.4 + §1.4 + + <tag close=" ">1.4</tag>Printing numbers + + + 1.4.1 + 1.4.1 + §1.4.1 + + <tag close=" ">1.4.1</tag>group-digits, group-four-digits,group-seperator + +

+ + 12 345.678 90 + + + + 12345.67890 + + + + 12345.678 90 + + + + 12 345.67890 + +

+
+ +

+ + 12345.67890 + + + + 12345.678 90 + + + + 12 345.67890 + +

+
+ +

+ + 1 234 567 890.123 456 789 0 + + + + 1 234 567 890.123 456 789 0 + +

+
+ +

+ + 12 345 + + + + + + + 12 + , + 345 + + + + + + + + + + 12 +   + 345 + + + +

+
+
+ + + 1.4.2 + 1.4.2 + §1.4.2 + + <tag close=" ">1.4.2</tag>group-minimum-digits + +

+ + 1234 + + + + 1 234 + + + + 1234.5678 + + + + 1 234.567 8 + +

+
+
+ + + 1.4.3 + 1.4.3 + §1.4.3 + + <tag close=" ">1.4.3</tag>output-complex-root,output-decimal-marker,copy-complex-root,copy-decimal-marker + +

+ + 1.23 + + + + + + + 1 + , + 23 + + + + + + + + + 1 + + + 2 + i + + + + + + + + + 1 + + + 2 + i + + + + + + + + + 1 + + + 2 + j + + + + + + + + + 1 + + + 2 + j + + + + + + + + + 555 + , + 555 + + + +

+
+
+ + + 1.4.4 + 1.4.4 + §1.4.4 + + <tag close=" ">1.4.4</tag>complex-root-position + +

+ + + - + 67 + + + 0.9 + i + + + + + + + - + 67 + + + i + 0.9 + + + + + + + - + 67 + + + 0.9 + i + + + +

+
+
+ + + 1.4.5 + 1.4.5 + §1.4.5 + + <tag close=" ">1.4.5</tag>exponent-base, exponent-product + +

+ + + × + 1 + + + 10 + 2 + + + + + + + + 1 + + + 10 + 2 + + + + + + + × + 1 + + + 2 + 2 + + + +

+
+
+ + + 1.4.6 + 1.4.6 + §1.4.6 + + <tag close=" ">1.4.6</tag>output-exponent-marker + +

+ + + + 1 + + + e + 2 + + + + + + + + 1 + + + E + 2 + + + +

+
+
+ + + 1.4.7 + 1.4.7 + §1.4.7 + + <tag close=" ">1.4.7</tag>separate-uncertainty,uncertainty-separator,output-open-uncertainty,output-close-uncertainty + +

+ + + + 1.234 + + + + ( + 5 + ) + + + + + + + + + 1.234 + + + + ( + 5 + ) + + + + + + + + ± + 1.234 + 0.005 + + + + + + ± + 1.234 + 0.005 + + + + + + + + 1.234 + + + + + + + [ + 5 + ] + + + + + + + + + + 8.2 + + + + ( + 13 + ) + + + + + + + + + 8.2 + + + + ( + 13 + ) + + + + + + + + ± + 8.2 + 1.3 + + + + + + ± + 8.2 + 1.3 + + +

+
+ +

+ + + × + + + 1.234 + + + + ( + 5 + ) + + + + π + + + + + + × + + + + + + + + ( + + ± + 1.234 + 0.005 + + ) + + + π + + +

+
+ +

+ + + + 1.200 + + + + ( + 1 + ) + + + + + + + + ± + 1.2 + 0.001 + + +

+
+
+ + + 1.4.8 + 1.4.8 + §1.4.8 + + <tag close=" ">1.4.8</tag>bracket-numbers, open-bracket, close-bracket + +

+ + + × + 1 + + + 10 + 10 + + + + + + + × + + + 2 + i + + + + 10 + 10 + + + + + + + × + + + + + + + + ( + + + + 1 + + + 2 + i + + + ) + + + + + 10 + 10 + + + + + + + × + + + + 1 + + + 2 + i + + + + + 10 + 10 + + + + + + + + × + + + + + + + + { + + + + 1 + + + 2 + i + + + } + + + + + 10 + 10 + + + +

+
+
+ + + 1.4.9 + 1.4.9 + §1.4.9 + + <tag close=" ">1.4.9</tag>negative-color + +

+ + + + + - + 15 673 + + + + + + + + + - + 15 673 + + + +

+
+
+ + + 1.4.10 + 1.4.10 + §1.4.10 + + <tag close=" ">1.4.10</tag>bracket-negative-numbers + +

+ + + + + - + 15 673 + + + + + + + + + ( + 15 673 + ) + + + +

+
+
+
+ + + 1.5 + 1.5 + §1.5 + + <tag close=" ">1.5</tag>Multi-part Numbers + + + 1.5.1 + 1.5.1 + §1.5.1 + + <tag close=" ">1.5.1</tag>input-product,input-quotient + +

+ + + × + + × + 1 + 2 + + 3 + + + + + + / + + × + + × + + × + 1 + + + 10 + 4 + + + + + 2 + + + + ( + 3 + ) + + + + + 3 + + 4 + + + + + + × + + × + 4 + 5 + + 6 + + + + + + / + 1 + + + + + + + + ( + + × + 2 + + + 10 + 4 + + + ) + + + + + + + + / + + × + 1 + + + 10 + 2 + + + + + + + + + + ( + + × + 3 + + + 10 + 4 + + + ) + + + + +

+
+
+ + + 1.5.2 + 1.5.2 + §1.5.2 + + <tag close=" ">1.5.2</tag>output-product, output-quotient + +

+ + + + + + 4.87 + 5.321 + + 6.905 45 + + + + + + div + 1 + 2 + + +

+
+
+ + + 1.5.3 + 1.5.3 + §1.5.3 + + <tag close=" ">1.5.3</tag>quotient-mode + +

+ + + / + 1 + + + + + + + + ( + + × + 2 + + + 10 + 4 + + + ) + + + + + + + + + 1 + + × + 2 + + + 10 + 4 + + + + +

+
+
+ + + 1.5.4 + 1.5.4 + §1.5.4 + + <tag close=" ">1.5.4</tag>fraction-function + +

+ + + + 1 + 1 + + + + + + + 1 + 2 + + + + + + + 1 + 4 + + +

+
+
+
+ + + 1.6 + 1.6 + §1.6 + + <tag close=" ">1.6</tag>Lists and ranges of numbers + + + 1.6.1 + 1.6.1 + §1.6.1 + + <tag close=" ">1.6.1</tag>list-final-separator,list-pair-separator,list-separator + +

+ + + + + + + + + + 0.1 + ,   + 0.2 +   and   + 0.3 + + + + + + + + + + + + + + 0.1 + ,   + 0.2 +   and   + 0.3 + + + + + + + + + + + + + + 0.1 + ; + 0.2 +   and   + 0.3 + + + + + + + + + + + + + + 0.1 + ,   + 0.2 + , + 0.3 + + + + + + + + + + + + + + 0.1 + and + 0.2 + and finally + 0.3 + + + + + + + + + + + + + 0.1 +   and   + 0.2 + + + + + + + + + + + + + 0.1 + , and + 0.2 + + + +

+
+
+
+ + + 1.7 + 1.7 + §1.7 + + <tag close=" ">1.7</tag>range-phrase + +

+ + + + + + + + + 5 +   to   + 100 + + + + + + + + + + + + + 5 + + 100 + + + + + + + + + + + + + 5 + + 100 + + + +

+
+
+ + + 1.8 + 1.8 + §1.8 + + <tag close=" ">1.8</tag>Angles + + + 1.8.1 + 1.8.1 + §1.8.1 + + <tag close=" ">1.8.1</tag>number-angle-product + +

+ + + + + + 2.67 + ° + + + + + + + + + + 2.67 + ° + + + +

+
+
+ + + 1.8.2 + 1.8.2 + §1.8.2 + + <tag close=" ">1.8.2</tag>arc-separator + +

+ + + + + + + + 6 + ° + + + + 7 + + + + + 6.5 + + + + + + + + + + + + + + 6 + ° + + + + 7 + + + + + 6.5 + + + + + +

+
+
+ + + 1.8.3 + 1.8.3 + §1.8.3 + + <tag close=" ">1.8.3</tag>add-arc-degree-zero,add-arc-minute-zero,add-arc-second-zero + +

+ + + + + - + + + 1 + ° + + + + + + + + + + - + + + 2 + + + + + + + + + + + - + + + 3 + + + + + + + + + + + + + - + + + 1 + ° + + + + + + + + + + - + + + + + 0 + ° + + + + 2 + + + + + + + + + + + + - + + + + + 0 + ° + + + + 3 + + + + + + + + + + + + + + + - + + + + + 1 + ° + + + + 0 + + + + + + + + + + + + - + + + 2 + + + + + + + + + + + - + + + + + 0 + + + + + 3 + + + + + + + + + + + + + + + - + + + + + 1 + ° + + + + 0 + + + + + + + + + + + + - + + + + + 2 + + + + + 0 + + + + + + + + + + + + - + + + 3 + + + + + + + + + + + + + 45.697 + ° + + + + + + + + + + 45.697 + ° + + + +

+
+
+ + + 1.8.4 + 1.8.4 + §1.8.4 + + <tag close=" ">1.8.4</tag>angle-symbol-over-decimal + +

+ + + + + + 45.697 + ° + + + + + + + + + + + + 6 + ° + + + + 7 + + + + + 6.5 + + + + + + + + + + + + 45 + . + ° + 697 + + + + + + + + + + + + 6 + ° + + + + 7 + + + + + 6 + . + + 5 + + + + + + + + + + + + + 6 + ° + + + + 7 + + + + + 6 + . + + 5 + + + + +

+
+
+
+
+
+ + 2 + 2 + §2 + + <tag close=" ">2</tag>Units + + + Table 1 + 1 + Table 1 + + 1SI base units + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1SI base units
UnitMacroSymbol
ampere\ampere + + A + +
candela\candela + + cd + +
kelvin\kelvin + + K + +
kilogram\kilogram + + kg + +
metre\metre + + m + +
mole\mole + + mol + +
second\second + + s + +
+ + + Table 2 + 2 + Table 2 + + 2Coherent derived units + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2Coherent derived units
UnitMacroSymbolUnitMacroSymbol
becquerel\becquerel + + Bq + + newton\newton + + N + +
degreeCelsius\degreeCelsius + + °C + + ohm\ohm + + + +
coulomb\coulomb + + C + + pascal\pascal + + Pa + +
farad\farad + + F + + radian\radian + + rad + +
gray\gray + + Gy + + siemens\siemens + + S + +
hertz\hertz + + Hz + + sievert\sievert + + Sv + +
henry\henry + + H + + steradian\steradian + + sr + +
joule\joule + + J + + tesla\tesla + + T + +
katal\katal + + kat + + volt\volt + + V + +
lumen\lumen + + lm + + watt\watt + + W + +
lux\lux + + lx + + weber\weber + + Wb + +
+ + + Table 3 + 3 + Table 3 + + 3Non-SI units + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3Non-SI units
UnitMacroSymbol
day\day + + d + +
degree\degree + + ° + +
hectare\hectare + + ha + +
hour\hour + + h + +
litre\litre + + l + +
liter\liter + + L + +
arcminute\arcminute + + + +
minute\minute + + min + +
arcsecond\arcsecond + + + +
tonne\tonne + + t + +
+ + + Table 4 + 4 + Table 4 + + 4Expermental Non-SI units + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4Expermental Non-SI units
UnitMacroSymbol
astronomicalunit\astronomicalunit + + ua + +
atomicmassunit\atomicmassunit + + u + +
bohr\bohr + + + + + + a + 0 + + + + +
clight\clight + + + + + + c + 0 + + + + +
dalton\dalton + + Da + +
electronmass\electronmass + + + + + + m + e + + + + +
electronvolt\electronvolt + + eV + +
elementarycharge\elementarycharge + + + + e + + + +
hartree\hartree + + + + + + E + h + + + + +
planckbar\planckbar + + + + + + + +
+ + + Table 5 + 5 + Table 5 + + 5Other non-SI units + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5Other non-SI units
UnitMacroSymbol
angstrom\angstrom + + Å + +
bar\bar + + bar + +
barn\barn + + b + +
bel\bel + + B + +
decibel\decibel + + dB + +
knot\knot + + kn + +
mmHg\mmHg + + mmHg + +
nauticalmile\nauticalmile + + M + +
neper\neper + + Np + +
+ + + Table 6 + 6 + Table 6 + + 6Other non-SI units + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6Other non-SI units
UnitMacroSymbolPowerUnitMacroSymbolPower
yocto\yocto + + y + + + + + + + + 10 + -24 + + + + + deca\deca + + da + + + + + + + + 10 + 1 + + + + +
zepto\zepto + + z + + + + + + + + 10 + -21 + + + + + hecto\hecto + + h + + + + + + + + 10 + 2 + + + + +
atto\atto + + a + + + + + + + + 10 + -18 + + + + + kilo\kilo + + k + + + + + + + + 10 + 3 + + + + +
femto\femto + + f + + + + + + + + 10 + -15 + + + + + mega\mega + + M + + + + + + + + 10 + 6 + + + + +
pico\pico + + p + + + + + + + + 10 + -12 + + + + + giga\giga + + G + + + + + + + + 10 + 9 + + + + +
nano\nano + + n + + + + + + + + 10 + -9 + + + + + tera\tera + + T + + + + + + + + 10 + 12 + + + + +
micro\micro + + µ + + + + + + + + 10 + -6 + + + + + peta\peta + + P + + + + + + + + 10 + 15 + + + + +
milli\milli + + m + + + + + + + + 10 + -3 + + + + + exa\exa + + E + + + + + + + + 10 + 18 + + + + +
centi\centi + + c + + + + + + + + 10 + -2 + + + + + zetta\zetta + + Z + + + + + + + + 10 + 21 + + + + +
deci\deci + + d + + + + + + + + 10 + -1 + + + + + yotta\yotta + + Y + + + + + + + + 10 + 24 + + + + +
+ + + Table 7 + 7 + Table 7 + + 7Abbreviated units + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7Abbreviated units
UnitMacroSymbol
fg\fg + + fg + +
pg\pg + + pg + +
ng\ng + + ng + +
ug\ug + + + + µ + g + + +
mg\mg + + mg + +
g\g + + g + +
kg\kg + + kg + +
amu\amu + + u + +
pm\pm + + pm + +
nm\nm + + nm + +
um\um + + + + µ + m + + +
mm\mm + + mm + +
cm\cm + + cm + +
dm\dm + + dm + +
m\m + + m + +
km\km + + km + +
as\as + + as + +
fs\fs + + fs + +
ps\ps + + ps + +
ns\ns + + ns + +
us\us + + + + µ + s + + +
ms\ms + + ms + +
s\s + + s + +
fmol\fmol + + fmol + +
pmol\pmol + + pmol + +
nmol\nmol + + nmol + +
umol\umol + + + + µ + mol + + +
mmol\mmol + + mmol + +
mol\mol + + mol + +
kmol\kmol + + kmol + +
pA\pA + + pA + +
nA\nA + + nA + +
uA\uA + + + + µ + A + + +
mA\mA + + mA + +
A\A + + A + +
kA\kA + + kA + +
ul\ul + + + + µ + l + + +
ml\ml + + ml + +
l\l + + l + +
hl\hl + + hl + +
uL\uL + + + + µ + L + + +
mL\mL + + mL + +
L\L + + L + +
hL\hL + + hL + +
mHz\mHz + + mHz + +
Hz\Hz + + Hz + +
kHz\kHz + + kHz + +
MHz\MHz + + MHz + +
GHz\GHz + + GHz + +
THz\THz + + THz + +
mN\mN + + mN + +
N\N + + N + +
kN\kN + + kN + +
MN\MN + + MN + +
Pa\Pa + + Pa + +
kPa\kPa + + kPa + +
MPa\MPa + + MPa + +
GPa\GPa + + GPa + +
mohm\mohm + + + + m + + + +
kohm\kohm + + + + k + + + +
Mohm\Mohm + + + + M + + + +
pV\pV + + pV + +
nV\nV + + nV + +
uV\uV + + + + µ + V + + +
mV\mV + + mV + +
V\V + + V + +
kV\kV + + kV + +
W\W + + W + +
uW\uW + + + + µ + W + + +
mW\mW + + mW + +
kW\kW + + kW + +
MW\MW + + MW + +
GW\GW + + GW + +
J\J + + J + +
kJ\kJ + + kJ + +
eV\eV + + eV + +
meV\meV + + meV + +
keV\keV + + keV + +
MeV\MeV + + MeV + +
GeV\GeV + + GeV + +
TeV\TeV + + TeV + +
kWh\kWh + + + + kW + h + + +
F\F + + F + +
fF\fF + + fF + +
pF\pF + + pF + +
K\K + + K + +
dB\dB + + dB + +
+ + + Table 8 + 8 + Table 8 + + 8Binary prefixes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8Binary prefixes
UnitMacroSymbolPower
kibi\kibi + + Ki + + + + + + + + 2 + 10 + + + + +
mebi\mebi + + Mi + + + + + + + + 2 + 20 + + + + +
gibi\gibi + + Gi + + + + + + + + 2 + 30 + + + + +
tebi\tebi + + Ti + + + + + + + + 2 + 40 + + + + +
pebi\pebi + + Pi + + + + + + + + 2 + 50 + + + + +
exbi\exbi + + Ei + + + + + + + + 2 + 60 + + + + +
zebi\zebi + + Zi + + + + + + + + 2 + 70 + + + + +
yobi\yobi + + Yi + + + + + + + + 2 + 80 + + + + +
+ + + 2.1 + 2.1 + §2.1 + + <tag close=" ">2.1</tag>Using units + +

+ + kg + + + + + kg + + + + + + + km + + + + + + + + kg + +

+
+ +

+ + a + + + + a + + + + a + + + + e + + + + e + +

+
+ +

+ + a + + + + a + +

+
+ +

+ + km + +

+
+ +

+ + + + kg + m + + + s + + - + 1 + + + + + + + + + kg + m + + + s + + - + 1 + + + + + + + + + kg + m + + + s + + - + 1 + + + + + + + + + kg + m + + + s + + - + 1 + + + + + + + + + kg + m + + + s + + - + 1 + + + + +

+
+ +

+ + + + + + kg + + m + + + s + + - + 1 + + + + + + + + + kg + + + m + + + + s + + - + 1 + + + + + + + + + kg + + + m + + + + s + + - + 1 + + + + + + + + + kg + m + + + + + s + + - + 1 + + + + + + + + + + kg + m + + + + + s + + - + 1 + + + + + +

+
+ + + 2.1.1 + 2.1.1 + §2.1.1 + + <tag close=" ">2.1.1</tag>forbid-literal-units, inter-unit-product + +

+ + + + + + F + 2 + + lm + cd + + + + + + + + + F + 2 + + lm + cd + + + + + + + + + F + 2 + + lm + cd + + +

+
+
+ + + 2.1.2 + 2.1.2 + §2.1.2 + + <tag close=" ">2.1.2</tag>per-mode, per-symbol, bracket-unit-denominator + +

+ + + + J + + + mol + + - + 1 + + + + + K + + - + 1 + + + + + + + + + m + + + s + + - + 2 + + + + + + + + + J + + + mol + K + + + + + + + + + + J + + + mol + + - + 1 + + + + K + + + + + + + m + + + s + 2 + + + + + + + + A + + + mol + + - + 1 + + + s + + + + + + + A + s + + + mol + + - + 1 + + + + +

+
+ +

+ + + / + J + + + + + + + + ( + + + mol + K + + ) + + + + + + + + / + m + + + s + 2 + + + + + + +  div  + J + + + + + + + + ( + + + mol + K + + ) + + + + + + + + / + J + + + mol + K + + + + + + + + / + + / + J + mol + + K + + + + + + + / + J + + + + + + + + ( + + + mol + K + + ) + + + + +

+ + + + + + J + + + mol + K + + + + + +

+ + + / + J + + + + + + + + ( + + + mol + K + + ) + + + + + + + + + J + + + mol + K + + + +

+ + + + + / + J + + + + + + + + ( + + + mol + K + + ) + + + + + + + + + + + / + J + + + + + + + + ( + + + mol + K + + ) + + + + + + +
+
+ + + 2.1.3 + 2.1.3 + §2.1.3 + + <tag close=" ">2.1.3</tag>sticky-per + +

+ + + + Pa + + + Gy + + - + 1 + + + H + + + + + + + Pa + + + Gy + + - + 1 + + + + + H + + - + 1 + + + + +

+
+
+ + + 2.1.4 + 2.1.4 + §2.1.4 + + <tag close=" ">2.1.4</tag>power-font + +

+ + + + m + + + s + + - + 2 + + + + + + + + + m + + + s + + - + 2 + + + + +

+
+
+ + + 2.1.5 + 2.1.5 + §2.1.5 + + <tag close=" ">2.1.5</tag>literal-superscript-as-power + +

+ + + + m + + + s + 2 + + + + + + + + m + + + s + 2 + + + +

+
+
+ + + 2.1.6 + 2.1.6 + §2.1.6 + + <tag close=" ">2.1.6</tag>qualifier-mode, qualifier-phrase + +

+ + + + + + + + kg + pol + + 2 + + + + + + mol + cat + + + - + 1 + + + + + h + + - + 1 + + + + + + + + + + + + + kg + + + + ( + pol + ) + + + + 2 + + + + + + mol + + + + ( + cat + ) + + + + + - + 1 + + + + + h + + - + 1 + + + + + + + + + + + + + kg + pol + + 2 + + + + + + mol + cat + + + - + 1 + + + + + h + + - + 1 + + + + + + + + + + + + + + ( + + + kg + pol + + ) + + + 2 + + + + + + + ( + + + mol + cat + + ) + + + + - + 1 + + + + + h + + - + 1 + + + + + + + dBi + +

+
+ +

+ + + + + + + + + ( + + + kg + of + pol + + ) + + + 2 + + + + + + + ( + + + mol + of + cat + + ) + + + + - + 1 + + + + + h + + - + 1 + + + + + + + + + + + + + + ( + kgbypol + ) + + + 2 + + + + + + + ( + molbycat + ) + + + + - + 1 + + + + + h + + - + 1 + + + + +

+
+
+ + + 2.1.7 + 2.1.7 + §2.1.7 + + <tag close=" ">2.1.7</tag>prefixes-as-symbols + +

+ + + + ml + + + mol + + - + 1 + + + dA + + + + + + + + + 10 + -4 + + + + l + + + mol + + - + 1 + + + A + + + + + + + + + + 10 + -1 + + + + + + kg + 2 + + s + + + + + + + + + + Mg + 2 + + ds + + + + + + + + + 10 + 5 + + + + + + kg + 2 + + s + + + + + + + + + + + + µ + g + + 2 + + ds + + + + + + + + + 10 + -19 + + + + + + kg + 2 + + s + + + + + + + + + + Mg + + - + 2 + + + ds + + + + + + + + + 10 + -7 + + + + + + kg + + - + 2 + + + s + + + + + + + + + + + + µ + g + + + - + 2 + + + ds + + + + + + + + + 10 + 17 + + + + + + kg + + - + 2 + + + s + + + +

+
+
+ + + 2.1.8 + 2.1.8 + §2.1.8 + + <tag close=" ">2.1.8</tag>parse-units + +
+ + + 2.2 + 2.2 + §2.2 + + <tag close=" ">2.2</tag>Numbers with units + + + 2.2.1 + 2.2.1 + §2.2.1 + + <tag close=" ">2.2.1</tag>allow-number-unit-breaks + + + + 2.2.2 + 2.2.2 + §2.2.2 + + <tag close=" ">2.2.2</tag>number-unit-product + +

+ + + + 2.67 + F + + + + + + + 2.67 + F + + + + + + + 2.67 + F + + + + + + + 2.67 + F + + + + + + + 2.67 + F + + + + + + × + 2.67 + F + + + + + + × + 2.67 + F + + +

+
+
+ + + 2.2.3 + 2.2.3 + §2.2.3 + + <tag close=" ">2.2.3</tag>multi-part-units + +

+ + + + + ± + 12.3 + 0.4 + + kg + + + + + + + + ± + 12.3 + 0.4 + + kg + + + + + + + + ± + 12.3 + 0.4 + + kg + + + + + + + + ± + 12.3 + 0.4 + + kg + + +

+
+ +

+ + + × + + ± + 1.234 + 0.005 + + + + 10 + + + + - + 4 + + + + + + + + + + + × + + ± + 1.234 + 0.005 + + + + 10 + + + + - + 4 + + + + + m + + +

+
+
+ + + 2.2.4 + 2.2.4 + §2.2.4 + + <tag close=" ">2.2.4</tag>product-units + +

+ + + + + × + + × + 2 + 3 + + 4 + + m + + + + + + + + × + + × + 2 + 3 + + 4 + + m + + + + + + + + × + + × + 2 + 3 + + 4 + + m + + + + + + + + × + + × + 2 + 3 + + 4 + + m + + + + + + + + × + + × + 2 + 3 + + 4 + + m + + + + + + + + × + + × + 2 + 3 + + 4 + + m + + +

+
+
+ + + 2.2.5 + 2.2.5 + §2.2.5 + + <tag close=" ">2.2.5</tag>list-units,range-units + +

+ + + + + + + + + + + + + 2 + T + + ,   + + + 4 + T + + ,   + + + 6 + T + +   and   + + + 8 + T + + + + + + + + + + + + + + + + + + ( + 2 + ,   + 4 + ,   + 6 +   and   + 8 + ) + + + T + + + + + + + + + + + + + + + + 2 + T + + ,   + + + 4 + T + + ,   + + + 6 + T + +   and   + + + 8 + T + + + + + + + + + + + + + + + + + + 2 + ,   + 4 + ,   + 6 +   and   + 8 + + + T + + + + + + + + + + + + + + 2 + °C + +   to   + + + 4 + °C + + + + + + + + + + + + + + + + ( + 2 +   to   + 4 + ) + + + °C + + + + + + + + + + + + + + 2 + °C + +   to   + + + 4 + °C + + + + + + + + + + + + + + + + 2 +   to   + 4 + + + °C + + +

+
+
+ + + 2.2.6 + 2.2.6 + §2.2.6 + + <tag close=" ">2.2.6</tag>exponent-to-prefix + +

+ + + + 1700 + g + + + + + + + + × + 1.7 + + + 10 + 3 + + + g + + + + + + + + 1700 + g + + + + + + + + × + 1.7 + + + 10 + 3 + + + g + + + + + + + + + 1700 + g + + + + + + + + × + 1.7 + + + 10 + 3 + + + g + + +

+
+
+
+
+
+ + 3 + 3 + §3 + + <tag close=" ">3</tag>Tabular material + + + Table 9 + 9 + Table 9 + + 9Standard behaviour of the S column type. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 9Standard behaviour of the S column type.
Some Values
+ + 2.3456 + +
+ + 34.2345 + +
+ + + + + - + 6.7835 + + + +
+ + 90.473 + +
+ + 5642.5 + +
+ + + × + 1.2 + + + 10 + 3 + + + +
+ + + + + + + 10 + 4 + + + +
+ + + Table 10 + 10 + Table 10 + + 10Detection of surrounding material in an S column. + + + + + + + + + + + + + + + + + + + +
Table 10Detection of surrounding material in an S column.
Some Values
+ + 12.34 + +
+ + 975.31 + +
+ + 44.268 + + a
+ + + Table 11 + 11 + Table 11 + + 11Controlling complex alignment with the tablenum macro. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 11Controlling complex alignment with the tablenum macro.
HeadingHeading
InfoMore info
InfoMore info
+ + 12.34 + +
+ + 333.5567 + +
+ + 4563.21 + +
HeadingHeading
+ + 88.999 + + aaa
bbb
+ + 33.435 + + ccc
ddd
+ + + Table 12 + 12 + Table 12 + + 12Units in tables. + + + + + + + + + + + + + + + + + + + +
Table 12Units in tables.
Unit
+ + + + + + m + 2 + + + + s + + - + 1 + + + + +
+ + Pa + +
+ + + + + + + + + m + . + + + s + + - + 1 + + + + + +
+ + + Table 13 + 13 + Table 13 + + 13The s column processes everything. + + + + + + + + + + + + + + + + + + + +
Table 13The s column processes everything.
UnitUnit
+ + + + m + 3 + + + + + + + m + 3 + + +
+ + kg + + + + kg + +
+ + + 3.0.1 + 3.0.1 + §3.0.1 + + <tag close=" ">3.0.1</tag>table-parse-only + + + Table 14 + 14 + Table 14 + + 14Parsing without aligning in an S column. + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 14Parsing without aligning in an S column.
Decimal-centredSimple centring
+ + 12.345 + + + + 12.345 + +
+ + 6.78 + + + + 6.78 + +
+ + + + + + + - + 88.8 + + + + + + ( + 9 + ) + + + + + + + + + + + + - + 88.8 + + + + + + ( + 9 + ) + + + + +
+ + + × + 4.5 + + + 10 + 3 + + + + + + + × + 4.5 + + + 10 + 3 + + + +
+
+ + + 3.0.2 + 3.0.2 + §3.0.2 + + <tag close=" ">3.0.2</tag>table-number-alignment + + + Table 15 + 15 + Table 15 + + 15Aligning the S column. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 15Aligning the S column.
Some ValuesSome ValuesSome ValuesSome Values
+ + 2.3456 + + + + 2.3456 + + + + 2.3456 + + + + 2.3456 + +
+ + 34.2345 + + + + 34.2345 + + + + 34.2345 + + + + 34.2345 + +
+ + 56.7835 + + + + 56.7835 + + + + 56.7835 + + + + 56.7835 + +
+ + 90.473 + + + + 90.473 + + + + 90.473 + + + + 90.473 + +
+
+ + + 3.0.3 + 3.0.3 + §3.0.3 + + <tag close=" ">3.0.3</tag>table-figures-decimal, table-figures-exponent,table-figures-integer,table-figures- +uncertainty + + + Table 16 + 16 + Table 16 + + 16Reserving space in S columns. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 16Reserving space in S columns.
ValuesValuesValuesValuesValuesValues
+ + 2.3 + + + + 2.3 + + + + + + 2.3 + + + + ( + 5 + ) + + + + + + + + ± + 2.3 + 0.5 + + + + + 2.3 + + + + + × + 2.3 + + + 10 + 8 + + + +
+ + 34.23 + + + + 34.23 + + + + + + 34.23 + + + + ( + 4 + ) + + + + + + + + ± + 34.23 + 0.04 + + + + + 34.23 + + + + 34.23 + +
+ + 56.78 + + + + 56.78 + + + + + + 56.78 + + + + ( + 3 + ) + + + + + + + + ± + 56.78 + 0.03 + + + + + + + + - + 56.78 + + + + + + + × + 56.78 + + + 10 + 3 + + + +
+ + 3.76 + + + + 3.76 + + + + + + 3.76 + + + + ( + 2 + ) + + + + + + + + ± + 3.76 + 0.02 + + + + + + + + ± + 3.76 + + + + + + + + + + + 10 + 6 + + + +
+
+ + + 3.0.4 + 3.0.4 + §3.0.4 + + <tag close=" ">3.0.4</tag>table-comparator + + + Table 17 + 17 + Table 17 + + 17Reserving space for comparators in S columns. + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 17Reserving space for comparators in S columns.
ValuesValues
+ + 2.3 + + + + + < + + + × + 2.3 + + + 10 + 8 + + + + +
+ + 34.23 + + + + + = + + 34.23 + + +
+ + 56.78 + + + + + + + + × + 56.78 + + + 10 + 3 + + + + +
+ + 3.76 + + + + + + + + + + + + 10 + 6 + + + + +
+
+ + + 3.0.5 + 3.0.5 + §3.0.5 + + <tag close=" ">3.0.5</tag>table-format + + + Table 18 + 18 + Table 18 + + 18Using the table-format option. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 18Using the table-format option.
ValuesValuesValuesValuesValues
+ + 2.3 + + + + 2.3 + + + + + + 2.3 + + + + ( + 5 + ) + + + + + + + 2.3 + + + + + × + 2.3 + + + 10 + 8 + + + +
+ + 34.23 + + + + 34.23 + + + + + + 34.23 + + + + ( + 4 + ) + + + + + + + 34.23 + + + + 34.23 + +
+ + 56.78 + + + + 56.78 + + + + + + 56.78 + + + + ( + 3 + ) + + + + + + + + + + - + 56.78 + + + + + + + × + 56.78 + + + 10 + 3 + + + +
+ + 3.76 + + + + 3.76 + + + + + + 3.76 + + + + ( + 2 + ) + + + + + + + + + + ± + 3.76 + + + + + + + + + + + 10 + 6 + + + +
+
+ + + 3.0.6 + 3.0.6 + §3.0.6 + + <tag close=" ">3.0.6</tag>table-space-text-pre, table-space-text-post + + + Table 19 + 19 + Table 19 + + 19Text before and after numbers. + + + + + + + + + + + + + + + + + + + + +
Table 19Text before and after numbers.
Values
+ + 2.3456 + +
+ + 34.2345 + + a
+ + 56.7835 + +
now  90.473
+
+ + + 3.0.7 + 3.0.7 + §3.0.7 + + <tag close=" ">3.0.7</tag>table-align-comparator, table-align-exponent, table-align-uncertainty + + + Table 20 + 20 + Table 20 + + 20The table-align-exponent option + + + + + + + + + + + + + + + + + + + +
Table 20The table-align-exponent option
HeaderHeader
+ + + × + 1.2 + + + 10 + 3 + + + + + + + × + 1.2 + + + 10 + 3 + + + +
+ + + × + 1.234 + + + 10 + 56 + + + + + + + × + 1.234 + + + 10 + 56 + + + +
+ + + Table 21 + 21 + Table 21 + + 21The table-align-uncertainty option + + + + + + + + + + + + + + + + + + + +
Table 21The table-align-uncertainty option
HeaderHeader
+ + + ± + 1.2 + 0.1 + + + + + + ± + 1.2 + 0.3 + + +
+ + + ± + 1.234 + 0.005 + + + + + + ± + 1.234 + 0.005 + + +
+ + + Table 22 + 22 + Table 22 + + 22The table-align-comparator option + + + + + + + + + + + + + + + + + + + +
Table 22The table-align-comparator option
HeaderHeader
+ + + > + + 1.2 + + + + + + > + + 1.2 + + +
+ + + < + + 12.34 + + + + + + < + + 12.34 + + +
+
+ + + 3.0.8 + 3.0.8 + §3.0.8 + + <tag close=" ">3.0.8</tag>table-omit-exponent + + + Table 23 + 23 + Table 23 + + 23The table-omit-exponent option + + + + + + + + + + + + + + + + + + + + + + + +
Table 23The table-omit-exponent option
HeaderHeader / + + + + + + + 10 + 3 + + + +
+ + + × + 1.2 + + + 10 + 3 + + + + + + + × + 1.2 + + + 10 + 3 + + + +
+ + + × + 3 + + + 10 + 2 + + + + + + + × + 3 + + + 10 + 2 + + + +
+ + + × + 1.0 + + + 10 + 4 + + + + + + + × + 1.0 + + + 10 + 4 + + + +
+
+ + + 3.0.9 + 3.0.9 + §3.0.9 + + <tag close=" ">3.0.9</tag>table-align-text-pre,table-align-text-post + + + + 3.0.10 + 3.0.10 + §3.0.10 + + <tag close=" ">3.0.10</tag>table-auto-round + + + Table 24 + 24 + Table 24 + + 24The table-auto-round option. + + + + + + + + + + + + + + + + + + + +
Table 24The table-auto-round option.
HeaderHeader
+ + 1.2 + + + + 1.2 + +
+ + 1.2345 + + + + 1.2345 + +
+
+ + + 3.0.11 + 3.0.11 + §3.0.11 + + <tag close=" ">3.0.11</tag>parse-numbers + + + Table 25 + 25 + Table 25 + + 25Aligning without parsing. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 25Aligning without parsing.
Some valuesSome valuesSome valuesSome values
+ + 2.35 + + + + 2.35 + + + + 2.35 + + + + 2.35 + +
+ + 34.234 + + + + 34.234 + + + + 34.234 + + + + 34.234 + +
+ + 56.783 + + + + 56.783 + + + + 56.783 + + + + 56.783 + +
+ + + + + + + + + 3 + , + 762 + + + + + + + + + + + + + 3 + , + 762 + + + + + + + + + + + + + 3 + , + 762 + + + + + + 3.762 + +
+ + + + 2 + + + + + + + 2 + + + + + + + 2 + + + + + + + 2 + + +
+
+ + + 3.0.12 + 3.0.12 + §3.0.12 + + <tag close=" ">3.0.12</tag>table-text-alignment + + + Table 26 + 26 + Table 26 + + 26Aligning text in S columns. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 26Aligning text in S columns.
ValuesValuesValues
+ + 992.435 + + + + 992.435 + + + + 992.435 + +
+ + 7734.2344 + + + + 7734.2344 + + + + 7734.2344 + +
+ + 56.7834 + + + + 56.7834 + + + + 56.7834 + +
+ + 3.7462 + + + + 3.7462 + + + + 3.7462 + +
+
+ + + 3.0.13 + 3.0.13 + §3.0.13 + + <tag close=" ">3.0.13</tag>table-unit-alignment + + + Table 27 + 27 + Table 27 + + 27Alignment options in s columns. + + + + + + + + + + + + + + + + + + + + + + +
Table 27Alignment options in s columns.
Right-alignedCentred textLeft-aligned
+ + + + m + + + s + + - + 1 + + + + + + + + + m + + + s + + - + 1 + + + + + + + + + m + + + s + + - + 1 + + + + +
+ + kg + + + + kg + + + + kg + +
+
+ + + 3.0.14 + 3.0.14 + §3.0.14 + + <tag close=" ">3.0.14</tag>table-alignment + + + + 3.0.15 + 3.0.15 + §3.0.15 + + <tag close=" ">3.0.15</tag>table-column-width + + + Table 28 + 28 + Table 28 + + 28Fixed-width columns. + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 28Fixed-width columns.
FlexibleFixedFlexibleFixed
+ + + + m + + + s + + - + 1 + + + + + + + + + m + + + s + + - + 1 + + + + + + + 1.23 + + + + 1.23 + +
+ + + + kg + cd + + + + + + + kg + cd + + + + + 45.6 + + + + 45.6 + +
+
+
+