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'm currently working on my dissertation and am using Palatino for text with the Euler font for mathematics. As part of my work I'll be presenting quite a few code examples, and was wondering if someone could suggest a good monospace font to go with them. As an alternative I was thinking of using the Concrete Roman and Euler font package (ala Knuth's Concrete Mathematics).

share|improve this question
Have a look at tex.stackexchange.com/questions/18715/… – lockstep Apr 5 '12 at 5:53
Welcome to TeX.SE. I removed 'thanks' from your post since we omit this. Instead, you should up-vote and accept the answers, giving the answerer the forum reputation. – yo' Apr 5 '12 at 7:04
Do you really need a monospace font? Try using a reduced size of Palatino: I find that this often works well, especially if you use the flexible column formatting of the listings package to maintain column alignment (if needed). Palatino Sans might also be a very nice option (if you use XeLaTeX). – mforbes Apr 5 '12 at 7:31
up vote 11 down vote accepted

I personally think that Knuth's typewriter fonts are still very good, an alternative is charter and bera mono if you can get them.

 \def\rmdefault{bch} % not scaled

Also check Different approach to literate programming for LaTeX for some typesetting settings for listings.

share|improve this answer
If blg is a monospaced font, shouldn't \texttt{....................}\par \texttt{xxxxxxxxxxxxxxxxxxx.} produce two equally wide lines? – Steven B. Segletes yesterday
@StevenB.Segletes Not for punctuation against letters. – Yiannis Lazarides yesterday
Even \texttt{mmmmmmmmmmmmmmmmmmm}\par \texttt{xxxxxxxxxxxxxxxxxxx} is not equal width, where punctuation is not involved. – Steven B. Segletes yesterday

Inconsolata might be a choice. There is also a package for TeX support.

It is a font "designed for code listings and the like, in print," posing itself as a better alternative since many other fonts are designed for screen and not for the high resolutions in print.

\texttt{This is Inconsolata.}

As seen it replaces the \tt, but this behavior can be changed.

share|improve this answer
It's a nice font, but I find slightly disturbing the fact that the " is slanted to the right... It looks weird when surrounding a string. – Antoine Oct 14 '15 at 0:31

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.