Can someone help me understand why are the items in the first row off-centered vertically after I use \makecell in one of the lines and use a linebreak inside of it? Is this behavior default?
\begin{table}[htpb] \caption{One-way ANOVA test between all three groups.} \begin{tabular}{m{2.9cm}K{1.3cm}K{1.3cm}K{1.3cm}K{1.3cm}K{1.3cm}K{1.3cm}} \Xhline{3\arrayrulewidth} \makecell{Source of \\ variation} & \makecell{SS} & df & MS & F & \makecell{P \\ value} & F-crit \\ \Xhline{2\arrayrulewidth} \makecell[l]{Between groups} & 6.012 & 2 & 3.006 & 0.779 & 0.474 & 3.555 \\ \makecell[l]{Within groups} & \makecell{69.440} & \makecell{18} & \makecell{3.858} & & & \\ \\ \makecell[l]{Total} & \makecell{75.452} & \makecell{20} & & & & \\ \Xhline{3\arrayrulewidth} \end{tabular} \end{table} K: \newcolumntype{K}1{>{\centering\arraybackslash}m{#1}} (this problem happened before defining this shorthand too)
Edit1: I have read the documentation for the makecell package and, for instance, using \makecell*{} actually improves the vertical alignment a bit, but I can't help but think that this is not the optimal solution.
Edit2: I do realize that the use of Xhline pushes the thickness down towards the row below and makes it feel more out of place, but even not using anything or using \toprule, they still look slightly off-centered.



mtype columns here? My guess would be that this is caused by the combination of\makecellwithmcolumns.