I am having some issues with the positioning of a page break with align
.
My code is roughly the following.
\documentclass{article}
\usepackage{amsmath, amsthm}
\begin{document}
%Lots of text to force the page break.
Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text.
\begin{proof}
%Some more text to force the page break and get the "$a=b$." in the correct position.
Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some $a=b$.
\begin{align*}
%Something pretty long to force a new page whilst leaving a blank area.
a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b
\end{align*}
\end{proof}
\end{document}
Now, align takes a new page and leaves a large blank bit at the bottom of the previous page, which is fine. However, it also takes the last line of text with it, and the last line of text is simply $a=b$.
Which is silly! So I want to utilise this large blank space by putting the $a=b$.
there. Is there a proper way of doing this? (I got a "hackey" answer by putting a \newpage
before the \align
, but this is immoral!)
I believe the standard answer would be to use a \minipage
. However, the \proof
reacts oddly to this.
Note: I found this question, this one, and this one. All have close-but-no-cigar answers (the last one seems promising, but has the same issue as minipage does).
align
cannot be broken across pages. You can tell it is allowed to break thealign
(see theamsmath
manual), or you can add some comments using\intertext{...}
or\shortintertext
frommathtools
), with add break points.\newpage
hack (although I am not sure I understand what you mean by them)?align
instead of attempting to control what it brings along to the next page and leaving behind an unfinished page.\pagebreak
between two words in the last but two line before the display; or simply have~
instead of a space before$a=b$
. If you are keen to split the display, add\displaybreak
before the\\
that ends one line.align
) will allow a page break there. but if you rewrite anything before that, and the display then fits, the vertical spacing will be all wrong.