How can I get a portion of my document that uses the listings package to display in the font that is used in alltt?
Right now I have
\begin{lstlisting}[language = SAS]
proc hpsplit data = autompg2 seed = 123 plots = zoomedtree(nodes = ("0") depth = 2
fracprec = 2 predictorprec = 2);
class origin cylinders;
model mpg = cylinders displacement weight acceleration year origin;
output out=mpgout;
rules file = "\path\mpgrule.txt";
run;
proc means data = mpgout;
class _NODE_;
var MPG;
run;
\end{lstlisting}
{\ttfamily...}? – Werner Jul 26 '18 at 15:24\lstset{basicstyle=\ttfamily}– moewe Jul 26 '18 at 15:35basicstyle = \ttfamilyto the options for yourlstlistingenvironment (or add\lstset{basicstyle = \ttfamily}to your preamble. – Werner Jul 26 '18 at 15:35