I have the following code:
\[
\begin{cases*}
1& if
\end{cases*}
...
after the if, I want to type a dollar sign but get the error message "Math mode started with '\[' cannot be closed with dollar". I am unsure how to fix this.
EDIT: Clarifications
- I want to type a dollar sign to enter into math mode. Note that the
cases*
environment expects text after the ampersand. - The error message mentioned is an AUCTeX error (shows up in the
*Messages*
buffer)---it doesn't allow me to type the dollar sign character into the Emacs buffer.
$
starts or ends math mode and\$
is needed to typeset a$
?cases*
environment wants text in the second column; thus it's a real AUCTeX error not to allow for$
in that position. Apparently, AUCTeX hasn't got support for themathtools
extensions toamsmath
.$
there, not\$
like it was suggested.