我希望 \mathtt 成為數學模式的標準字體,但 text 只是預設文字類型。有沒有辦法做到這一點?
謝謝。
答案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}