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.

I need to get {}. So what is wrong with the command $ \left\lbrace \left\rbrace $ ?

share|improve this question
4  
you have two \left and no \right –  David Carlisle Feb 7 at 16:54
2  
Just being curious, why wouldn't you use $\{\}$? –  Nico Feb 7 at 16:56
    
have a look here: tex.stackexchange.com/questions/2607/… –  bene Feb 7 at 17:19

1 Answer 1

up vote 5 down vote accepted

As mentioned above you have \left \right not applied correctly. A good answer to the application, you can find here. On CTAN, check: beginlatex – A beginner's guide to LaTeX. This guide, now known as “For­mat­ting in­for­ma­tion”, is a well-re­spected in­tro­duc­tion to the use of LaTeX.

You can manipulate the distance between brackets. With \left and \right command the clamp is adjusted dynamically. See code.

enter image description here

\documentclass{article} 
\usepackage{amsmath} 
\begin{document}
\obeylines
$\{\}$
$\{\,\}$
$\{\:\}$
$\{\;\}$
$\{\quad\}$
$\{\qquad\}$\\
$\{A + B = \frac{1}{2}\left[ \frac{\frac{1}{2}}{\frac{1}{2}} \right]\}$\\
$A+B=\left\{\frac{1}{\frac{a b}{c}}\right\}$\\
$A+B=\left\{\frac{\frac{A+B}{\sin (x)}+1}{A+\frac{C+D}{x^{1/y}}}\right\}$
\end{document} 
share|improve this answer
    
@Werner \obeylines ... smart hint. –  Lou Feb 7 at 18:55

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.