Brackets you type go in at their normal size, which is right around and wrong around a fraction. This lesson is about making them fit, and about the brackets that need a command.
The problem
Typed brackets stay the height of a letter, so they look lost next to anything tall:
\left and \right
Put \left before the opening bracket and \right before the closing one, and both grow to fit what is between them:
They always come in pairs: every \left needs a \right later in the same formula, or LaTeX stops with an error. The two do not have to match, so \left[ 0, 1 \right) is fine.
Square brackets and curly braces
Square brackets work the same way: \left[ ... \right]. Curly braces are different, because LaTeX uses { } for grouping: to print one, put a backslash before it, \{ and \}, or \left\{ and \right\} to make them grow.
Absolute values and norms
A vertical bar is typed as it is: |x| gives , and \left| ... \right| grows. Two bars for a norm or a length are \|: \|v\| gives .
One side only
\left. is an invisible bracket, for when only one side should show. The bar used to evaluate an integral is the usual example:
Sizes by hand
\left and \right choose a size for you. To choose it yourself, use \big, \Big, \bigg or \Bigg before a bracket, from a little larger to very large: \Big( x \Big). This helps when a bracket opens on one line of a long equation and closes on the next, where \left and \right cannot pair up.
Other brackets
- Angle brackets:
\langle u, v \ranglegives . - Floor and ceiling:
\lfloor x \rfloorgives , and\lceil x \rceilgives .
All of them grow with \left and \right too.
Practise
Where the brackets must grow, plain ones are marked wrong.
\left(before the fraction,\right)after it, then the power.\left( \frac{a}{b} \right)^2\left[and\right].\left[ x^2 + \frac{1}{x} \right]Bars are typed as they are.
|x - 3| < 2Bars that grow:
\left|and\right|.\left| \frac{1}{x} \right|Curly braces need a backslash:
\{and\}.\{ x : x > 0 \}\left.is an invisible bracket; the bar after it takes the limits.\left. x^2 \right|_0^1\langleand\rangle.\langle u, v \rangle\lfloorand\rfloor.\lfloor 2.7 \rfloor = 2
In short
\leftand\rightmake brackets grow to fit, and always come in pairs.- Curly braces need a backslash:
\{ \}. Bars:|x|, and\|v\|for a norm. \left.is an invisible bracket;\bigto\Biggchoose a size by hand.
Next, in lesson 6: sums, integrals and limits.