[Tex/LaTex] Use courier font inline on text


If I want to apply the courier font to a small piece of text in my file, how can I do that? I have searched around but can't seem to find information for the courier font.

Best Answer

Use the courier package. Consequently, the minimal example

This is not Courier font. \texttt{This is Courier font.}


Courier font in LaTeX

There is a marginal difference between the output generated via \texttt{...} with/without the courier package:

  • Without courier package:

Typewriter font in LaTeX

  • With courier package:

Courier font in LaTeX

Related Question