Take the 2-minute tour ×
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.

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

To illustrate:

{\tt With tt:~ \{}

\verb+With verb: {+

yields

share|improve this question
3  
Add \usepackage[T1]{fontenc} to your document. –  egreg Jan 11 '12 at 15:33
3  
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
add comment

1 Answer

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
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 ... –  Herbert Jan 12 '12 at 8:53
add comment

Your Answer

 
discard

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.