0

I want to make a document where \part only starts on left-sided pages when using \documentclass[twoside]{memoir}. However, \chapter should start on either left or right-sided pages.

I have not been able to find any material on how to do this, which is a first for my five years of doing LaTeX documents.

Does anyone know of a package that allows me to do something like this, or is there a way to move the twoside option to only effect \part?

In advance thank you for any help.

Sam
  • 2,958

1 Answers1

2

If I understand you correctly, you want to start the \part on odd pages (not left-sided, is it?) and keep \chapter to start on both even and odd pages.

You can do this by using the \cleardoublepage command which does the same thing as \clearpage but also adds a blank page if needed. You can then redefine the \part macro to call \cleardoulepage before executing the rest of its content.

\usepackage{etoolbox}

\pretocmd{\part}{\cleardoublepage}{}{}

For more information on the \pretocmd macro, please refer to egreg's excellent post.


MWE

Here's a minimal working example:

\documentclass[twoside, openany]{memoir}

\usepackage{lipsum} \usepackage{etoolbox}

\pretocmd{\part}{\cleardoublepage}{}{}

\begin{document}

\part{The beginning of a new era} \chapter{The evolution} \lipsum[1-6]

\part{Another era} \chapter{The second evolution} \lipsum[1-6]

\end{document}

Note the use of the openany option which opens any page for starting new chapters, as by default, a chapter will always start on odd pages.

Sam
  • 2,958