
Quiero utilizar dos fuentes monoespaciadas diferentes en un mismo documento.
Sin embargo, cuando escribo \texttt{The quick brown fox jumps over the lazy dog}
usando \usepackage{courier}
, puedo obtener la figura 2 pero no la figura 1.
Por el contrario, cuando escribo \texttt{The quick brown fox jumps over the lazy dog}
usando \usepackage{newtxtext}
, puedo obtener la figura 1 pero no la figura 2.
Entonces, ¿cómo generar las dos figuras en un mismo artículo?
Figura 1:
Figura 2:
Respuesta1
Aquí está, aunque no está muy claro por qué quieres esto:
\documentclass{article}
\usepackage{newtxtext}
\DeclareRobustCommand\crfamily{\fontfamily{pcr}\selectfont}
\DeclareTextFontCommand{\textcr}{\crfamily}
\begin{document}
\texttt{The quick brown fox jumps over the lazy dog}
\textcr{The quick brown fox jumps over the lazy dog}
\end{document}