\documentclass{article}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{threeparttable}
\begin{document}
\begin{table}
\begin{threeparttable}[b]
\caption{Title}
\label{tab1}
\resizebox{\textwidth}{!}{%
\begin{tabular}{rlrr}
\hline
Group & XXXXXXXXX XXXXXXXXX & XXXXXXXX \tnote{1} & XXXXXXX XXXXXXXXX XXXXXXXX (XXX) \\
\hline
\multirow{3}{*}{1} & XX XXXXXXXXX & \\ & (0 years) & 9 years & -XXXXXX (XX: -0.XXX, -0.XXX, 0.XXX) \\
\hline
\multirow{3}{*}{2} & XX XX XXX XXXXXXXXX XXXXXXX XXXX & \\ & (1-6 years) & 1-6 years & -0.XXX (XX: -0.XXX, -0.XXX, 0.XXX) \\
\hline
\multirow{3}{*}{3} & XXXXX XXXXXXXX XXXXXXXXX & \\ & (7-$<$9 years) & 7-$<$9 years & -0.XXX (XX: -0.XXX, -0.XXX, 0.XXX) \\
\hline
\multirow{3}{*}{4} & XXXXXXXX XXXXX XXXXXXXXX XXXXXXXX & \\ & (9 years, XXXXXX's XXXXXXXXXX XXX) & 9 years & -0.XXX (XX: -0.XXX, -0.XXX, 0.XXX) \\
\hline
\multirow{3}{*}{5} & XX XX XXX XXXXXXXXX XXXXXXX XXXX & \\ & (10-12 years) & 10-12 years & -0.XXX (XX: -0.XXX, -0.XXX, 0.XXX) \\
\hline
\multirow{3}{*}{6} & XXXXXXX XXX XXXXXX & \\ & ($>$ 12 years) & $>$12 years & -0.XXX (XX: -0.XXX, -0.XXX, 0.XXX) \\
\hline
\end{tabular}%
}
\begin{tablenotes}
\item[1] The note
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}
- Question: I need to resize a table (edit: I added the original size now) to fit the page. It works when I don't use threeparttable, but I need this because I require a footnote directly under the table. It also works when I don't use resizebox. Anyone any idea how to get a table that is both adjusted to page size, meanwhile has a footnote directly under the table?
\resizeboxis last desperate effort to fit table in text width. try to avoid it with some other measures! welcome to tex.se! – Zarko Jul 31 '18 at 16:05