I'm using the memoir class and need to align the bottom of the pages in a page spread. By default, the memoir class does this by inserting spaces between paragraphs, which I don't want. So, I'm using the \raggedbottom
command and inserting vertical spacing only where I want it.
I'm running into situations such as below where I want to add roughly half a line of vertical space, so I want to add just a tad of space above the two section titles on the right page.
I inserted the command \vspace{\fill}
above both section titles, but it's only working for me if the space at the bottom of the page is more than a line or so. If it's small, like in the above example, I get this:
Can \vspace{\fill}
solve this use case? If not, is there a better way?
Here's my MWE:
\documentclass{memoir}
\clubpenalty=10000
\widowpenalty=10000
\usepackage{lipsum}
\raggedbottom
\begin{document}
\lipsum[1-10]
\subsection{Subsection Two}
\lipsum[1-1]
\vspace{\fill}
\section{Section Five}
\lipsum[1-1]
\vspace{\fill}
\section{Section Six}
\lipsum[1-1]
\section{Section Seven}
\lipsum[1-1]
\end{document}
EDIT
Here's an example of when \vspace{\fill}
works great. I added the command \enlargethispage{2\baselineskip}
to line 11 and 23 of my MWE, which gives this:
Adding \vspace{\fill}
above the section titles fixes things nicely, as shown below. So, I'd like to accomplish the same thing regardless of how small the space is at the bottom of the page.
\vspace{0pt plus 1\baselineskip}
\vspace*
use\vspace
as you want to lose this space at a page break