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}
\qedherein the documentation ofamsthm– egreg Apr 13 '12 at 14:26\textwidth, you may have to restructure the sentence in order to leave room for the QED symbol to fit on the same line. – Werner Apr 13 '12 at 15:29\widowpenalty=10000at 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. – tohecz Apr 13 '12 at 16:43\widowpenaltyas @tohecz suggested unfortunately does not help.) – jamaicanworm Apr 13 '12 at 18:20proofenvironment. If you want to keep this for readability purposes, then use a%in the blank line. – Werner Apr 13 '12 at 18:24