From: W. Trevor King Date: Thu, 16 May 2013 05:57:37 +0000 (-0400) Subject: calibcant/discussion.tex: Use siunitx to align columns on decimals X-Git-Tag: v1.0~181 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=de3e16acd702f4254436a65d323d17170fd837d4;p=thesis.git calibcant/discussion.tex: Use siunitx to align columns on decimals --- diff --git a/src/calibcant/discussion.tex b/src/calibcant/discussion.tex index 522e909..954c895 100644 --- a/src/calibcant/discussion.tex +++ b/src/calibcant/discussion.tex @@ -121,13 +121,14 @@ the calculated $\kappa$. \begin{table} \begin{center} - \begin{tabular}{c c r l r l} + \begin{tabular}{c c S[table-format=3.3] S[table-format=1.3] + S[table-format=3.3] S[table-format=1.3]} \toprule \multicolumn{2}{c}{Timestamp:} & \multicolumn{2}{c}{2013-03-03T16-37-12} & \multicolumn{2}{c}{2013-03-04T12-21-54} \\ \midrule - Quantity & Units & Mean & Std.~Dev. & Mean & Std.~Dev. \\ + Quantity & Units & {Mean} & {Std.~Dev.} & {Mean} & {Std.~Dev.} \\ \midrule $\sigma_p$ & \bareU{V/$\mu$m} & 46.22 & 0.76 & 41.30 & 0.21 \\ $T$ & \bareU{K} & 296.302 & 0.021 & 294.272 & 0.022 \\ diff --git a/src/packages.tex b/src/packages.tex index ad7842c..d51901e 100644 --- a/src/packages.tex +++ b/src/packages.tex @@ -69,6 +69,8 @@ \usepackage{booktabs} % syntax highlighting for source code \usepackage{minted} +% for table alignment on decimals (and maybe for units later) +\usepackage{siunitx} % for \NewDocumentCommand \usepackage{xparse}