title: Large table in Latex gets cut off when outputting to PDF?
body: <p>I haven't worked with much Latex syntax so I'm not quite sure what stylization changes I need to make here.</p>
  <p>I have a large piece of Latex as such:</p>
  <pre><code>\documentclass{article}
  \usepackage{longtable}
  \begin{document}
  \begin{center}
  \begin{longtable}{|l|l|l|} \centering
  
  \begin{tabular}{@{\extracolsep{5pt}}lcccccccc}
  \\[-1.8ex]\hline
  \hline \\[-1.8ex]
   &amp; \multicolumn{8}{c}{\textit{Dependent variable:}} \\
  \cline{2-9}
  \\[-1.8ex] &amp; \multicolumn{2}{c}{Female} &amp; \multicolumn{4}{c}{NonWhite} &amp; \multicolumn{2}{c}{Black.or.African.American} \\
  \\[-1.8ex] &amp; (1) &amp; (2) &amp; (3) &amp; (4) &amp; (5) &amp; (6) &amp; (7) &amp; (8)\\
  \hline \\[-1.8ex]
   factor(ELECTORAL\_TERM)2018 &amp; 0.104$^{***}$ &amp; 0.104$^{***}$ &amp; $-$0.104$^{***}$ &amp; $-$0.104$^{***}$ &amp; $-$0.103$^{***}$ &amp; $-$0.103$^{***}$ &amp; $-$0.047$^{***}$ &amp; $-$0.047$^{***}$ \\
    &amp; (0.010) &amp; (0.010) &amp; (0.009) &amp; (0.009) &amp; (0.009) &amp; (0.009) &amp; (0.006) &amp; (0.006) \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
   factor(ELECTORAL\_TERM)2019 &amp; 0.129$^{***}$ &amp; 0.128$^{***}$ &amp; 0.088$^{***}$ &amp; 0.088$^{***}$ &amp; 0.092$^{***}$ &amp; 0.092$^{***}$ &amp; 0.063$^{***}$ &amp; 0.063$^{***}$ \\
    &amp; (0.011) &amp; (0.011) &amp; (0.009) &amp; (0.010) &amp; (0.009) &amp; (0.009) &amp; (0.007) &amp; (0.007) \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
   WOMENS\_RIGHTS\_PROTEST &amp; $-$0.016 &amp; $-$0.025 &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  \\
    &amp; (0.018) &amp; (0.019) &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
   WOMENS\_RIGHTS\_COUNTERPROTEST &amp;  &amp; 0.052 &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  \\
    &amp;  &amp; (0.043) &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
   RACIAL\_PROTEST &amp;  &amp;  &amp; 0.032$^{***}$ &amp; 0.032$^{***}$ &amp;  &amp;  &amp; 0.020$^{***}$ &amp; 0.021$^{***}$ \\
    &amp;  &amp;  &amp; (0.010) &amp; (0.011) &amp;  &amp;  &amp; (0.007) &amp; (0.008) \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
   RACIAL\_COUNTERPROTEST &amp;  &amp;  &amp;  &amp; 0.001 &amp;  &amp;  &amp;  &amp; $-$0.007 \\
    &amp;  &amp;  &amp;  &amp; (0.039) &amp;  &amp;  &amp;  &amp; (0.028) \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
   OTHER\_IDENTITY\_PROTEST &amp;  &amp;  &amp;  &amp;  &amp; 0.057 &amp; 0.068 &amp;  &amp;  \\
    &amp;  &amp;  &amp;  &amp;  &amp; (0.077) &amp; (0.078) &amp;  &amp;  \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
   OTHER\_IDENTITY\_COUNTERPROTEST &amp;  &amp;  &amp;  &amp;  &amp;  &amp; $-$0.116 &amp;  &amp;  \\
    &amp;  &amp;  &amp;  &amp;  &amp;  &amp; (0.156) &amp;  &amp;  \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
   Republican.Party &amp; 0.061$^{***}$ &amp; 0.061$^{***}$ &amp; 0.068$^{***}$ &amp; 0.068$^{***}$ &amp; 0.068$^{***}$ &amp; 0.068$^{***}$ &amp; 0.027$^{***}$ &amp; 0.027$^{***}$ \\
    &amp; (0.014) &amp; (0.014) &amp; (0.012) &amp; (0.012) &amp; (0.012) &amp; (0.012) &amp; (0.009) &amp; (0.009) \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
   Democratic.Party &amp; 0.386$^{***}$ &amp; 0.386$^{***}$ &amp; 0.162$^{***}$ &amp; 0.162$^{***}$ &amp; 0.162$^{***}$ &amp; 0.162$^{***}$ &amp; 0.083$^{***}$ &amp; 0.083$^{***}$ \\
    &amp; (0.016) &amp; (0.016) &amp; (0.014) &amp; (0.014) &amp; (0.014) &amp; (0.014) &amp; (0.010) &amp; (0.010) \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
   CIT\_EST\_White &amp; $-$0.002 &amp; $-$0.002 &amp; 0.001 &amp; 0.001 &amp; 0.001 &amp; 0.001 &amp; 0.0002 &amp; 0.0002 \\
    &amp; (0.002) &amp; (0.002) &amp; (0.001) &amp; (0.001) &amp; (0.001) &amp; (0.001) &amp; (0.001) &amp; (0.001) \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
   CIT\_EST\_African\_American &amp; 0.007$^{**}$ &amp; 0.007$^{**}$ &amp; 0.001 &amp; 0.001 &amp; 0.001 &amp; 0.001 &amp; 0.0005 &amp; 0.0005 \\
    &amp; (0.004) &amp; (0.004) &amp; (0.003) &amp; (0.003) &amp; (0.003) &amp; (0.003) &amp; (0.002) &amp; (0.002) \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
   CIT\_EST\_NonWhite &amp; 0.014 &amp; 0.014 &amp; $-$0.004 &amp; $-$0.004 &amp; $-$0.004 &amp; $-$0.004 &amp; $-$0.002 &amp; $-$0.002 \\
    &amp; (0.011) &amp; (0.011) &amp; (0.009) &amp; (0.009) &amp; (0.009) &amp; (0.009) &amp; (0.007) &amp; (0.007) \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
   CVAP\_EST\_White &amp; 0.007 &amp; 0.007 &amp; $-$0.002 &amp; $-$0.002 &amp; $-$0.002 &amp; $-$0.002 &amp; $-$0.001 &amp; $-$0.001 \\
    &amp; (0.004) &amp; (0.004) &amp; (0.004) &amp; (0.004) &amp; (0.004) &amp; (0.004) &amp; (0.003) &amp; (0.003) \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
   CVAP\_EST\_African\_American &amp; $-$0.007 &amp; $-$0.007 &amp; $-$0.002 &amp; $-$0.002 &amp; $-$0.002 &amp; $-$0.002 &amp; $-$0.001 &amp; $-$0.001 \\
    &amp; (0.006) &amp; (0.006) &amp; (0.005) &amp; (0.005) &amp; (0.005) &amp; (0.005) &amp; (0.004) &amp; (0.004) \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
   CVAP\_EST\_NonWhite &amp; $-$0.020 &amp; $-$0.020 &amp; 0.006 &amp; 0.006 &amp; 0.006 &amp; 0.006 &amp; 0.002 &amp; 0.002 \\
    &amp; (0.016) &amp; (0.016) &amp; (0.014) &amp; (0.014) &amp; (0.014) &amp; (0.014) &amp; (0.010) &amp; (0.010) \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
   Constant &amp; $-$23.099 &amp; $-$23.099 &amp; 5.245 &amp; 5.245 &amp; 5.244 &amp; 5.241 &amp; 1.899 &amp; 1.898 \\
    &amp; (14.561) &amp; (14.561) &amp; (12.598) &amp; (12.599) &amp; (12.608) &amp; (12.609) &amp; (8.972) &amp; (8.972) \\
    &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\
  \hline \\[-1.8ex]
  Observations &amp; 9,594 &amp; 9,594 &amp; 9,594 &amp; 9,594 &amp; 9,594 &amp; 9,594 &amp; 9,594 &amp; 9,594 \\
  R$^{2}$ &amp; 0.778 &amp; 0.778 &amp; 0.660 &amp; 0.660 &amp; 0.659 &amp; 0.659 &amp; 0.664 &amp; 0.664 \\
  Adjusted R$^{2}$ &amp; 0.654 &amp; 0.654 &amp; 0.468 &amp; 0.468 &amp; 0.468 &amp; 0.468 &amp; 0.476 &amp; 0.476 \\
  Residual Std. Error &amp; 0.403 (df = 6145) &amp; 0.403 (df = 6144) &amp; 0.348 (df = 6145) &amp; 0.348 (df = 6144) &amp; 0.349 (df = 6145) &amp; 0.349 (df = 6144) &amp; 0.248 (df = 6145) &amp; 0.248 (df = 6144) \\
  F Statistic &amp; 6.250$^{***}$ (df = 3448; 6145) &amp; 6.249$^{***}$ (df = 3449; 6144) &amp; 3.452$^{***}$ (df = 3448; 6145) &amp; 3.450$^{***}$ (df = 3449; 6144) &amp; 3.443$^{***}$ (df = 3448; 6145) &amp; 3.442$^{***}$ (df = 3449; 6144) &amp; 3.524$^{***}$ (df = 3448; 6145) &amp; 3.523$^{***}$ (df = 3449; 6144) \\
  \hline
  \hline \\[-1.8ex]
  \textit{Note:}  &amp; \multicolumn{8}{r}{$^{*}$p$&lt;$0.1; $^{**}$p$&lt;$0.05; $^{***}$p$&lt;$0.01} \\
  \end{tabular}
  \end{longtable} 
  \end{center}
  \end{document}
  </code></pre>
  <p>The outputted PDF, however, looks like this:</p>
  <p><a href="https://i.stack.imgur.com/w5FcQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w5FcQ.png" alt="enter image description here" /></a></p>
  <p>Where both the bottom and right side of the table are cut off. I tried using longtable as you can see, but that doesn't seem to do much. I'm not sure if I need to rotate the table, or shift the table right, or allow for extra pages, or what.</p>