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 want to insert a blank page in a document so that the text would be added to the content of the current page till it reaches end of the page, the next page would be empty, and the text continue from the third page!

If I used \afterpage{\newpage} but it just does not work! what should I do?

share|improve this question
1  
Do you want the page counter to increment across the blank page, e.g., to go from p.7 to p. 9? –  Mico Dec 2 '11 at 10:49

2 Answers 2

up vote 12 down vote accepted

You should use the afterpage package.

In the preamble :

\usepackage{afterpage}

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

EDIT: I removed the makeatletter mention, since it is useless, and changed the \clearpage by \newpage.

In the text before the blank page, insert the following code:

\afterpage{\blankpage}

It should do the trick. Be aware that unresolved floats might be a trouble here.

share|improve this answer
2  
You don’t actually need \makeatletter or \makeatother, as you don’t use any @ commands. And I think the OP wanted the text to continue till the end of page, so you could remove the \vfill too. –  Karl Ove Hufthammer Dec 2 '11 at 10:53
    
To avoid problems with pending floats being written to the blank page, could you replace the final statement of the \blankpage macro, \clearpage, with \newpage? –  Mico Dec 2 '11 at 10:56

You just need something – anything – before or after the \newpage command. Try

\afterpage{\null\newpage}

Of course, this doesn’t remove page numbers or headers and footers, and it does increase the page number. If you don’t want this, see Martigan’s solution.

share|improve this answer

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.