I am using a combination of Computer Modern TT and Euler Math for my document:
\usepackage[euler-digits,euler-hat-accent]{eulervm}
\usepackage[T1]{fontenc}
\renewcommand*\familydefault{\ttdefault}
\renewcommand*\sfdefault{\rmdefault}
This works as expected in most cases, but when I use the mathrm command in math mode, the font used is Computer Modern Roman. How to make LaTeX use the same font as the main text instead?
\renewcommand\mathrm{\mathtt}