for font support out of the box with your tex distribution, check out https://tug.org/FontCatalogue/
for monospaced, inconsolata is quite nice i think.
install the package, then load it up:
\usepackage[T1]{fontenc}
\usepackage{inconsolata}
A working example looks like this:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{inconsolata}
\begin{document}
this is a \texttt{mono spaced font example}.
\end{document}
bera mono is somewhat close to bitstream mono. load it up like this:
\usepackage[T1]{fontenc}
\usepackage[scaled]{beramono}
for xetex or xelatex, you need the fontspec package, and the font installed to your system, then load the font with fontspec:
\usepackage{fontspec}
\setmonofont[Mapping=tex-text]{Courier New}
A working example in xelatex looks like this:
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[a4paper,11pt,final,openright,twoside]{memoir}
\RequireXeTeX %Force XeTeX check
%XeLaTeX packages
\usepackage{xltxtra}
\usepackage{fontspec} %Font package
\usepackage{xunicode}
%Select fonts
\setmainfont[Mapping=tex-text]{Minion Pro}
\setsansfont[Mapping=tex-text]{Myriad Pro}
\setmonofont{Bitstream Vera Mono}
\begin{document}
\textrm{Ya! System} \texttt{fonts are} \textsf{so nice!}
\end{document}
xetex
tag. Also it was decided that thelatex
tag should not be used.\usepackage{sourcecodepro}
See also here.