TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use a different monospaced font for \texttt. I'm particularly fond of Bitstream Vera Sans Mono. If possible, not with XeTeX, since I'm not yet really familiar with it. Solutions using XeTeX would still be welcome, of course.

I hope this doesn't violate the one-question policy:

  1. How do I change the monospaced fonts invoked by \texttt{foo bar baz...}?
  2. Where can I find a list of other fonts that I can use without invoking XeTeX?
share|improve this question
Since the question is explicitly not about xetex, I removed the xetex tag. Also it was decided that the latex tag should not be used. – Caramdir Nov 16 '10 at 5:34
up vote 17 down vote accepted

for font support out of the box with your tex distribution, check out http://www.tug.dk/FontCatalogue/

for monospaced, inconsolata is quite nice i think.

install the package, then load it up:


A working example looks like this:




this is a \texttt{mono spaced font example}.


bera mono is somewhat close to bitstream mono. load it up like this:


for xetex or xelatex, you need the fontspec package, and the font installed to your system, then load the font with fontspec:

\setmonofont[Mapping=tex-text]{Courier New}

A working example in xelatex looks like this:

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\RequireXeTeX %Force XeTeX check

%XeLaTeX packages
\usepackage{fontspec} %Font package

%Select fonts
\setmainfont[Mapping=tex-text]{Minion Pro}
\setsansfont[Mapping=tex-text]{Myriad Pro}
\setmonofont{Bitstream Vera Mono}


\textrm{Ya! System} \texttt{fonts are} \textsf{so nice!}

share|improve this answer
Perhaps an example with \setmonofont would make more sense given the question? – Will Robertson Nov 16 '10 at 1:13
Bera Mono is Bitstream Vera Mono, isn't it? I thought "Bera" was just a contraction of Bistream Vera. – frabjous Nov 16 '10 at 2:05
Added some more examples, and one with \setmonofont like Will suggested. Bera and Bitstream might be the same thing. I wasn't sure, and I'm still not :P – Mica Nov 16 '10 at 2:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.