Brackets and Parentheses in LaTeX - Complete Guide
Master all types of brackets and parentheses in LaTeX. Learn automatic sizing, manual control, and advanced techniques for mathematical expressions.
Master all types of brackets and parentheses in LaTeX mathematical expressions. This comprehensive guide covers everything from basic parentheses to advanced delimiter sizing techniques, with visual examples for every concept.
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.
\documentclass{article}\usepackage{amsmath}\begin{document}% Parentheses$(a + b)$% Square brackets $[x, y]$% Curly braces (must be escaped)$\{z : z > 0\}$% Angle brackets$\langle u, v \rangle$% Absolute value$|x - y|$% Norm$\|v\|$% Floor and ceiling$\lfloor x \rfloor$ and $\lceil x \rceil$\end{document}
LaTeX can automatically size delimiters to match their content using \left and \right:
Copy
\documentclass{article}\usepackage{amsmath}\begin{document}% Without automatic sizing$(\frac{1}{2})$% With automatic sizing$\left(\frac{1}{2}\right)$% Works with any delimiter type$\left[\frac{x^2}{y}\right]$$\left\{\sqrt{\frac{a}{b}}\right\}$$\left|\sum_{i=1}^n x_i\right|$% Nested fractions$\left(\frac{\frac{a}{b}}{\frac{c}{d}}\right)$\end{document}
Sometimes you need an invisible delimiter to balance the equation:
Copy
% Using \right. for invisible right delimiter$\left\{\begin{array}{ll}x + y = 1 \\x - y = 0\end{array}\right.$% Using \left. for invisible left delimiter$\left.\frac{dy}{dx}\right|_{x=0}$
% Good spacing with \bigl and \bigr$\bigl( x + y \bigr)$% Poor spacing with just \big$\big( x + y \big)$% For better spacing around bars$\left\lvert x \right\rvert$ % Better than |x|
% Instead of manual brackets$|| v ||$% Use semantic commands$\lVert v \rVert$ % Double bars for norm$\lvert x \rvert$ % Single bars for absolute value$\langle u, v \rangle$ % Angle brackets for inner product
LaTeX Cloud Studio automatically handles package loading! The amsmath package is pre-loaded, so all bracket commands work immediately without manual package management.