Latex insert an empty or a blank page

Commands to insert an empty page (continuing page number) and a blank page (no continuing page number).

Add an empty page

\newpage
\thispagestyle{plain} % empty
\mbox{}

The major part is \mbox{}, which ensures the existence of an empty page.Following page will continue with numbering.

Insert a blank page

In the preamble:

\usepackage{afterpage}

\newcommand\blankpage{
    \null
    \thispagestyle{empty}
    \addtocounter{page}{-1}
    \newpage
    }

In the page after which you want a blank page:

\afterpage{\blankpage}

The following page will not continue with the numbering.

Z. Lu avatar
Z. Lu
Data science, bioinfo, scripting, parasites, retro, plain text.
comments powered by Disqus