0

This question already has an answer here:

Is it possible to make listings and especially inline listings font size to be saner? It appears that the font size is chosen so that capital letters of the monospace font are full height of a line. It would be nice if the font size was chosen so that lowercase letters of the monospace font match the surrounding text's font's lowercase letters in height. Is this doable?

marked as duplicate by jub0bs, Peter Jansson, Claudio Fiandrino, Svend Tveskæg, Jesse Mar 2 '14 at 12:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Using \setmonofont[Scale=MatchUppercase]{DejaVu Sans Mono} actually looks the best. – wilx Aug 22 '13 at 13:22
1

Using \setmonofont[Scale=MatchUppercase]{DejaVu Sans Mono} (or MatchLowercase) actually solves the problem.

Not the answer you're looking for? Browse other questions tagged or ask your own question.