I'd like to select a new font for the monospaced text such as those parts within a \texttt{}
and code snippets in the minted
context. (As far as I can tell, minted
just uses the document's default typewriter font, so I don't think I need to touch its settings.) I just want to change to another monospaced font that looks all right and has a normal tilde character. How do I do that?
[Tex/LaTex] How to set the default typewriter font
fonts
Related Question
- [Tex/LaTex] Using libertine Sans Serif font along with LaTeX typewriter default font
- [Tex/LaTex] Can’t apply monospaced font to listings (when using pdflatex)
- [Tex/LaTex] How to select monospaced numerals for tables only when using mathspec
- [Tex/LaTex] What math font is a good complement for Charter font
Best Answer
It's the
\ttdefault
command which normally takes care of this.But indeed it's usually best to let dedicated packages as
beramamono
do this, since there can be a lot of subtleties behind fonts (of which I'm often not aware myself :-)