I'm typing up an article in Latex and after opening the proof environment with \begin{proof} and concluding it with \end{proof} I get the error message

! LaTeX Error: \begin{document} ended by \end{proof}.

See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.

Does anybody know how to fix this? If I delete both the \begin{proof} and \end{proof} commands then it goes through as usual but I don't get the nice proof environment in the document.

closed as too localized by Yiannis Lazarides, Loop Space, lockstep, Seamus, Matthew Leingang Jun 2 '11 at 19:01

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    nevermind, I'd forgotten amsthm – long trail Jun 2 '11 at 18:04
  • 1
    @long: could you post your minimal code here? – xport Jun 2 '11 at 18:14
  • 1
    Well done for solving your problem! We'll probably close this question just for housekeeping. – Loop Space Jun 2 '11 at 18:14
  • @Andrew: Why don't we ask him/her to delete this question? – xport Jun 2 '11 at 18:38
  • 1
    Actually, @long trail, could you please post an answer and accept it. This seems like something that could happen to other people too. – Caramdir Jun 2 '11 at 18:43

Browse other questions tagged or ask your own question.