From de3e16acd702f4254436a65d323d17170fd837d4 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 16 May 2013 01:57:37 -0400 Subject: [PATCH] calibcant/discussion.tex: Use siunitx to align columns on decimals --- src/calibcant/discussion.tex | 5 +++-- src/packages.tex | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) 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} -- 2.26.2