I would like to display a matrix with characters using monospaced font (as in \tt and \mathtt), but I haven't found an easy way to do it. Something like this:
\begin{center}{\tt\left(
\begin{tabular}{cccc}
A & B & C & D\\
E & F & G & H\\
I & J & K & L
\end{tabular}\right)}.
\end{center}
But this won't work, because I used \left( and \right) outside math environment.
\[
{\mathtt
\begin{pmatrix}
A & B & C & D\\
E & F & G & H\\
I & J & K & L
\end{pmatrix}
}
\]
This one won't work either:
! Missing \endcsname inserted.
I know I can do this by using {\mathtt A} & {\mathtt B}, and so on, for each matrix element, but that would be really a pain (I have more matrices).
Is there a simple way to do this?
