I want to show:
proof:
Case 1: .....
Case 2: .....
in a proof. The following is my rough codes:
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\begin{proof}
\newenvironment{case}
\begin{case}
\item[title 1] XXXX
\end{case}
\begin{case}
\item[title 2] XXXX
\end{case}
\end{proof}
\end{document}
However, Latex shows \begin (proof) on input ended by \end (case)
How to show what I want to show?
The following is what I find; however, I cannot still finish it. Case numbering within proof
\newenvironment{}{}{}
defines a new environment but you haven't given it a definition. See my answer here for information about writing your own macros (commands and environments).