LaTeX: Bold font series with fixed-width family

How to enable bold font series option for my favorite teletype (fixed-width) font family (e.g. {\tt Test \textbf{test} test}) in LaTeX?

The following code should be put in the document’s preamble.

\usepackage{lmodern}
\renewcommand\ttfamily{\usefont{T1}{lmtt}{m}{n}}

Simple, yet effective. :-)


Marek Gągolewski

Tagged with: ,
Posted in Blog/LaTeX