Answers for How to have a blank even page before every chapter didn't work in my case
If the default book class is loaded with the twoside and openright options, a new chapter starts from the first free odd page. These are possible scenarios:
If chapter 1 ends in a odd page (OK, page 4 is empty):
Page 1: | BeginOfChapter1 |
Pages 2 and 3: | BodyOfChapter1 | EndOfChapter1 |
Pages 4 and 5: | | BeginOfChapter2 |
If chapter 1 ends in an even page (there is no empty page between the chapters):
Page 1: | BeginOfChapter1 |
Pages 2 and 3: | EndOfChapter1 | StartOfChapter2 |
How can I automatically insert an empty page if the previous chapter ends on a even page (or make chapter check if there already is one), in order to get the result below?
I would like this behaviour for both \part and \chapter.
The is what the previous scenario would look like like (two empty pages have been added):
Page 1: | BeginOfChapter1 |
Pages 2 and 3: | EndOfChapter1 | |
Pages 4 and 5: | | StartOfChapter2 |
MWE:
\documentclass[a4paper,12pt]{book}
\usepackage{kantlipsum}
\usepackage{emptypage}
\begin{document}
\chapter{First}
\kant[1-4]
\chapter{Second}
\kant[1-2]
\chapter{Third}
\kant[1-2]
\end{document}
MWE output:
Desired output:




titlesec, it creates unwanted results, both if I use \cleartoevenpage or \cleartooddpage in \titleformat "format" argument – Polizi8 Mar 31 '21 at 18:15"How can I automatically insert an empty page if the previous chapter ends on a even page" means "How can I automatically insert an empty physical page if the previous chapter ends on a even page" (two blank pages)
– Simon Dispa Mar 31 '21 at 22:48\chaptercan start on an even page. Is that correct? – Werner Mar 31 '21 at 23:29