I have a long and wide table (9 columns, 67 rows). For the moment I have tried to use the lscape package to have it presented horizontally. The problem is that it's still too long and too wide, so that many rows and the last column don't fit into the page.
I am familiar with the longtable package and have tried to use it, but it still doesn't fit (neither horizontally nor vertically).
Does anybody have any ideas why this may be happening? Is resizing the font the only thing I can do?
I found some helpful posts but I am still wondering what's best in my case.
I report a fraction of the code in case it's needed.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{dcolumn}
\usepackage{siunitx}
\usepackage{lscape}
\usepackage{longtable}
\begin{table}[H]
\sisetup{
input-digits = ()-01234567890,
input-open-uncertainty = ,
input-close-uncertainty = ,
table-align-text-post = false,
detect-all
}
\centering
\begin{longtable}{lccccccccc}
\label{tab:panel_main} \ \hline
\toprule
& \multicolumn{1}{l}{Model 1} & \multicolumn{1}{l}{Model 2} & \multicolumn{1}{l}{Model 3} & \multicolumn{1}{l}{Model 4} & \multicolumn{1}{l}{Model 5} & \multicolumn{1}{l}{Model 6} & \multicolumn{1}{l}{Model 7} & \multicolumn{1}{l}{Model 8} & \multicolumn{1}{l}{Model 9} \
\midrule
year 1958 & 1.314* & - & \multicolumn{1}{l}{1.363*} & - & \multicolumn{1}{l}{1.558**} & \multicolumn{1}{r}{1.345} & - & - & - \\
year 1959 & 0.209 & - & \multicolumn{1}{r}{0.0816} & - & \multicolumn{1}{r}{-0.625} & \multicolumn{1}{r}{0.148} & - & - & - \
\bottomrule
\multicolumn{2}{c}{ Robust standard errors in parentheses} \
\multicolumn{2}{c}{ *** p$<$0.01, ** p$<$0.05, * p$<$0.1} \
\end{longtable}
\end{table}
\end{document}
Thanks in advance!


longtableenvironment inside of atabledoes not make sense as it prevents page breaking. Remove thetableenvironment. Also, your example code is not compilable, as at least thebooktabspackage is missing. – leandriis Jul 07 '21 at 17:48longtablepackage. You could combine both. – leandriis Jul 07 '21 at 17:49