# [Tex/LaTex] Use courier font inline on text

fonts

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.

Use the courier package. Consequently, the minimal example

\documentclass{article}
\usepackage{courier}
\begin{document}
This is not Courier font. \texttt{This is Courier font.}
\end{document}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​


produces

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

• Without courier package:

• With courier package: