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.

Shouldn't the following code

\documentclass{book}

\usepackage[absolute]{textpos}

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

\begin{document}

\begin{textblock}{4}[0,0](4.3,2.5)
\begin{center}
{\Large
Bla Bla\linebreak
some text
}
\end{center}
\end{textblock}
\insertblankpage

\end{document}

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
add comment

1 Answer 1

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
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.