I tried to use the commands defined here: Can I change all math output to use monospaced text? to change the font in the math environment. However, the following code does not compile:
\everymath{\mathtt{\xdef\tmp{\fam\the\fam\relax}\aftergroup\tmp}}
\everydisplay{\mathtt{\xdef\tmp{\fam\the\fam\relax}\aftergroup\tmp}}
\begin{align*}
T = \{
\alpha : A \subseteq B,\\
\beta : B \subseteq C\\
\}
\end{align*}
It compiles correctly in normal math mode (without using "align" and line breaks), or without the commands to change the font. How can I modify the font used inside the align environment to typewriter? (Similar to: \newenvironment where all text is typewriter (like \texttt) , but in math mode)
I would like to write something like:
\begin{ttalign*}
T = \{
\alpha : A \subseteq B,\\
\beta : B \subseteq C\\
\}
\end{ttalign*}
where the environment "ttalign" behaves likes "align", but with the typewriter font instead of the normal font.