[Tex/LaTex] “! paragraph ended before \align was complete”


The following is the piece of code that was working right before I made a few small minor changes.

\langle \prod_{i=1}^{n} \delta_i ^{n_i} y^{m_i}_i  \rangle 
= \sum _ {a_{i=1...n} = 0}^{n_{i=1...n}}   
  \sum_{b_{i=1...n} = 0} ^{m_{i=1...n}}     
  \prod_{i=1}^{n} \left [ ^{n_i}C_{a_i} ( \sum _ {\rho_{\{a_{1\leq i \leq n}\}}}   
  \prod _{B \in \rho_{\{ a_{1 \leq i \leq n} \}} 
  \langle \delta_i ^{\vert B \vert} \rangle _c ) ^{m_i}C_{b_i} 
  ( \sum _ {\rho_{\{b_{1\leq i\leq n}\}}} 
  \prod _{B \in \rho_{\{b_{1\leq i \leq n} \}}} 
  \langle y_i ^{\vert B \vert} \rangle_c ) \right ] \langle 
  \prod_{i=1}^{n} \delta_i ^{n_i - a_i} y_i ^{m_i - b_i} \rangle _{nzl}
  • Also can I get the innermost pair of $( )$ brackets to be large using \left and \right?

Best Answer

You're missing a closing curly brace to delimit the subscript of the third \prod expression.

In the code below, I've also (i) inserted a line break, (ii) increased the sizes of some of the fences, and (iii) replaced ... with ,\dots,. Note that the size of the fences is deliberately set so as not to span the subscripts and superscripts of the sum and product symbols.

enter image description here

\usepackage[margin=1in]{geometry} % use whatever page margins are right for you
\biggl\langle \prod_{i=1}^{n} \delta_i ^{n_i} y^{m_i}_i \biggr\rangle 
\sum _ {a_{i=1,\dots, n} = 0}^{n_{i=1,\dots, n}} 
\sum_{b_{i=1,\dots, n} = 0} ^{m_{i=1,\dots, n}} 
\prod_{i=1}^{n} \Bigg[
  {}^{n_i}C_{a_i} \biggl(
    \sum _ {\rho_{\{a_{1\leq i \leq n}\}}} 
    \prod _{B \in \rho_{\{ a_{1 \leq i \leq n} \}}} 
    \bigl\langle \delta_i ^{\vert B \vert} \bigr\rangle _c 
  \biggr) ^{m_i}\notag\\ 
 &\quad \times C_{b_i}
  \biggr( \sum _ {\rho_{\{b_{1\leq i\leq n}\}}} 
    \prod _{B \in \rho_{\{b_{1\leq i \leq n} \}}} 
    \langle y_i ^{\lvert B \rvert} \rangle_c 
  \biggr) \Bigg] 
    \prod_{i=1}^{n} \delta_i ^{n_i - a_i} y_i ^{m_i - b_i} 
  \biggr\rangle _{\text{nzl}}
Related Question