[Tex/LaTex] create a blank page

blank-page

I want to create a blank page. I looked up on the web and I tried the code:

\newcommand\blankpage{% comando pagina vuota
    \newpage
    \null
    \thispagestyle{empty}%
    \addtocounter{page}{-1}%
    \newpage
}

but it doesn't work. I have also tried this:

\newcommand*\NewPage{\newpage\null\thispagestyle{empty}\newpage}

I am writing in the article mode. Should I use a package?

Best Answer

A blank page without header, footer or page number and without increasing the page number:

\shipout\null

The page number can be increased by one via:

\stepcounter{page}

The macro of the question has a flaw in twocolumn mode, because \newpage does not end a page, but the current column. \clearpage is the better choice. It also prevents that floating objects are going to the page:

\newcommand\blankpage{% comando pagina vuota
    \clearpage
    \null
    \thispagestyle{empty}%
    \addtocounter{page}{-1}%
    \clearpage
}

If package hyperref is used, then the previous page and the empty page share the same page number in violation of unique page anchors. The page anchor can be turned off for the empty page:

\newcommand\blankpage{% comando pagina vuota
    \clearpage
    \begingroup
      \null
      \thispagestyle{empty}%
      \addtocounter{page}{-1}%
      \hypersetup{pageanchor=false}%
      \clearpage
    \endgroup
}