I would like to use the typewriter
package along with another font. I tried to do that with the fontspec
package. I wouldn't mind to use the Latin Modern font. However, the style of the font remains in the typewriter
package, which I only would like to use in certain cases in the document. Is there a way to do that?
\documentclass{scrartcl}
\usepackage{lmodern}
\providecommand\ttgreyone{0.4}
\providecommand\ttgreytwo{0.5}
\providecommand\ttrotatebold{12}
\providecommand\ttdownbold{20000}
\providecommand\ttrightbold{35000}
\providecommand\ttdownshifttwo{20000}
\providecommand\ttrotatenormal{8}
\providecommand\ttrightnormal{20000}
\providecommand\ttdownnormal{20000}
\usepackage{typewriter}
\usepackage[normalem]{ulem}
\usepackage{fontspec}
\usepackage{lipsum}
\setmainfont{EB Garamond}
\begin{document}
\lipsum[1-2]
\end{document}