TeX - LaTeX Asked on March 21, 2021
I have a wide table (more than in the MWE if I start putting numbers in there) and use resizebox to fit it. However, in the threeparttable environment it does not let me put the footnotes inside the rescaled box, which is why they exceed the width of the table. Any suggestions how to approach this?
documentclass[12pt]{article}
usepackage{authblk}
renewcommandAffilfont{tiny}
usepackage[a4paper,total={6in, 8in}]{geometry}
usepackage[parfill]{parskip}
usepackage{hyphenat}
usepackage{setspace}
usepackage{titlesec}
usepackage[hang,flushmargin]{footmisc}
usepackage{pdflscape, longtable}
usepackage[strict]{changepage}
usepackage{array}
usepackage{enumitem}
usepackage{booktabs}
usepackage[flushleft]{threeparttable}
usepackage{adjustbox}
usepackage{xltabular}
usepackage{enumitem}
usepackage{graphicx}
usepackage{caption}
usepackage{hyperref}
usepackage{tabularx}
usepackage{multirow}
begin{document}
begin{center}
begin{table}[ht]
setlength{tabcolsep}{12pt}
defsym#1{ifmmode^{#1}else(^{#1})fi}
centering
begin{threeparttable}
resizebox{textwidth}{!}{%
begin{tabular}{l ccc ccc ccc ccc}
hlinehline
addlinespace[1ex]
& multicolumn{3}{c}{textbf{OLS}} & multicolumn{3}{c}{textbf{PPML}} & multicolumn{3}{c}{textbf{Tobit}} & multicolumn{3}{c}{textbf{LSTM}}
addlinespace[1ex]
cmidrule(r){2-4} cmidrule(l){5-7} cmidrule(l){8-10} cmidrule(l){11-13}
addlinespace[1ex]
& (1) & (2) & (3) & (1) & (2) & (3) & (1) & (2) & (3) & (1) & (2) & (3)
addlinespace[1ex]
hline
addlinespace[1ex]
textbf{In-sample} & & & & & & & & & & & &
addlinespace[0.5ex]
hspace{2mm} (Pseudo-)$R^{2}$ & & & & & & & & & & &
addlinespace[0.5ex]
hspace{2mm} CPC & & & & & & & & & & & &
addlinespace[0.5ex]
hspace{2mm} MAPE & & & & & & & & & & & &
addlinespace[0.5ex]
hspace{2mm} RMSE & & & & & & & & & & &
addlinespace[1ex]
hlinehline
end{tabular}
}
begin{tablenotes}
setlengthlabelsep{0pt}
item{scriptsize textit{Blablaaaaaaaaaaaaaaasd aaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaa bla bala aasfsdiovo srbOBSFdofb just a long text that is longer than the table}.
end{tablenotes}
end{threeparttable}
caption{Some Table}label{tab:PredPower}
end{table}
end{center}
end{document}
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP