[pagination] How to stretch a table over multiple pages

I have a Table (multiple rows, multiple columns, see below ) that is longer than one page. How can I tell LaTeX to continue on the next page.

  • Adding a \newpage didn't work
  • Manually 'ending' and 'reopening' the table works, but is very tedious, since the table will be many pages long.

    \begin{tabular}{lp{13cm}} 
        AAAAAAAAAA  & FOOBAR FOOBAR FOOBAR FOOBAR FOOBAR\\
        BBBBBBBBBB  & FOOBAR FOOBAR FOOBAR FOOBAR FOOBAR\\
        CCCCCCCCCC  & FOOBAR FOOBAR FOOBAR FOOBAR FOOBAR\\
    
        ...
    
        ZZZZZZZZZ  &  FOOBAR FOOBAR FOOBAR FOOBAR FOOBAR\\
     \end{tabular}
    

This question is related to pagination latex

The answer is


You should \usepackage{longtable}.