>>>>> "Ralph" == Ralph Boland <[EMAIL PROTECTED]> writes:
Ralph> I have to write a number of equations in a single proof. I want
Ralph> to number them 1, 2, 3, etc since the equation are local to the
Ralph> proof and do not need to be referenced outside the proof.
Ralph> I need to do this in several proof. Each time I need to start
Ralph> from 1 again.
Ralph> How do I do this while still maintaining the normal rules for
Ralph> numbering equations outside a proof for the rest of my thesis?
Ralph> Of course I could number them by hand but lyx doesn't let you
Ralph> do this easily and in any case that would be against the lyx
Ralph> philosophy.
Assuming you have an environment named proof, I would try the
following [highly untested] code in the preamble:
\let\realproof=\proof
\let\realendproof=\endproof
\newcounter{realequation}
\renewenvironment{\proof}{%
\setcounter{realequation}{\value{equation}}%
\setcounter{equation}{0}%
\renewcommand{\theequation}{\arabic{equation}}%
\realproof}
{setcounter{equation}{realequation}\realendproof}
Use at your own risk!
JMarc