I have been trying to create a new counter to clearly identify a specific subset of equations. I use the following code to overwrite the equation environment:
Code: Select all
\newcounter{newcounter}
\setcounter{newcounter}{0}
\newenvironment{NEWequation}{
\addtocounter{equation}{-1}
\refstepcounter{newcounter}
\renewcommand\theequation{NEW.\thenewcounter}
\begin{equation}}
{\end{equation}}
Code: Select all
\NewEnviron{NEWgather}{
\addtocounter{equation}{-1}
\refstepcounter{newcounter}
\renewcommand\theequation{NEW.\thenewcounter}
\begin{gather}
\BODY
\end{gather}
}
Does anyone know how to overcome this issue? Thank you for your help!
