GeneralRemove heading from empty page

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
zaradek
Posts: 22
Joined: Fri Jun 27, 2008 9:49 pm

Remove heading from empty page

Post by zaradek »

I use the fancyhdr package with the book class. The problem is that when a page is left out because otherwise the next chapter would start on an even page then the heading is got on to this page as well, but it should be totally empty. How can it be solved?

Code: Select all

\documentclass{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
\begin{document}
\chapter{First chapter}
\section{First section}
Some text.
\chapter{This chapter has to start on an odd page}
Ans so on.
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Remove heading from empty page

Post by gmedina »

The documentation (Section 15 Those blank pages, page 15) of the fancyhdr package gives you the answer:

Code: Select all

\documentclass{book}
\usepackage{fancyhdr}
\usepackage{chngpage}
\pagestyle{fancy}

\begin{document}

\chapter{First chapter}
\section{First section}
Some text.
\clearpage{\pagestyle{empty}\cleardoublepage}

\chapter{This chapter has to start on an odd page}
Ans so on.

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
zaradek
Posts: 22
Joined: Fri Jun 27, 2008 9:49 pm

Re: Remove heading from empty page

Post by zaradek »

Thanks, you are right, I have it.

But why do you use \usepackage{chngpage}?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: Remove heading from empty page

Post by gmedina »

Sorry for that. Regarding this particular issue, there's no need to use the chngpage package.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply