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


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
... % stuff
   % Contents of "longtable" environment:
}% end of scope of afterpage directive 
... % remainder of document
Related Question