TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Why does the following code give me this error?:

"Extra } or forgotten \right)"

I have been through it and cannot work out why.

share|improve this question

migrated from stackoverflow.com Jul 26 '12 at 16:50

This question came from our site for professional and enthusiast programmers.

Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. – Werner Jul 26 '12 at 17:25
up vote 5 down vote accepted

First of all, you're missing a matching \right delimiter to one of your \left delimiters.

Also, you cannot break \left and \right across lines inside align (or any math environment for that matter). You need to do this manually by using a fake opposing delimiter and introducing the necessary false heights to obtain equivalent delimiters. However, an easier alternative would be to use non-matching "big" operators:

enter image description here

\usepackage{amsmath}% http://ctan.org/pkg/amsmath
  \rlap{$C(t,xxx,\tau,N,X)$}\hspace{2em} & \nonumber \\
    &= N\Phi\sum_{i=1}^{n}
    &\phantom{{}={}} {}+P(t,T_{i-1})\Bigg[

The use of \hspace in the first line is to make the equation fit within the text block width. Also note the use of \phantom{{}={}} to obtain the correct spacing for the second numbered equation.

share|improve this answer
I see! that is very useful to know. Thank you very much! – Mary Jul 25 '12 at 17:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.