I prefer a combination of Linux Libertine for serif, Inconsolata for monospace and Calibri or Linux Biolinum for sans serif. Linux Libertine is burgeoning and has nice ligatures, swashes and all that, including a rather pleasing swashed capital Q. Prior to Libertine, I favoured Cambria for serif, considering it unusual but professional, but eventually decided that its serifs were far too heavy. I also considered Cambria unsuitable from the outset as a maths font, to the point that back when I used Word 2007 I fell back on Microsoft Equation Editor 3.0 (i.e. the equation object available in Office) rather than the built-in equation editor. I'm not sure what font it uses but at the time I considered it nicer than maths set in CM.
Both Inconsolata and Consolas are top-notch monospace fonts.
With the current microtype from TeXlive 2011, you can do the following:
\documentclass{article}
\usepackage{fontspec,microtype}
\defaultfontfeatures{Ligatures=TeX, Scale=MatchLowercase}
\setmainfont[SmallCapsFeatures={LetterSpace=6}, Numbers={Proportional,OldStyle}]{Minion Pro}
\setsansfont[LetterSpace=3, Numbers={Proportional,OldStyle}]{Myriad Pro}
\SetProtrusion
[ name = min-eu2 ]
{ encoding = {EU2},
family = MinionPro }
{
{,} = { ,500},
- = { ,500}
}
\begin{document}
\hsize 3in
When, while the lovely valley teems with vapour around me, and the meridian sun strikes the upper surface of the impenetrable
foliage of my trees, and but a few stray gleams steal into the inner sanctuary, I throw myself down among the tall grass by the
trickling stream; and, as I lie close to the earth, a thousand unknown plants are noticed by me.
\end{document}
LuaTeX with fontspec uses EU2 encoding internally, so all you need to do is the regular microtype setup with encoding EU2.
Best Answer
I found this thread, because I had the same issue and I tested a huge bunch of teletype fonts and got stuck with
cfr-lm
. But loading the wholecfr-lm
package would be overkill so I just did:Which is equivalent to
Showcase
In the following example of a bibliography with
biblatex
the DOI is typeset withcfr-lm
.If you want to typeset source code it might be better to use the tabular version of
cfr-lm
as you usually want to align stuff in your code. Personally I think that lining figures also look better in code. Therefore I'd usewhich is equivalent to
Showcase
This piece of code is taken from another answer I once gave.