latex equation numbering code example
Example 1: latex numbered equations
\begin{equation} \label{eq1}
\begin{split}
A & = \frac{\pi r^2}{2} \\
& = \frac{1}{2} \pi r^2
\end{split}
\end{equation}
Example 2: latex number listing as equation
\begin{equation} \label{eq:lm.eq:lm.model}
\text{\lstinline[language=R]|lm.model <- lm(Total.Score ~ Game.Num, data = sid1133)|}
\end{equation}