58

I would like to type something like this:

\begin{equation}

  \begin{split}

    \left( ba ba ba \\

    ba ba ba \right)

  \end{split}

\end{equation}

But it contains error; I think it's because \left( and \right) should be in the same line. How can I type something like this, but in different lines? I think one of the solution is replaced \left( and \right) by \Big( and \Big). But I am not satisfied with it since \Big( is not "big" enough compared to \left(.

2
  • 4
    How about \biggl( ... \biggr) or \Biggl( ... \Biggr)? Mar 29 '12 at 6:00
  • 1
    ^ I seriously suggest everyone struggling with the same problem as OP to use \big( notation. Syntax: ( \big( \Big( \bigg( \Bigg(
    – Ufos
    Aug 24 '16 at 11:25
63

if you want the parentheses of the same height, use \vphantom and a combination of \left( ... \right. \\ \left. ... \right)

\documentclass{article}
\usepackage{amsmath}
\begin{document}

\begin{equation}
    \begin{split}
    \left( \int_1^2 ba ba \mathrm da \right. \\
    \left. ba ba ba \vphantom{\int_1^2} \right)% use height of \int
    \end{split}
\end{equation}

\end{document}

enter image description here

2
  • 2
    The \vphantom command (short for "vertical phantom") tells LaTeX to makes an invisible box that is the height of its contents latexref.xyz/….
    – Paul Wintz
    Mar 4 at 20:22
  • 2
    Is there a way to do this automatically, say, if we have \left\right inside a macro?
    – Paul Wintz
    Mar 4 at 20:23
11

Try this:

\documentclass{minimal}
\usepackage{amsmath}
\begin{document}

\begin{equation}
    \begin{split}
    \left( ba ba ba \right. \\
    \left. ba ba ba \right)
    \end{split}
\end{equation}

\end{document}

You were right about the fact that the \left and \right should be on the same line.

1
  • 18
    This will not give parentheses of the same size if the height of the contents on the two lines is different. Mar 29 '12 at 8:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.