# How to mix accents from different fonts in LaTeX? [duplicate]

Possible Duplicate:
How to mix accents from different fonts?

In TeXBook, exercise 9.6 Knuth asks to type Pal Erdos with needed accents in \tt font.

The answer from the key is {\tt P\'al Erd{\bf\H{\tt o}}s}.

However this technique doesn't work in LaTeX. How to apply this to LaTeX?

-

## marked as duplicate by Joseph Wright♦Jul 19 '11 at 11:16

Also note that this might not be required for LaTeX at all. Simply load a modern font. Try \usepackage[T1]{fontenc}\usepackage{lmodern}. The \H macro is defined differently by plainTeX and LaTeX. – Martin Scharrer Jul 18 '11 at 9:50
{\ttfamily P\'al Erd{\normalfont\bfseries\H{\ttfamily o}}s}