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 need to divide A4 into two A5 pages (landscape) which works fine with pgfpages but i also need special double page (like titlepage) where left half-page is empty and right contains text. But this page sometimes splits so one part is on the previous page. I tried to use \cleardoublepage which doesn't end the whole A4 page (if half empty). minimal example to clarify: (if text fills even number of A5 pages its fine but if number of pages filled by text is odd, my double page splits)

\documentclass[12pt,a4paper]{article}
\usepackage[left=2cm,text={17cm, 24cm},top=3cm]{geometry}
\usepackage{pgfpages}
\usepackage[czech]{babel}
\pgfpagesuselayout{2 on 1}[a4paper, landscape, border shrink=5mm]
\begin{document}

{\Large Empty page}

\newpage
{\LARGE Title page}
%end of special double page
\cleardoublepage

{\LARGE text unknown length}

\null\cleardoublepage
%beginning of second special double page
{\Large Empty page}

\newpage
{\LARGE Title page}
%end of second special double page
\null\cleardoublepage
{\LARGE text unknown length}


\end{document}
share|improve this question

1 Answer 1

up vote 1 down vote accepted

\cleardoublepage only does what you want in two-sided printing. So, add option twoside to the class options:

\documentclass[12pt,a4paper,twoside]{article}
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.