I was hoping to create a custom proof environment where along with the qed symbol it also mentions what was the claim that was proved. I thought the following would work:
\newenvironment{myproof}[1]%
{\vspace{1ex}\noindent{\em Pf.}\hspace{0.5em}}%
{\hfill{\tiny \qed (#1)}\vspace{1ex}}
I thought \begin{myproof}{Claim 42} ..\end{myproof} would work but it doesn't. After some googling I figured that it was because the argument is not passed on to \endmyproof.
Is there any fix to this? Or is this just bad TeX?
PS: FWIW, I was writing down a proof and had a small claim inside. The QED on the claim was a bit misleading that the proof of the Theorem was done. So this seemed like a natural(?) thing to do.