TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Shouldn't the following code



\providecommand{\insertblankpage}[0]{ \newpage \leavevmode \thispagestyle{empty} \newpage }


Bla Bla\linebreak
some text


output a pdf (using XeLaTeX) with two pages? (one with some text and the other one blank).

Instead only one page is produced.

Why is that?

share|improve this question
up vote 5 down vote accepted

Essentially the problem is that the textblock isn't in the page flow it os added at shipout to the page, nut only once there is a page to add. So basically you need to generate two blank pages, one to carry the textblock and one really blank.

 \providecommand{\insertblankpage}[0]{ \mbox{}\clearpage  \leavevmode  \thispagestyle{empty} \newpage }
share|improve this answer
Thank you, I've checked this and it works. But its obvious you were... in a rush! If you like please make it more clear. Thanks again. – niels Aug 11 '12 at 19:25
I was watching the olympics:-) – David Carlisle Aug 11 '12 at 21:23

Your Answer


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.