I have the following table and I am trying to align the 2016 and 2017 values. At the moment the code creates a straight line joining the 2016 and 2017 values. I am trying to get it to look like the "2015" column.
Here is how it looks now: (I just want to copy the 2015 part upto 2018...)
I think it uses \usepackage{booktabs}
and \usepackage{multirow}
and \let\mc\multicolumn
LaTeX code:
\begin{table}
\caption{Linear Support Vector Machine}
\begin{tabular}{r rrrr rrrr rrrr rrrr}
\toprule
& \mc3c{2015}
& \mc3c{2016}
& \mc2c{2017}
& \mc2c{2018} \\
\cmidrule(r){2-5}
\cmidrule{6-9}
\cmidrule(l){10-13}
\cmidrule(l){14-16}
Class & Precision &Recall &F1 &Support & Precision &Recall &F1 &Support & Precision &Recall &F1 &Support & Precision &Recall &F1 &Support\\
\midrule
Growth & & & & & & & & & & & &\\
Neutral & & & & & & & & & & & &\\
Negative & & & & & & & & & & & &\\
& & & & & & & & & & & &\\
Total Acc & & & & & & & & & & & &\\
\bottomrule
\end{tabular}
\end{table}
\mc
, layout of your document etc.cmidrule
try the following:\cmidrule(l){2-5}\cmidrule(l){6-9}\cmidrule(l){10-13}\cmidrule(l){14-17}