Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I create a blank page using

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

Here it is one my page:

\thispagestyle{empty}
\addtocounter{page}{-1}

\null\vspace{\stretch{1}}
    \begin{flushright}
        \emph{Stay hungry, \\
        stay foolish. \\}
        \smallskip
        Steve Jobs, Stanford University, 2005
    \end{flushright}
\vspace{\stretch{5}}\null

Unfortunately adding \blankpage after that page, it doesn't work

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Your \blankpage only contains one \newpage, i.e. the leading \null is put on the current page. It only works as expected if a page break occurred already direct beforehand. To make it always work you need to add a \newpage at the beginning. Should there be already be a page break, this \newpage will be ignored, so you don't get two extra pages.

\newcommand\blankpage{% comando pagina vuota
    \newpage
    \null
    \thispagestyle{empty}%
    \addtocounter{page}{-1}%
    \newpage
}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.