Good morning, i tried to figure out the problem by searching on my own. I indeed found some postings, but unfortunately I was not able to solve my problem. I have a table that has too large width to fit the page. However, I have an economics paper that I work on that has the exact same figure in it that perfectly fits the page.
Here is my code:
\documentclass [a4paper,12 pt]{article}
\usepackage{tabu}
\usepackage{longtable}
\begin{document}
{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{longtabu}to \linewidth {l*{8}{X}}
\caption{Relation between Average Annual Wages in USD and selected Indicators}\\
\hline\hline\endfirsthead\hline\endhead\hline\endfoot\endlastfoot
&&&\multicolumn{1}{c}{TFP\_OLSFE}&&&\multicolumn{1}{c}{TFP\_OP}\\
&\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}&\multicolumn{1}{c}{(3)}&\multicolumn{1}{c}{(4)}&\multicolumn{1}{c}{(5)}&\multicolumn{1}{c}{(6)}&\multicolumn{1}{c}{(7)}&\multicolumn{1}{c}{(8)}\\
\hline
comp\_herfsubsidy& 0.0382\sym{***}& & & 0.0309\sym{***}& 0.0430\sym{***}& & & 0.0343\sym{***}\\
& (0.00911) & & & (0.00726) & (0.0103) & & & (0.00827) \\
[1em]
cor\_subsidy\_lerner& 0.00433 & & & 0.000921 & 0.00307 & & & 0.000547 \\
& (0.00353) & & & (0.00365) & (0.00354) & & & (0.00373) \\
[1em]
cor\_tariff\_lerner& -0.0157 & -0.00164 & -0.00769 & -0.00951 & -0.00643 & 0.00341 & -0.00351 & 0.00185 \\
& (0.0129) & (0.00900) & (0.00972) & (0.0130) & (0.0136) & (0.00983) & (0.0107) & (0.0137) \\
[1em]
lerner & 13.38\sym{*} & 10.75\sym{**} & 11.09\sym{**} & 12.69\sym{*} & 16.66\sym{*} & 10.79\sym{*} & 11.36\sym{*} & 15.58\sym{*} \\
& (5.570) & (3.677) & (3.692) & (5.403) & (7.416) & (4.242) & (4.297) & (7.268) \\
[1em]
lernersquare& -7.645\sym{*} & -6.139\sym{**} & -6.338\sym{**} & -7.290\sym{*} & -9.061\sym{*} & -5.945\sym{*} & -6.264\sym{*} & -8.494\sym{*} \\
& (3.056) & (2.029) & (2.040) & (2.967) & (4.064) & (2.379) & (2.412) & (3.987) \\
\hline
\(N\) & 1088635 & 1203999 & 1278474 & 1007014 & 1088635 & 1203999 & 1278474 & 1007014 \\
adj. \(R^{2}\)& 0.214 & 0.218 & 0.214 & 0.220 & 0.183 & 0.189 & 0.185 & 0.189 \\
\hline\hline
\multicolumn{9}{l}{\footnotesize Standard errors in parentheses}\\
\multicolumn{9}{l}{\footnotesize \sym{*} \(p<0.05\), \sym{**} \(p<0.01\), \sym{***} \(p<0.001\)}\\
\end{longtabu}
}
\end{document}
The longtable looks a bit weird to me - especially the code in the beginning - but this is the case because i use STATA to compute the values and generate the longtable. However, I have changed the line with \begin{longtabu} since i have tried the solution from here: Set longtable to fit the page-width Now the columns just overlap and I dont know what to do.
Thank you for your help!



