I'm trying to format a document in lyx so that each chapter or section begins on its own page. Following this question and adding the following to the latex preamble:
\usepackage{afterpage}
\newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
but when I try to add an empty page after the Abstract, so that the contents table will be displayed on the next and not on the same with the abstract, what happens is that part of the contents table is added until the page containing the abstract is filled, a blank page is added afterwards and then the remainder of the contents table is shown.
How can I add the contents table on its own page?
Currently, I add
\afterpage{\blankpage}
immediately after the abstract and
\tableofcontents
immediately after the blank page primitive.
\clearpagebefore\null(it would be better to use\vspace*{\fill}instead of\null, which is not a documented LaTeX command). – egreg Nov 17 '15 at 13:28