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
}
\blankpage
command you defined will force a blank page without increasing the page counter – David Carlisle Sep 23 '16 at 20:25