Page LayoutGet rid of blank Page after Part

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
simonsp
Posts: 1
Joined: Tue Nov 22, 2011 11:32 pm

Get rid of blank Page after Part

Post by simonsp »

I have a document in book style where I have used parts to make my document like this:

Part 1
Chapter 1
Chapter 2
...
Part 2
Chapter 1
Chapter 2
...

I have used the command \part{} to create the parts and the command:

Code: Select all

\makeatletter\@addtoreset{chapter}{part}\makeatother%
for the resetting of chapters.
The problem is, that I can't get rid of the blank page after the second part. I have used:

Code: Select all

\makeatletter
\@openrightfalse
\part{1}
\@openrighttrue
\makeatother
for the first blank page after the first part, but it won't work after the second part. What should I do?


Thanks in advance
Simon

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Get rid of blank Page after Part

Post by Stefan Kottwitz »

Hi Simon,

welcome to the board!

Since you use \@openrighttrue, you request that chapters should start at right-hand pages, which means pages with odd page numbers. So, if necessary, a blank page is inserted. If you don't want the blank page, the chapter would start at an even page, which is not desired. Or change that.

Look:

Code: Select all

\documentclass{book}
\makeatletter\@addtoreset{chapter}{part}\makeatother%
\begin{document}
\makeatletter
\@openrightfalse
\part{1}
\@openrighttrue
\makeatother
\chapter{One}
\end{document}
Here, the part page is page 1. The chapter should start on the right side, so it has to start on page 3. The consequence is that page 2 is empty.

Stefan
LaTeX.org admin
Post Reply