How do you make parentheses match height when they're split between lines in LaTeX math?

cheshirekow picture cheshirekow · Jan 2, 2010 · Viewed 19.8k times · Source

Consider the following example

\begin{equation}
    \begin{split}
        f = & \left( \frac{a}{b} + \right. \\
                   & \left. c \right) + d 
    \end{split}
\end{equation}

In the result, the left parenthesis on the first line is very large, because of the fraction inside. In the second line, since there is no fraction, the parenthesis is small.

How can I make the one on the second line match the one on the first line in height?

Answer

Alok Singhal picture Alok Singhal · Jan 3, 2010

You should use \vphantom, it makes a vertical space equal to its argument and no horizontal space:

\begin{equation}
    \begin{split}
        f = & \left( \frac{a}{b} + \right. \\
                   & \left. \vphantom{\frac{a}{b}} c \right) + d 
    \end{split}
\end{equation}

(I recommend \vphantom over \phantom in this case because \phantom adds horizontal space that you don't need.)

For a lot of great advice on typesetting mathematics, have a look at Math mode by Herbert Voß.