I want to define a new environment that will take a text argument, and use it as a title.
\documentclass{article}
\usepackage{amsthm}
\newenvironment{titleproof}
{\begin{proof} \textbf{Title of the Proof} \newline}
{\vspace*{0.5\baselineskip} \end{proof}}
\begin{document}
\begin{titleproof}
Here is my proof.
I want to be able to write something like ``begin\{titleproof\}\{New Title\}''
to customize the title of each different proof.
\end{titleproof}
\end{document}
CLARIFICATION
I want to be able to do this in general, not just for the proof environment. Here is a more clear MWE:
\documentclass{article}
\newenvironment{titleenv}
{\textbf{Title of the Environment} \newline}
{\vspace*{0.5\baselineskip}}
\begin{document}
\begin{titleenv}
Here is my environment.
I want to be able to write something like ``begin\{titleenv\}[New Title]''
to customize the title of each different proof.
\end{titleenv}
\end{document}


