How do I change a font for a latex document?
I am using the \documentclass{article}
, which sets the document in a serif font.
I also declared \usepackage{helvet}
, since that's the font I would like to use as a sans-serif.
But how do I get latex to actually set the document in a sans-serif font?
Also, I am using the package lslisting
to format code-listings.
How can I set my document such that all code is set in a separate font, e.g. courier or any other typewriter font?
lstlisting
question.