cross-referencing,theorems,elsarticle – How to Format ‘Proof of Theorem’ Using elsarticle Class in LaTeX

cross-referencingelsarticletheorems

I am using the elsarticle document class. I want to find a way to add the number in the proof environment to obtain something like this:

Proof of theorem 2.

Thank you.

Best Answer

From the documentation of elsarticle:

users are free to make use of ams math packages such as amsmath.sty, amsthm.sty, amssymb.sty, amsfonts.sty, etc., if they want to.

The class provides \newproof for defining proof environments, but the implementation is not as good as in amsthm, so my advice is to load it and use

\begin{proof}
...
\end{proof}

If you want a different title, do

\begin{proof}[Proof of Theorem \ref{...}]
...
\end{proof}

Replace the dots in \ref{...} with the appropriate label.