I have a problem while inserting a Matrix. I did it a couple of times and i had no error before. Here is the code:
$$
\left[
\begin{array}{cc}
[RGA]_{11} & [RGA]_{12} \\
[RGA]_{21} & [RGA]_{22}
\end{array}
\right]
\text{ becomes }
\left[
\begin{array}{cc}
[RGA]_{11} & 1-[RGA]_{11} \\
1-[RGA]_{11} & [RGA]_{11}
\end{array}
\right]
$$
This doesn't compile, getting errors on line 5, while if I write:
$\left[
\begin{array}{cc}
[RGA]_{11} & [RGA]_{12} \\
a [RGA]_{21} & [RGA]_{22}
\end{array}
\right]
\text{ becomes }
\left[
\begin{array}{cc}
[RGA]_{11} & 1-[RGA]_{11} \\
1-[RGA]_{11} & [RGA]_{11}
\end{array}
\right]
$
As a stupid example, it compiles! Any idea of what is wrong?
\relaxbefore the[otherwise it is seen as part of\\[2pt]– David Carlisle Jun 14 '17 at 13:09amsmathbmatrixyou would not need\left..\rightor{cc}and it would be enough to put the[on the next line, as you have it. – David Carlisle Jun 14 '17 at 13:11