Page LayoutBlank page between book chapters

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
zach
Posts: 10
Joined: Sun Jun 21, 2009 9:43 pm

Blank page between book chapters

Post by zach »

Hello all,

I'm working on a document that is a book class where I include multiple chapters. However, there is an (almost) blank page being put between every chapter. The only thing on these pages is the page number. How do I get rid of this page? Sample files are in a zip file attached below. MAIN.tex is the main file. The output I get is also attached. The blank pages are 1 and 4 (5 and 8 in the pdf document). Please help if you can. I feel like there is something obvious that I'm missing.
Attachments
Zach.zip
(24.11 KiB) Downloaded 249 times

Recommended reading 2024:

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

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

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Blank page between book chapters

Post by frabjous »

I think this is caused by stuff you have at the start of chapter1.tex and chapter2.tex apparently to format the chapter heading. E.g. you have:

Code: Select all

\begin{center}
\vspace*{3.0in}
\Huge
\chapter{Chapter 1 Title Here}
\end{center}
\newpage
Just use \chapter{Chapter 1 Title Here} and get rid of the rest.

None of that is effective, or is responsible for formatting the chapter title. In fact, what's happening is this: the \include command in MAIN.tex clears to the next page. Then, the \vspace is putting blank space on that page, and then the \chapter command is telling it to create a page break *after* this space, and so the space ends up on a blank page.

Rather than trying to format the chapter title using commands like this, you need to do it a different way. For simpler solutions, look at the documentation for the fancychap and titlesec packages, or consider using the memoir class, which has its own chapter heading styles to choose from.
zach
Posts: 10
Joined: Sun Jun 21, 2009 9:43 pm

Re: Blank page between book chapters

Post by zach »

frabjous,

Getting rid of \vspace and the rest worked perfectly. I don't need to use those other packages you mentioned for this project, although I appreciate the suggestions. Simply putting

\chapter{Chapter Title}
\newpage

as the beginning of each chapter file formats it just fine. Thank you very much for the help.
Post Reply