I have this code:
\[
text
\begin{cases}
text, text \rightarrow text\\
text \rightarrow text, text, text, text text
\end{cases}
\]
...
\[
text
\begin{cases}
text text \rightarrow text, text text, text\\
text, text \rightarrow text
\end{cases}
\]
...
There is a way to format the entire text in monospace font? Something like this:
\[
\mathtt{text}
\begin{cases}
\mathtt{text, text} \rightarrow \mathtt{text}\\
\mathtt{text} \rightarrow \mathtt{text, text, text, text text}
\end{cases}
\]
...
\[
\mathtt{text}
\begin{cases}
\mathtt{text text} \rightarrow \mathtt{text, text text, text}\\
\mathtt{text, text} \rightarrow \mathtt{text}
\end{cases}
\]
...
but avoiding the repetition of the \mathtt
command.
I've tried the solution proposed here but it doesn't work for me: font doesn't change.