Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have something like (with the packages amsthm and document class book):

\begin{proof}  
blabla  
\begin{itemize}  
\item blabla  
\item blabla  
\end{itemize}  
\end{proof}

The problem is, that ends on the bottom on a page and the square marking the end of the proof is alone on the next page. How can I avoid such behavior?

share|improve this question
    
Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. –  barbara beeton Aug 13 '13 at 13:44
    
Thanks for the welcome and this answer! It works perfectly. I'll have a look to the starter guide. –  Gilles Bonnet Aug 13 '13 at 13:49
    
related: QED symbol on the same page as proof –  barbara beeton Dec 14 '13 at 18:32
add comment

1 Answer

up vote 3 down vote accepted

this is what the command \qedhere is meant for with amsthm:

\begin{proof}
blabla
\begin{itemize}
\item blabla
\item blabla \qedhere
\end{itemize}
\end{proof}

it should be placed on the last line of the last \item.

it also works when the proof ends with display math, placed just before the \end{...} command of the "main" environment. (there may be some disagreement over the vertical positioning in this case; for example, if the last line includes cases, the box will be placed on the main baseline of that line, which is not the last line of the cases environment.)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.