I like the beramono font, and I want to use it for code listings (using the listings
package). I want the standard CMR tt font for typewriter font in the body of the text.
I could do this using XeLaTeX, by importing beramono using fontspec
- but I can't find the proper name of the font! All I can find is (for LaTeX):
\usepackage[T1]{fontenc}
\usepackage{beramono}
which is all very well, but it changes all typewriter fonts, not just the ones in the listings. What I want is to use XeLaTeX with something like
\usepackage{fontspec}
\newfontface\lstmono[scale=0.9]{The Proper Name for Beramono}
and then in my listing preamble include
basicstyle=\lstmono
However, I don't know the proper name for beramono. The command fc-list
has not been much help. Can beramono be used with XeLaTeX?
fc-list
will only help if it is installed for your system. You probably only have it installed right now for TeX.basicstyle=\small\fontfamily{fvm}\selecfont
does the job...