[Tex/LaTex] Start a longtable in Latex at top of next page

afterpagefloatslongtable

I want to use the longtable environment for a table. However, I do not know how to place it at the top of the next page, as I can do with the table environment. Do you know how to do it?

Best Answer

You could use the afterpage package and its command \afterpage to defer typesetting of the longtable environment to the top of the next page.

\documentclass{article} % or whatever document class you use
... % rest of preamble
\usepackage{afterpage}  % load the afterpage package
\usepackage{longtable}  % load the longtable package
\begin{document}
... % stuff
\afterpage{%
   % Contents of "longtable" environment:
   \begin{longtable}
   ...
   \end{longtable}
}% end of scope of afterpage directive 
... % remainder of document
\end{document}
Related Question