Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a 3-column-longtable that spans over several pages, there's no problem with that. The thing is that there's some text before the longtable. Instead of starting right under the text, LaTeX leaves a blank space and table starts on next page. Any idea on why this may be happening? Here's some code:

\begin{longtable}{|c|c|c|}

\hline

Title1 & Title2 & Title3 \\

\hline \hline

\endhead

\multicolumn{2}{c}{Continued on next page...}

\endfoot

\endlastfoot

\hline
   {Sth1} &          {Sth2} &  {Sth3}

%%% etc...
%%% etc...

\hline

\end{longtable} 
share|improve this question

closed as too localized by Marco Daniel, percusse, diabonas, Torbjørn T., Claudio Fiandrino Aug 28 '12 at 7:00

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
You might need needspace package. The manual is very short, only 3 pages, please read it. –  In PSTricks we trust Jul 29 '12 at 5:45
3  
Welcome to TeX.SE. While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. –  Peter Grill Jul 29 '12 at 5:45
6  
without a full document its impossible to say but longtable forces a page break if there is not room for the table head and foot and a couple of normal lines on the space left fpr the start pf the table. –  David Carlisle Jul 29 '12 at 9:32