I am trying to create a new environment for equations in LaTex. This is what I have tried
\newenvironment{myeq}
{
\begin{fleqn}[\parindent]
\begin{equation*}
\begin{split}
}
{
\end{split}
\end{equation*}
\end{fleqn}
}
However, when I try to run the code I get "LaTex Error: \begin{split} ended by \end{myeq}". Can someone please help me to understand what I am doing wrong? Thanks!