TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a table that takes up a full page, but I want it to start on a page that already has some text and then continue onto the next page (i.e. it's ok if the table gets broken up and spans two pages). It is a simple two column table:

\begin{tabular}{| p{.20\textwidth} | p{.80\textwidth} |} 
foo & bar \\ \hline 
foo & bar \\ \hline 

I guess I need longtable? How do I use it?

share|improve this question
The longtable package documentation is available on CTAN. It includes one very detailed example. – Werner Aug 24 '11 at 23:30
up vote 64 down vote accepted

There are a few options described in How can I make a table that takes up more than a single page?

I've put a MWE below using the longtable package; I deliberately didn't put the longtable in the table environment so that it wouldn't float, and would show that it breaks across pages.

As described in @Werner's comment, the documentation has a lot of detail.


\usepackage{lipsum} % just for dummy text- not needed for a longtable


\begin{longtable}{| p{.20\textwidth} | p{.80\textwidth} |} 
foo & bar \\ \hline 
foo & bar \\ \hline
foo & bar \\ \hline
foo & bar \\ \hline
foo & bar \\ \hline
foo & bar \\ \hline
foo & bar \\ \hline
foo & bar \\ \hline
foo & bar \\ \hline
foo & bar \\ \hline
foo & bar \\ \hline
\caption{Your caption here} % needs to go inside longtable environment

Table \ref{tab:myfirstlongtable} shows my first longtable.

As a side note, some folks would advocate against using vertical lines in a table- that's a separate discussion though :) Have a look at Why not use vertical lines ('|') in a tabular?

share|improve this answer
Thanks, just what I needed! – Chris May 26 '12 at 0:36
Perfect, thanks! – Savara Dec 3 '12 at 11:51
@cmhughes any idea how I can decrease the font size for text within the table? – Goaler444 May 4 '13 at 13:00
@Goaler444 try adding \small just after \begin{longtable} – cmhughes May 4 '13 at 15:22
Is there any way to keep repeating the table header at each new page? – Daniel Bonetti Aug 29 '14 at 1:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.