Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stretch a table over multiple pages [closed]

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}
    
like image 415
lexu Avatar asked May 24 '10 12:05

lexu


People also ask

How do I get a table to continue over 2 pages in Pages?

Click the table row you want to move to the next page, and then press "Ctrl-Enter" to separate the table on two pages.

How do I Format a table to break across pages?

From the Table Tools, Layout tab, Table group, click the Properties icon. From the Table Properties dialog box, select the Row tab; Select the option 'Allow Row to break across pages'


1 Answers

You should \usepackage{longtable}.

  • PDF Documentation of the package: ftp://ftp.tex.ac.uk/tex-archive/macros/latex/required/tools/longtable.pdf
  • Tutorial with examples can be found here.
like image 70
aioobe Avatar answered Oct 13 '22 04:10

aioobe