I have the following MWE, but I have a problem with the alignment of the last column (under the multicolumn)
\documentclass{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\usepackage{calc}
\usepackage{array}
\usepackage{color}
%
\begin{document}
%
% table 1
% evenly alined
\begin{table}[htbp]
\centering
\begin{tabular}{ccccc}
\toprule
& & \multicolumn{3}{c}{Reduced component sizes}\\
%\cmidrule(r){3-5}
\cmidrule{3-5}
% \multicolumn{2}{c}{Internal mode count, $m$} &10&20&30&10&20&30\\
%\midrule
Component & Full size & $m=4$ & $m=8$ & $m=12$\\
\midrule
1 & 257 & 24 & 28 & 32 \\
2 & 420 & 47 & 51 & 55 \\
3 & 177 & 24 & 28 & 32 \\
\bottomrule
\end{tabular}
\caption{Information on component level degrees of freedom}
\label{tab:information-overview-academic-model}
\end{table}
%
% table 2
% not evenly alined
\begin{table}[htbp]
\centering
\begin{tabular}{ccccc}
\toprule
& & \multicolumn{3}{c}{Reduced component matrix sizes \textcolor{red}{test text added}}\\
%\cmidrule(r){3-5}
\cmidrule{3-5}
% \multicolumn{2}{c}{Internal mode count, $m$} &10&20&30&10&20&30\\
%\midrule
Component & Full size & $m=4$ & $m=8$ & $m=12$\\
\midrule
1 & 257 & 24 & 28 & 32 \\
2 & 420 & 47 & 51 & 55 \\
3 & 177 & 24 & 28 & 32 \\
\bottomrule
\end{tabular}
\caption{Information on component level degrees of freedom}
\label{tab:information-overview-academic-model}
\end{table}
%
\end{document}
The result I am getting is that the columns under the multicolumns are not evenly separated. And when I increase the width of the text argument to multicolumn command it becomes even worse, first example seems to be fine but with the second there is definitely a problem. Here is the output of the above code:
Any ideas are appreciated to solve this issue. Many thanks in advance.



booktabsand\cmidruleare not involved. This is a known feature of TeX's alignments: when columns are spanned, the excess always go to the last spanned column. Overlong header text should be avoided. – egreg Apr 21 '19 at 09:39