When I compile the following code everything runs with no issues:
$$
\left[ \begin{matrix}
2 & 3
\end{matrix} \right]
\quad
\left[ \begin{matrix}
2 & 3
\end{matrix} \right]
$$
However, when I add a blank line to improve readability, the compiler outputs an error about some missing $:
$$
\left[ \begin{matrix}
2 & 3
\end{matrix} \right]
\quad
\left[ \begin{matrix}
2 & 3
\end{matrix} \right]
$$
What can be causing this error? It seems to me there is nothing wrong with the syntax.
By the way, in case it might be useful, I am compiling with the command pdflatex beamer.tex.
$) Display math doesn't have paragraphs... Inline math also doesn't have paragraphs... Also... what the \quad supposed to do there ... (You may comment out the empty lines if you need them for some reason) – koleygr Aug 11 '19 at 02:40%at the beginning of the empty line. TeX will completely ignore it then. Unrelated to the problem, have a look at Why is [ … ] preferable to $$ … $$? – siracusa Aug 11 '19 at 02:50amsmathdefines abmatrixenvironment, which results in a shorter code. – Bernard Aug 11 '19 at 09:40