3

I am using the memoir class. I am curious whether I am misunderstanding something from the manual. I am trying to create a book where a \part(...) command does not force a new page immediately after the title. I want to add text on the same page (basically a description or abstract). I thought I could use this

\renewcommand{\afterpartskip}{\relax}

Unfortunately, the command \part{...} still forces a new page. So, I instead created this

\newenvironment{BookPart}[1]
    {%
    \phantomsection{}
    \addcontentsline{toc}{part}{#1}
    \stepcounter{part}
    \noindent{\sffamily\Huge\color{blue}Part~\thepart: #1}
    \vspace*{2\baselineskip}
    }
    {%
    \clearpage
    }

A base example then is as follows:

\begin{BookPart}{Introduction}

\noindent{}This portion of the book introduces you to ...

\end{BookPart}

Absent that I would re-write primitives behind \part{...}, is this a reasonable approach? Otherwise, does this misunderstanding point to a need for clarification in the document for memoir that \part{...} always enforces a new page break regardless of how one tries to override it using \afterpartskip{...}?

2 Answers2

3

You're missing a small additional declaration in the form of \nopartblankpage:

enter image description here

\documentclass{memoir}

\usepackage{lipsum}% Just for this example

\renewcommand{\afterpartskip}{\relax}
\nopartblankpage

\begin{document}

\part{A part}

\begin{quote}
  \lipsum[1]
\end{quote}

\vfil

\chapter{A chapter}

% <your document here>

\end{document}

Since the traditional \part ends off with \vfil\newpage, I manually inserted \vfil after whatever quote/abstract you want to place. Note that the part title-and-abstract will be vertically centred, and might shift up/down depending on the (vertical) length of the abstract.

Werner
  • 603,163
  • Thank you. This command was not in the manual that I have. FWIW, the answer was addressed also here ...

    https://tex.stackexchange.com/questions/246177/how-can-i-remove-the-blank-page-after-the-main-title-appendix

    – Jeffrey J Weimer Jul 07 '18 at 13:28
  • The command is documented in the 2010-03-12 version of the manual. The latest version is 2015-11-11. – Peter Wilson Jul 07 '18 at 17:52
  • My apologies. I found the command in the manual. I interpreted the explanation of the default:\newcommand*{\afterbookskip}{\vfil\newpage} almost literally as saying that \afterbookskip handles the page break entirely unto itself. I see now, the default is actually equivalent to something like \newcommand*{\afterbookskip}{\vfil\stateofpartblankpage{}}, where the state of \partblankpage or \nopartblankpage is checked to decide whether to issue a \newpage or not. – Jeffrey J Weimer Jul 10 '18 at 16:04
0

You can also use \openany, \openright and \openleft commands:

\documentclass{memoir}
\usepackage{lipsum}% Just for this example
\renewcommand{\afterpartskip}{\relax}

\begin{document}

\openany
\part{A part}

\openrigth
\begin{quote}
  \lipsum[1]
\end{quote}

\vfil

\chapter{A chapter}
% <your document here>

\end{document}
user
  • 4,745