13

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

To illustrate:

{\tt With tt:~ \{}

\verb+With verb: {+

yields

2
  • 3
    Add \usepackage[T1]{fontenc} to your document.
    – egreg
    Jan 11, 2012 at 15:33
  • 4
    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. Jan 11, 2012 at 15:34

1 Answer 1

13

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

2
  • 2
    Well, \{ is taken from the OMS symbol font (cmsy10) by default.
    – Leo Liu
    Jan 12, 2012 at 2:42
  • right, that was what I wanted to say ...
    – user2478
    Jan 12, 2012 at 8:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .