calibcant/discussion.tex: Use siunitx to align columns on decimals
authorW. Trevor King <wking@tremily.us>
Thu, 16 May 2013 05:57:37 +0000 (01:57 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 16 May 2013 05:57:37 +0000 (01:57 -0400)
src/calibcant/discussion.tex
src/packages.tex

index 522e9094ace518e610cd4bead57d3d7bea949674..954c89577bb29b645a15c60b737946249e528a26 100644 (file)
@@ -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 \\
index ad7842c253dd079b9c4b8826fffc55b8f77ecb14..d51901eace37ac70ea659d624535d6df17e9ad29 100644 (file)
@@ -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}