If you want that behavior in the whole document, simply load the package emptypage
.
MWE
\documentclass{book}
\usepackage{emptypage}
\usepackage{lipsum}
\begin{document}
\frontmatter
\chapter*{Preface}
\lipsum[1]
\mainmatter
\chapter{1}
\lipsum[1]
\chapter{2}
\lipsum[1]
\backmatter
\chapter*{Conclusions}
\lipsum[1]
\chapter*{At the end}
\lipsum[1]
\end{document}
If instead, you want that behavior in the frontmatter, but not in the mainmatter, you can do the following.
Using the code from the emptypage
package we define two commands, \setempty
to print blank empty pages, and \setnonempty
to print normal empty pages.
\makeatletter
\def\emptypage@emptypage{%
\hbox{}%
\thispagestyle{empty}%
\newpage%
\if@twocolumn%
\hbox{}%
\newpage%
\fi%
}
\let\oldcleardoublepage\cleardoublepage
\newcommand{\setempty}{%
\def\cleardoublepage{%
\clearpage%
\if@twoside%
\ifodd\c@page%
% do nothing
\else%
\emptypage@emptypage%
\fi%
\fi%
}%
}
\newcommand{\setnonempty}{%
\let\cleardoublepage\oldcleardoublepage%
}
\makeatother
Here is a MWE that shows how it works.
\documentclass{book}
\makeatletter
\def\emptypage@emptypage{%
\hbox{}%
\thispagestyle{empty}%
\newpage%
\if@twocolumn%
\hbox{}%
\newpage%
\fi%
}
\let\oldcleardoublepage\cleardoublepage
\newcommand{\setempty}{%
\def\cleardoublepage{%
\clearpage%
\if@twoside%
\ifodd\c@page%
% do nothing
\else%
\emptypage@emptypage%
\fi%
\fi%
}%
}
\newcommand{\setnonempty}{%
\let\cleardoublepage\oldcleardoublepage%
}
\makeatother
\usepackage{lipsum}
\begin{document}
\frontmatter
\setempty
\chapter*{Preface}
\lipsum[1]
\mainmatter
\setnonempty
\chapter{1}
\lipsum[1]
\chapter{2}
\lipsum[1]
\backmatter
\setempty
\chapter*{Conclusions}
\lipsum[1]
\chapter*{At the end}
\lipsum[1]
\end{document}
memoir
and KOMA-script classes have a simple interface for that. I think it is the default behaviour for KOMA. – Johannes_B Jan 14 '15 at 15:54\usepackage{afterpage}
to your preamble and try with\afterpage{\thispagestyle{empty}}\cleardoublepage
. – Werner Jan 14 '15 at 15:59titlesec/titleps
package has aclearempty
option that does exactly that in every empty page. – Bernard Jan 14 '15 at 16:00emptypage
package. – karlkoeller Jan 14 '15 at 16:10\afterpage{\thispagestyle{empty}}\cleardoublepage
command? – baister Jan 14 '15 at 18:54