[Tex/LaTex] Defining the own proof environment

environmentstheorems

How would I define a proof environment that is basically used with

\begin{proof}
some proof here
\end{proof}

and it would be equivalent to:

\paragraph{Proof:} some proof here
\hfill \box

?

Best Answer

With LaTeX syntax:

\newenvironment{proof}{\paragraph{Proof:}}{\hfill$\square$}

I assume here that you mean \hbox{} not \box in your code. The \null macro is short for \hbox{}. The \box is a TeX primitive and is more like \usebox.