1

Possible Duplicate:
How to make \left, \right pairs of delimiter work over multiple lines?

The following code (from the official User's Guide for the amsmath Package) works:

\begin{equation}
\begin{split}
a& =b+c-d\\
& \quad +e-f\\
& =g+h\\
& =i
\end{split}
\end{equation}

but this one doesn't:

\begin{equation}
\begin{split}
a& =\left\{b+c-d+\\
& \quad +e-f\\
& +g+h\\
& +i\right\}
\end{split}
\end{equation}

It complains with Extra } or forgotten \right. The second snippet tries to enclose the full equation in brackets. How can I do this with \align?

David Carlisle
  • 757,742
  • 3
    Amsmath doesn't bookkeep the delimiters over line breaks. You have to terminate with a virtual dot delimiter. \begin{equation} \begin{split} a& =\left\{b+c-d\right.\& \left.\quad +e-f\right\}\& =g+h\& =i \end{split} \end{equation} – percusse Apr 17 '12 at 22:51
  • Thanks @percusse. If you re-write that as an answer I will accept it. – Amelio Vazquez-Reina Apr 17 '12 at 22:52
  • No problem, egreg found a duplicate so we can all vote for closing :) – percusse Apr 17 '12 at 22:53

0 Answers0