I am writing a conference manuscript using the IEEEtran document class. I am having problem with my table having 9 columns, so didn't fit well into the template's column. Log output shows:
Overfull \hbox (45.8143pt too wide) in paragraph at lines 85--101
I give a MWE below to reproduce the issue:
%%%% added packages
\usepackage{lipsum}
\usepackage{booktabs,multirow,array}
\begin{document}
\lipsum[1]
\begin{table}[htbp]f
\centering
\caption{{Summary of results}
\begin{tabular}{@{} ll*{7}{r} @{}}
\toprule
\multicolumn{2}{l@{}}{Before trip filtering} & \multicolumn{7}{c@{}}{Predicted class} \\
\cmidrule(l){3-9}
\multicolumn{2}{l@{}}{} & Foot & Bike & Bus & Car & Metro & Support & Recall \\
\midrule
& Foot & 8534 & 99 & 904 & 4939 & 125 & 14601 & 0.58 \\
& Bike & 339 & 483 & 62 & 514 & 0 & 1398 & 0.35 \\
Actual class & Bus & 1558 & 25 & 1117 & 5616 & 1 & 8317 & 0.20 \\
& Car & 1447 & 117 & 629 & 18064 & 44 & 20301 & 0.72\\
& Metro & 350 & 7 & 12 & 513 & 22 & 904 & 0.04 \\
\cmidrule(l){2-9}
& Precision & 0.70 & 0.66 & 0.41 & 0.61 & 0.11 & & \\
\bottomrule
\end{tabular}
\label{tab1}
\end{table}
\lipsum[1]
\end{document}
I am looking for a way to resize this table, to fit in well in one column.
\begin{table*}
(two-column table) or\tabcolsep=1pt
(reduce column separation) or\scalebox
\tabcolsep=1pt
is what I really need in this case.