I,m quite new at LaTeX and I've been having problems with the split equation environment with error messages on every line in my environment. I'm trying to isolate the problem and I've reduced to simply testing out the split environment by copying a template, and I still get the same errors. Here's an example:
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
\begin{split}
a & = 1 \\
& = 2
\end{split}
\end{equation*}
\end{document}
In this very simple case, it doesn't even align, and I get 13 error messages. All error messages are of the type runaway argument, missing $, missing {, misplaced alignment tab &, display math should end with $$, etc. What's going on? I'm literally following a template. Is there any particular formatting I'm supposed to do for this environment?
%as the first char in these lines. They are not empty anymore, but you keep the visual blank space. – Ignasi Apr 05 '19 at 07:25\end{tabular} . Replace all statements between begin{document} and end{document} with above statements. You do not need begin{equation} as you are not writing serious equations. All maths statements can be put between two $$ signs.
– Vaman Kulkarni Jun 01 '20 at 13:03