65

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(.

Stefan Kottwitz
  • 231,401
Paul
  • 1,407

2 Answers2

70

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

  • 3
    The \vphantom command (short for "vertical phantom") tells LaTeX to makes an invisible box that is the height of its contents https://latexref.xyz/_005cphantom-_0026-_005cvphantom-_0026-_005chphantom.html#:~:text=The%20%5Cvphantom%7Ba%5E3,of%20the%20use%20of%20%5Cvphantom%20. – Paul Wintz Mar 04 '21 at 20:22
  • 3
    Is there a way to do this automatically, say, if we have \left\right inside a macro? – Paul Wintz Mar 04 '21 at 20:23
  • @PaulWintz I wrote a macro here: https://tex.stackexchange.com/a/686204 . The macro is for \[...\] environments, but it should be simple to modify to work for other environments, including \begin{equation}...\end{equation}. – xFioraMstr18 May 20 '23 at 00:09
14

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.

David Carlisle
  • 757,742
Frits
  • 909