LaTeX: remove blank page after a \part or \chapter

Viewed 123720

How to remove a blank page that gets added automatically after \part{} or \chapter{} in a book document class?

I need to add some short text describing the \part. Adding some text after the part command results in at least 3 pages with an empty page between the part heading and the text:

  1. Part xx
  2. (empty)
  3. some text

How to get rid of that empty page?

P.S. Latex: How to remove blank pages coming between two chapters IN Appendix? is similar but it changes the behavior for the rest of the text while I need to remove the empty page for this one \part command only.

7 Answers

Although I guess you do not need an answer any longer, I am giving the solution for those who will come to see this post.

Derived from book.cls

\def\@endpart{\vfil\newpage
              \if@twoside
                \null
                \thispagestyle{empty}%
                \newpage
              \fi
              \if@tempswa
                \twocolumn
              \fi}

It is "\newpage" at the first line of this fragment that adds a redundant blank page after the part header page. So you must redefine the command \@endpart. Add the following snippet to the beggining of your tex file.

\makeatletter
\renewcommand\@endpart{\vfil
              \if@twoside
                \null
                \thispagestyle{empty}%
                \newpage
              \fi
              \if@tempswa
                \twocolumn
              \fi}
\makeatother
Related