I'm sorry for the ambiguity of the question's title.
I'm working with a 2-columns latex template. Here's my MWE:
\begin{table}
\centering
\caption{My table}
\resizebox{\columnwidth}{!}{%
\begin{tabular}{ccc|cc|cc}
\toprule
\multirow{2}{*}{\rotatebox{90}{Rank}} & \multirow{2}{*}{\rotatebox{90}{FLOPs ↓\%}} & \multirow{2}{*}{\rotatebox{90}{Params. ↓\%}} & \multicolumn{2}{c|}{NMSE} & \multicolumn{2}{c}{Accuracy (\%)} \\
\cmidrule{4-7}
& & & Before & After & Before & After \\
\midrule
1 & 88.03 & 87.06 & 0.xxxx & 0.1613 & 10 & 93.84 \\
2 & 76.44 & 75.98 & 0.xxxx & 0.1508 & 10 & 94.11 \\
3 & 64.85 & 64.91 & 0.xxxx & 0.1420 & 68.1 & 94.18 \\
4 & 53.27 & 53.84 & 0.xxxx & 0.1383 & 89.96 & 94.07 \\
5 & 41.69 & 42.76 & 0.xxxx & 0.1348 & 92.5 & 94.22 \\
6 & 30.10 & 31.69 & 0.xxxx & 0.1541 & 93.38 & 94.15 \\
7 & 18.51 & 20.61 & 0.xxxx & 0.1333 & 93.89 & 94.11 \\
8 & 6.93 & 9.54 & 0.xxxx & 0.0011 & 94.03 & 94.03 \\
\bottomrule
\end{tabular}
}
\end{table}
This code yields the table:
I have 2 problems:
- The FLOPs and Params columns overflowed the cell. How can I fix this? My main idea is to rotate the cell so that the resized table can be bigger.
- I want the vertical dividing lines between 2 columns Params and NMES, and NMES and Accuracy to cross over the first line.
Thank you very much!


booktabspackage. – Jasper Habicht Jun 09 '23 at 10:46\documentclass[journal]{IEEEtran}. – Tien Jun 09 '23 at 11:49