After looking at multiple tex.stackexchange questions, I'm still having trouble getting the alignment of multiple columns right.
Here's my code
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{@{}lcccc@{}}
\toprule
& \multicolumn{2}{@{}c}{Ignoring Unlabeled Detections}
& \multicolumn{2}{c@{}}{Approving Unlabeled Detections}\\
\cmidrule(r){2-3}
\cmidrule(r){4-5}
& Recall & Precision & Recall & Precision \\
\cmidrule(r){2-3}
\cmidrule(r){4-5}
% \midrule
count & 513 & 446 & 529 & 484 \\
mean & 0.428 & 0.787 & 0.507 & 0.841 \\
std & 0.343 & 0.365 & 0.337 & 0.310 \\
min & 0.000 & 0.000 & 0.000 & 0.000 \\
\ensuremath{Q_1}& 0.000 & 0.667 & 0.286 & 0.800 \\
\ensuremath{Q_2}& 0.500 & 1.000 & 0.500 & 1.000 \\
\ensuremath{Q_3}& 0.667 & 1.000 & 0.750 & 1.000 \\
max & 1.000 & 1.000 & 1.000 & 1.000 \\
\bottomrule
\end{tabular}
\end{document}
I would naturally like the recall and precision columns to be equally spaced beneath each respective title.



IgnoringandApproving, much less clutter for the reader to deal with. And I'd remove the@{}from those headers, looks strange. – daleif Apr 01 '19 at 08:15