Last active
May 14, 2017 13:08
-
-
Save wspr/63c359590927426009a18838416f9516 to your computer and use it in GitHub Desktop.
Leancrew example of siunitx tables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[a4paper]{article} | |
\usepackage{booktabs,siunitx} | |
\begin{document} | |
\newcommand\minibox[1]{% | |
\makebox[0pt][c]{\begin{tabular}[b]{c}#1\end{tabular}}% | |
} | |
\begin{tabular}{ | |
l | |
S[ table-column-width = 1.5cm, table-format = 3.0 ] | |
S[ table-column-width = 1.3cm, table-format = 2.0 ] | |
S[ table-column-width = 1.3cm, table-format = 2.0 ] | |
S[ table-column-width = 1.3cm, table-format = 2.0 ] | |
} | |
\toprule | |
&& \multicolumn{3}{c}{Defect Percentages} \\ | |
\cmidrule{3-5} | |
{Defect} & {Count} & | |
{\minibox{Point\\Estimate}} & | |
{\minibox{Lower\\bound}} & | |
{\minibox{Upper\\bound}} \\ | |
\midrule | |
Criterion 1 & 127 & 25 & 22 & 29 \\ | |
Criterion 2 & 38 & 8 & 5 & 10 \\ | |
Criterion 3 & 394 & 79 & 75 & 82 \\ | |
Criterion 4 & 212 & 42 & 38 & 47 \\ | |
Criterion 5 & 108 & 22 & 18 & 25 \\ | |
\midrule[0pt] | |
Any criterion & 433 & 87 & 83 & 89 \\ | |
\bottomrule | |
\end{tabular} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
But getting the percent signs in there is going to be the kicker, I think.