Quick start: LaTeX provides various bracket types and automatic sizing with
\left
and \right
. For basic parentheses use ()
, for square brackets []
, and for curly braces \{\}
.Prerequisites: Basic LaTeX math mode knowledge. See Mathematical Expressions for math mode basics.What You’ll Learn
- ✅ All bracket and delimiter types in LaTeX
- ✅ Automatic sizing with
\left
and\right
- ✅ Manual size control for fine-tuning
- ✅ Multi-line equations with balanced delimiters
- ✅ Special cases and advanced techniques
- ✅ Common errors and how to fix them
- ✅ Best practices for readable mathematics
Types of Brackets and Delimiters
Complete Visual Reference
All LaTeX Bracket Types
Type | LaTeX Code | Output | Common Use |
---|---|---|---|
Parentheses | ( ) | ( ) | General grouping |
Square brackets | [ ] | [ ] | Arrays, intervals |
Curly braces | { } | Sets, systems | |
Angle brackets | \langle \rangle | ⟨ ⟩ | Inner products |
Vertical bars | | | or \vert \vert | | | | Absolute value |
Double bars | | | or \Vert \Vert | ‖ ‖ | Norms |
Floor | \lfloor \rfloor | ⌊ ⌋ | Floor function |
Ceiling | \lceil \rceil | ⌈ ⌉ | Ceiling function |
Basic Examples
(a + b)
[x, y]
{z : z > 0}
⟨u, v⟩
|x − y|
‖v‖
⌊x⌋ and ⌈x⌉
Automatic Delimiter Sizing
The \left
and \right
Commands
LaTeX can automatically size delimiters to match their content using \left
and \right
:
Without sizing:(12)
With sizing:(12)
[x²y]
{√ab}
Important Rules for \left
and \right
Critical: Every
\left
must have a matching \right
in the same math environment. They must be balanced like opening and closing HTML tags.Invisible Delimiters
Sometimes you need an invisible delimiter to balance the equation:{
x + y = 1
x − y = 0
dydx|x=0
Manual Size Control
Size Commands
When automatic sizing doesn’t give the desired result, use manual size commands:Delimiter Size Commands (smallest to largest)
\big | 50% larger than normal |
\Big | 2x normal size |
\bigg | 2.5x normal size |
\Bigg | 3x normal size |
Size Comparison
Normal
(
1
2
)\big
(
1
2
)\Big
(
1
2
)\bigg
(
1
2
)\Bigg
(
1
2
)Left and Right Variants
Use
l
and r
suffixes for proper spacing: \bigl(
, \bigr)
, \Bigl[
, \Bigr]
, etc. This ensures correct spacing around the delimiters.Advanced Techniques
Nested Brackets
Poor: [1 + [2 + [3 + 4]]]
Better:
[1 + [2 + [3 + 4]]]
Best:
[1 + [2 + [3 + 4]]]
Multi-line Equations with Brackets
For equations that span multiple lines, you need special handling:f(x) = [ x² + 2x
+ 1 ]
g(x) = [ x³ + 3x²
]
+ 3x + 1 f(x) = {
x² if x ≥ 0
−x² if x < 0
Matrix Delimiters
pmatrix
(a | b |
c | d |
bmatrix
[a | b |
c | d |
Bmatrix
{a | b |
c | d |
vmatrix
|a | b |
c | d |
Vmatrix
‖a | b |
c | d |
Special Use Cases
Set Notation
A = {1, 2, 3, 4, 5}
B = {x ∈ ℝ : x² < 4}
C = {x ∈ ℤ :
x > 0
x is even
}∅ = {}
Interval Notation
Physics and Engineering
Common Errors and Solutions
Error: Missing \right. inserted
Error: Missing \right. inserted
Problem: Every
\left
needs a matching \right
, even across line breaks.Solution: Use \right.
for an invisible right delimiter:Brackets too large with \left...\right
Brackets too large with \left...\right
Problem: Automatic sizing makes brackets unnecessarily large.Solution: Use manual sizing instead:
Curly braces not showing
Curly braces not showing
Problem:
{
and }
have special meaning in LaTeX.Solution: Escape them with backslash:Mismatched bracket sizes in aligned equations
Mismatched bracket sizes in aligned equations
Problem: Brackets don’t match across aligned lines.Solution: Use phantom brackets:
Best Practices
1. Choose the Right Delimiter
✅ Good Delimiter Choices
- Parentheses: General grouping, function arguments
- Square brackets: Matrices, commutators, intervals
- Curly braces: Sets, systems of equations
- Angle brackets: Inner products, averages
- Vertical bars: Absolute values, determinants, norms
2. Sizing Guidelines
- Use
\left...\right
for complex expressions with varying heights - Use manual sizing (
\big
,\Big
, etc.) for simple expressions - Be consistent within the same document
- Don’t oversize—readability is key
3. Spacing Considerations
4. Semantic Markup
Use meaningful commands when available:Quick Reference Card
Brackets Quick Reference
Related Topics
Mathematical Expressions
Learn math mode basics and expressions
Matrices Guide
Complete guide to matrices and arrays
Equations
Multi-line and numbered equations
Math Symbols
Comprehensive symbol reference
LaTeX Cloud Studio automatically handles package loading! The
amsmath
package is pre-loaded, so all bracket commands work immediately without manual package management.