For refering a proof to a theory I know there are other ways to use but I want to know how to use by this " \newproof{pot}{Proof of Theorem \ref{thm2}}". If I put this in preamble and make proof environment by \begin{pot} ... \end{pot}, it will refer all proof to thm2.


You can define a generic environment using \newproof that has a text depending on a macro that can be redefined.



\newproof{zproofof}{Proof of \proofofref}



There exist infinitely many twin primes.

\begin{proofof}{Theorem \ref{twins}}
It's really easy, isn't it?

\begin{proofof}{Theorem \ref{1+1}}
Too difficult.


enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.