[Tex/LaTex] Threeparttable centering

horizontal alignmenttablesthreeparttable

I know that someone already asked pretty much the same but I cannot solve the problem of centering my table after using threepartatble command for the notes.

Here it is:

\begin{table}[h!tb] 
\centering
\begin{threeparttable}[b]
\caption{Table1}
\label{one}
\begin{tabular}{l r r r} 
\toprule
\hline
\multirow{2}{*}{country} & region & county & village \\
North Africa & 13.0 & 11.0 & 7.0 \\
Central and South Africa & 2.0 & 5.0 & 7.3 \\
Middle East & 5.3 & 3.0 & 3.0 \\
Asia & 19.0 & 24.0 & 16.7 \\ 
Southern Europe & 10.6 & 4.0 & 3.0 \\
ACP countries & 43.6 & 43.0 & 46.0 \\
Unallocated & 6.5 & 10.0 & 17.0 \\
\bottomrule
\end{tabular}
\begin{tablenotes}\footnotesize
\item Source: book
\end{tablenotes}
\end{threeparttable}
\end{table}

Best Answer

Please compare this two tables if they are different in their alignment. If that is the case, please check if your packages are all up to date. If they are, we have to compare versions. For this, add \listfiles to the preamble and get the package versions from the main.log file.

\documentclass{scrartcl}
\usepackage{booktabs}
\usepackage{threeparttable}
\usepackage{blindtext}

\listfiles % prints the versions of all used packages to the .log file

\begin{document}
\blindtext
\begin{table}[h!tb] 
\centering
\begin{threeparttable}[b]
\caption{Table1}
\label{tab:one}
\begin{tabular}{l r r r} 
\toprule
 country & region & county & village \\
\midrule
North Africa\tnote{1} & 13.0 & 11.0 & 7.0 \\
Central and South Africa & 2.0 & 5.0 & 7.3 \\
Middle East & 5.3 & 3.0 & 3.0 \\
\bottomrule
\end{tabular}
\begin{tablenotes}\footnotesize
\item [1] Source: book
\end{tablenotes}
\end{threeparttable}
\end{table}
%
\begin{table}[h!tb] 
\centering
\caption{Table2}
\label{tab:two}
\begin{tabular}{l r r r} 
\toprule
 country & region & county & village \\
\midrule
North Africa & 13.0 & 11.0 & 7.0 \\
Central and South Africa & 2.0 & 5.0 & 7.3 \\
Middle East & 5.3 & 3.0 & 3.0 \\
\bottomrule
\end{tabular}
\end{table}
\blindtext
\end{document}
Related Question