I'm using the proof
environment from the amsthm
package. In some cases, the last line of a proof falls at the end of a page, but the QED symbol (the little white box) ends up on the following page.
Is there any way to guarantee that in each instance of \begin{proof} ... \end{proof}
in my document, the QED symbol will always be on the same page as the last line of the proof?
Here is an MWE which demonstrates this problem:
\documentclass{article}
\usepackage{lipsum}
\usepackage{amsthm}
\begin{document}
\begin{proof}
\lipsum[1-5]
This is the concluding line of the proof.
\end{proof}
This line is on the second page, below the QED symbol.
\end{document}
\qedhere
in the documentation ofamsthm
\textwidth
, you may have to restructure the sentence in order to leave room for the QED symbol to fit on the same line.\widowpenalty=10000
at the very end of the last paragraph of your proof? I'm really not sure whether it can help and I can't test it now.\widowpenalty
as @tohecz suggested unfortunately does not help.)proof
environment. If you want to keep this for readability purposes, then use a%
in the blank line.