Curly Braces in LaTeX (\left\{ x \right\})

{x}\left\{ x \right\}
LaTeX command
\left\{ x \right\}
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Curly braces that stretch to the content height, for set-builder notation and grouped definitions.

Braces must be escaped as \{ and \} because bare braces are LaTeX grouping characters and print nothing. With \left\{ ... \right\} they grow around tall content such as \left\{ \frac{p}{q} : q \neq 0 \right\}. For a set-builder bar that also grows, use \middle| between them. For piecewise definitions, the cases environment already draws the left brace, so you do not need \left\{ ... \right. by hand. In text mode, use \textbraceleft or simply \{ inside math.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

{x∈R  |  x2<2}\left\{ x \in \mathbb{R} \;\middle|\; x^2 < 2 \right\}
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Curly Braces: $\left\{ x \right\}$

\[ \left\{ x \in \mathbb{R} \;\middle|\; x^2 < 2 \right\} \]
\end{document}

Related symbols

All 괄호 및 구분자 →

Frequently asked questions

How do I write Curly Braces in LaTeX?
Type \left\{ x \right\} in math mode, for example $\left\{ x \in \mathbb{R} \;\middle|\; x^2 < 2 \right\}$. It works in plain LaTeX without loading any package.
Which package do I need for \left\{ x \right\}?
None. \left\{ x \right\} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \left\{ x \right\} in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\left\{ x \right\}$ in running text.
Math poweredAI로 LaTeX 작성

최고의 AI LaTeX 편집기, Overleaf 대안

Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움

  • AI로 아름다운 TikZ 다이어그램 생성
  • 이미지를 업로드하고 LaTeX로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기