الأقواس والمحددات

الأقواس المائلة والأرضية والسقفية والمعايير وأزواج المحددات.

LaTeX brackets: braces, angle brackets, floor and norms

LaTeX brackets come in two kinds: the ones you type directly, like (, ), [ and ], and the ones that need a command, like \{ and \} for curly braces, \langle and \rangle for angle brackets, \lfloor and \rfloor for floor, and \lVert and \rVert for a norm. Put \left and \right in front of any pair and LaTeX sizes the brackets to fit what is inside, such as a fraction. Double brackets need the stmaryrd package. The table lists the brackets and delimiters people use most, with the package each one needs; the full list follows below.

Quick reference: the most used brackets

SymbolCommandUsePackageCopy
(ab)\left( \frac{a}{b} \right)
\left( \frac{a}{b} \right)Parentheses that grow to fit the contentbuilt in
{x}\{ x \}
\{ x \}Curly braces (escaped)built in
⟨x⟩\langle x \rangle
\langle x \rangleAngle brackets, inner productbuilt in
⌊x⌋\lfloor x \rfloor
\lfloor x \rfloorFloorbuilt in
⌈x⌉\lceil x \rceil
\lceil x \rceilCeilingbuilt in
∣x∣\lvert x \rvert
\lvert x \rvertAbsolute valueamsmath
∥x∥\lVert x \rVert
\lVert x \rVertNormamsmath
⟦x⟧\llbracket x \rrbracket
\llbracket x \rrbracketDouble square bracketsstmaryrd
(x)\bigl( x \bigr)
\bigl( x \bigr)Manual sizes: \big, \Big, \bigg, \Biggbuilt in
[a,b)[a, b)
[a, b)Half-open intervalbuilt in
a+b⏟n\underbrace{a + b}_{n}
\underbrace{a + b}_{n}Brace under an expression (\overbrace above)built in

Auto-sized absolute values and norms

For absolute values and norms you use often, define paired delimiters once in the preamble with mathtools. Then \abs{x} keeps a fixed size, \abs*{\frac{a}{b}} grows with the content and \abs[\big]{x} picks a size by hand:

\usepackage{mathtools}
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert}

Frequently asked questions about LaTeX brackets

How do I write curly braces in LaTeX?
Curly braces are LaTeX's grouping characters, so a plain { or } is not printed. Escape them: \{ and \} work in text and math, for example $\{1, 2, 3\}$. Use \left\{ and \right\} for braces that grow with their content; \lbrace and \rbrace are named alternatives.
How do I write angle brackets in LaTeX?
Use \langle and \rangle, as in $\langle u, v \rangle$. Do not use the < and > keys: they are relation symbols with a different shape and spacing. For tall content write \left\langle ... \right\rangle.
How do I write double brackets in LaTeX?
Load \usepackage{stmaryrd} and write \llbracket x \rrbracket for the double square brackets ⟦x⟧ used for semantics and integer intervals. Without the package, [\![ x ]\!] fakes them by pulling two brackets together with a negative thin space.
⟨\langle
⟩\rangle
⟨x⟩\langle x \rangle

Angle Brackets

\langle x \rangle
⌈\lceil
⌉\rceil
⌈x⌉\lceil x \rceil

Ceiling

\lceil x \rceil
⌊\lfloor

Floor Left

\lfloor
⌋\rfloor
⌊x⌋\lfloor x \rfloor

Floor

\lfloor x \rfloor
∥x∥\| x \|

Norm

\| x \|
⟦\llbracket
⟧\rrbracket
⟦x⟧\llbracket x \rrbracket

Double Brackets

\llbracket x \rrbracket
(x)\left( x \right)

Parentheses

\left( x \right)
[x]\left[ x \right]

Square Brackets

\left[ x \right]
{x}\left\{ x \right\}

Curly Braces

\left\{ x \right\}
∣x∣\left| x \right|

Vertical Bar

\left| x \right|
(x)\Big( x \Big)

Big Parentheses

\Big( x \Big)
(x)\Bigg( x \Bigg)

Bigg Parentheses

\Bigg( x \Bigg)
(x\left( x \right.

Left Only

\left( x \right.
x)\left. x \right)

Right Only

\left. x \right)
[x)\left[ x \right)

Mixed Brackets

\left[ x \right)