我希望 \mathtt 成为数学模式的标准字体,但文本只是默认的文本类型。有办法吗?
谢谢。
答案1
\documentclass{article}
% set up you preferred monospace font here, before mathastext
\usepackage{mathastext}
\MTfamily{\ttdefault}\Mathastext % reload, but use \ttdefault
\begin{document}
I would like to have \texttt{\mbox{\textbackslash mathtt}} be standard font
for math mode, but text just be the default text type. Is there a way to do
this?
\[a^n +b^n = c^n\]
\end{document}