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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Why is {\tt \{} typeset as an ordinary { and not the same as for instance \verb+{+?

To illustrate:

{\tt With tt:~ \{}

\verb+With verb: {+


share|improve this question
Add \usepackage[T1]{fontenc} to your document. – egreg Jan 11 '12 at 15:33
You shouldn't use \tt anyway, but either \texttt{..} or \ttfamily. The short font macros like \tt are only still present for backwards compatibility to LaTeX2.0. – Martin Scharrer Jan 11 '12 at 15:34
Thanks guys. Both comments very helpful! :D – aioobe Jan 11 '12 at 15:36
up vote 13 down vote accepted

use \usepackage[T1]{fontenc} and it will be the same. Without the T1 fontencoding the \{ is taken from the OMS symbol font.

share|improve this answer
Well, \{ is taken from the OMS symbol font (cmsy10) by default. – Leo Liu Jan 12 '12 at 2:42
right, that was what I wanted to say ... – Herbert Jan 12 '12 at 8:53

Your Answer


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.