# Alternative monospace fonts

My document uses the `txfonts` package, which provides Times Roman, Helvetica and what appears to be a facsimile of Courier.

However, I dislike the monospace font and find it to be particularly ugly. I am therefore interested in alternatives that ship as part of texlive. Bera mono is nice however I am more in the market for a serif monospace font as opposed to sans serif.

Any ideas/suggestions?

-

From the Latex Font Catalogue: typewriter fonts, which are not all typewriter fonts, but I think they are all monospaced.

-

I like Inconsolata like Khaled does. It's monospaced and it supports several encodings including T1, OT1 and LY1.

Just load inconsolata.sty, you could additionally specify a scaling option `[scaled=factor]`.

Here's an example how the font looks like, taken from my blog:

-
I really like `inconsolata` and I use it in all my editors. The problem however, is that the version from google fonts has the italic/slanted but the latex version lacks slanted. Am I wrong? –  Pouya Jun 5 at 10:18

I think most of the easily available monospaced serif (as you asked) typefaces have already been mentioned. One worthy typeface that hasn't yet is Gyre Cursor. Although it doesn't ship with TeX Live, it's very easy to obtain and install. I find lots of use for it in small blocks of running text, especially `\url`'s. It's a nicely reworked `courier` drop-in (however, on that front, I'm guessing you might find it "particularly ugly" :)).

I know you asked for typefaces from the TeX Live distro, but as I have a minor love affair going right now with Adobe's `ITC American Typewriter`, I can't resist mentioning this very attractive font set (see sample below), if only to provide a look at a `tt` typeface that is not, to my eyes, "particularly ugly." Only for running text, however; I certainly wouldn't use it for listings.

-
While certainly nice, this is not a monospace font - just check the width of the "m" and the "i" in "economic". –  lockstep Aug 24 '10 at 13:53
Yes, yes, it's a `tt` typeface, not a true monospace font. I appended it to my response because a) I find lots of use for it, and b) it might help out/inspire others who might one day be reading through this posting. Perhaps not "technically" on-topic, but nevertheless maybe "aesthetically" useful given the nature of all of us drawn to producing beautiful TeX/LaTeX created print. I sure hope that's OK by all :)) –  Geoffrey Jones Aug 24 '10 at 14:27
TeX Gyre Is included in recent tex live distributions. –  Will Robertson Aug 24 '10 at 23:49

Have a look at the luximono font. (Note that it is part of MiKTeX, but not of TeX Live.)

-
In TeX Live `luximono` can easily be installed by `getnonfreefonts luximono` at the command prompt. Use `getnonfreefonts-sys` to install it to \$TEXMFLOCAL instead of \$TEXMFHOME. Use the option `-a` to install all available fonts (arial-urw, classico, dayroman, eurofont, garamond, lettergothic, luximono, vntex-nonfree, webomints at the moment). –  Stefan Kottwitz Aug 24 '10 at 12:55
@StefanKottwitz Any suggestions on how to do that on Windows? –  Canageek Oct 20 '11 at 20:30

I personally prefer either Inconsolata or CM typewriter (usually using LM's).

-
Could you expand your answer a bit, e.g. with a MWE on how to use these fonts? –  doncherry May 1 '12 at 16:44

My favourite one is `ubuntu mono`. You can easily use with XeLaTeX or LuaLaTeX and `fontspec`!

-