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

  • 3
    Add \usepackage[T1]{fontenc} to your document. – egreg Jan 11 '12 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. – Martin Scharrer Jan 11 '12 at 15:34
13

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

  • 2
    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 ... – user2478 Jan 12 '12 at 8:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.