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've started to use Latex to create a book. I feel like I've gotten the basics down, but I am still very much at the beginning of my learning curve. Google has been a great resource, but I have not been able to find the answer to this question.

I would like my chapter to always begin on an odd page, and I would like the even page just before it to be totally blank. No headers on either of these two pages. This seems to be a common format in most books I've looked at.

I am using fancy headers.

So far the best resource I've found is this:

http://www.markschenk.com/tensegrity/latexexplanation.html

The author suggests the following.

% Code for creating empty pages
% No headers on empty pages before new chapter
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
    \hbox{}
    \thispagestyle{plain}
    \newpage
    \if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother \clearpage{\pagestyle{plain}\cleardoublepage}

This works just fine if the previous chapter ends on an odd page, it inserts a blank just like I want. But if the previous chapter ends on an even page, then it simply begins the chapter on the next page(which is odd).

I've tried making a few changes to the above, with limited success. It feels like I am doing a hack to do something that should be fairly easy. But perhaps this is necessary.

Any suggestions?

share|improve this question

migrated from stackoverflow.com Sep 21 '12 at 23:10

This question came from our site for professional and enthusiast programmers.

    
Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. –  Werner Sep 21 '12 at 23:10
    
Looking at the update to Charlie Martin's answer, I was wrong to suggest that this question is a duplicate. –  lockstep Sep 22 '12 at 12:28

4 Answers 4

up vote 8 down vote accepted

Memoir has \cleartorecto and \cleartoverso to insert clear pages until the next recto (or verso) page. It also has the \clearforchapter macro to specify how you want chapters to start.

So I think what you want is provided by Memoir with

\renewcommand{\clearforchapter}{\clearpage~\thispagestyle{cleared}\cleartorecto}
share|improve this answer

There's actually a teX/LaTeX SO that might be quicker. But in this case, you can get the effect you want, I believe, with fancyheaders.

Update

But wait a minute. In the situation you describe, where the the text ends on the verso page (the technical term for the even-numbered left-hand page side) if you want a blank verso page, you' will need a blank recto page as well. In other words, you're saying that if the text of a chapter ends partway down a verso page, you want to black pages, one recto and one verso, before your next chapter begins on the next recto page.

Are you sure thats what you mean?

share|improve this answer
    
Correct, I want a chapter to always begin with an even blank page and the chapter begin on the first odd page. That way you are looking at nothing but material from that chapter. –  JeffHeaton Jun 8 '11 at 10:49

I am not sure if this is the most elegant way in the world to accomplish this. But it seems to work great for my book. I used the above code, but then added this in front of each \chapter.

\checkoddpage\ifoddpage\else\newpage\mbox{}\fi

It works great, if I open my book to the start of any chapter, the chapter starts on an odd page, and there is a blank even page just before.

Still curious if there is a more elegant way to do this. Most books (but not all) I've seen do it this way, so I am sure there is a better way.

share|improve this answer
\newpage
\thispagestyle{empty}
\hbox{}

If you put this before the code you posted, you make sure to create at least one empty page. Then, with the code you have, if the chapter starts in an odd page... it's done! And if not... your code adds one more... and you have the two pages you needed!

share|improve this answer
1  
Welcome to TeX.SX! –  Adam Liter Feb 21 at 1:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.