Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using TeX Gyre Pagella as the main font of a document which is typeset using a font size of 10pt. For the technical terms, I want to replace the default Computer Modern Typewriter with Bera Mono -- mostly because of the dotted zero. The problem is that now the terms marked with \texttt{} appear too large compared to the rest of the text.

\documentclass[pdftex,fontsize=10pt]{scrbook}

\usepackage{tgpagella}        
\usepackage[scaled]{beramono} 
\usepackage[T1]{fontenc}      

\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis non velit in ligula volutpat
condimentum. Now for some technical terms: \texttt{Phasellus}, \texttt{ultrices} aliquam
\texttt{nulla}, in imperdiet magna feugiat sed. Ugh, the technical terms are too large             
compared to the rest of the text. 
\end{document}

How can I tell (pdf)LaTeX to use a smaller font size (9pt?) for the \texttt{} parts only?

share|improve this question
    
Welcome to TeX.SE. –  Peter Grill Nov 7 '12 at 7:35
add comment

1 Answer

up vote 7 down vote accepted

default value for option 'scaled' is '.9. You can set scale to explicit value, e.g., \usepackage[scaled=.7]{beramono}

share|improve this answer
add comment

Your Answer

 
discard

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.