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 looking to use lcmtt mentioned here as my default typewriter font, but the scaling is way out of proportion with the rest of the text. I've used the following commands to enable the font:

\usepackage[T1]{fontenc}
\renewcommand*\ttdefault{lcmtt}

How can I scale down this \tt font document wide?

...sorry if this is trivial, but I can't seem to crack it.

share|improve this question
add comment

2 Answers

up vote 9 down vote accepted

You could use \DeclareFontShape for the scaling. Example:

\documentclass{article}
\usepackage[T1]{fontenc}
\makeatletter
\DeclareFontFamily{T1}{lcmtt}{\hyphenchar\font\m@ne}
\makeatother
\renewcommand*\ttdefault{lcmtt}
\DeclareFontShape{T1}{lcmtt}{m}{n}{%
  <13.82><16.59><10.8><23.89><28.66><34.4><41.28>%
  ecltt8}{}
\begin{document}
Text \texttt{Text}
\end{document}

Here I changed only the original value found in t1lcmtt.fd from 19.907 to 10.8, the rest I kept unchanged. Adjust this value 10.8 to see the scaling change.

roman and typewriter

share|improve this answer
add comment

Using the anyfontsize package:

enter image description here

\documentclass{article}
\usepackage[T1]{fontenc}% http://ctan.org/pkg/fontenc
\usepackage{anyfontsize}% http://ctan.org/pkg/anyfontsize
\begin{document}
This is regular text. \texttt{This is typewriter text.} \par
\renewcommand*\ttdefault{lcmtt}
This is regular text. \texttt{This is typewriter text.}
\end{document}
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.