3

This is related to my early question, but with some changes:

\documentclass[11pt,twoside,a4paper]{article}
\usepackage{amsmath}
\usepackage{enumerate}
 \begin{document}
  \begin{multline}
 E(y_{i})=
\left(
 x_{2i}'\beta_{2}+
\frac{\sigma}{\Psi\left(x_{1i}'\beta_{1},\tfrac{x_{2i}'\beta_{2}}{\sigma},\rho\right)}
\left[
\phi\left(\tfrac{x_{2i}'\beta_{2}}{\sigma}\right)\Phi\left(\tfrac{x_{1i}'\beta_{1}-   \rho\tfrac{x_{2i}'\beta_{2}}{\sigma}}{\left(1-\rho^{2}\right)^{1/2}}\right)\right.\\
\qquad 
+ \left. 
\rho\phi(x_{1i}'\beta_{1})\Phi\left(\tfrac{\tfrac{x_{2i}'\beta_{2}}{\sigma}-\rho x_{1i}'\beta_{1}}{\left(1-\rho^{2}\right)^{1/2}}\right)
\right]
\right)
\times\Psi\left(x_{1i}'\beta_{1},\tfrac{x_{2i}'\beta_{2}}{\sigma},\rho
\right)
\end{multline} 
\end{document}

I have no idea why this is generating an error. !Missing right \.inserted

4
  • Please always post complete documents showing all required packages, not just fragments Dec 1, 2013 at 21:45
  • ! LaTeX Error: Missing \begin{document}. Dec 1, 2013 at 21:53
  • I am sorry. I do have that in the original code. I missed here.
    – Metrics
    Dec 1, 2013 at 21:56
  • You are missing a \right. just before \\ and a \left. just after it, but in this case they don't work well because of the \\ itself Dec 1, 2013 at 21:59

3 Answers 3

2

If you really had to use \left and \right... Additional ones marked.

\documentclass[11pt,twoside,a4paper]{article}
\usepackage{amsmath}
\usepackage{enumerate}
 \begin{document}
  \begin{multline}
 E(y_{i})=
\left(
 x_{2i}'\beta_{2}+
\frac{\sigma}{\Psi\left(
x_{1i}'\beta_{1},\tfrac{x_{2i}'\beta_{2}}{\sigma},\rho
\right)}
\left[
\phi\left(
\tfrac{x_{2i}'\beta_{2}}{\sigma}
\right)\Phi\left(
\tfrac{x_{1i}'\beta_{1}-   \rho\tfrac{x_{2i}'\beta_{2}}{\sigma}}{\left(1-\rho^{2}\right)^{1/2}}
\right)
\right.
\right. % PS
\\
\qquad 
+ \left. 
\left. %PS
\rho\phi(x_{1i}'\beta_{1})\Phi\left(
\tfrac{\tfrac{x_{2i}'\beta_{2}}{\sigma}-\rho x_{1i}'\beta_{1}}{\left(1-\rho^{2}\right)^{1/2}}
\right)
\right]
\right)
\times\Psi\left(
x_{1i}'\beta_{1},\tfrac{x_{2i}'\beta_{2}}{\sigma},\rho
\right)
\end{multline} 
\end{document}

enter image description here

0
4

You'd got one left/right pair mis-matched but using \left( zzz\right. is not optimal anyway as the matching brackets will not be given the same size as the open is sized on the expression before \\ and the close is sized on the expression after \\. Using fixed size delimiters makes it easier to avoid the error and produces matching delimiters:

enter image description here

\documentclass[11pt,twoside,a4paper]{article}
\usepackage{amsmath}
\usepackage{enumerate}
\begin{document}
  \begin{multline}
 E(y_{i})=
\Bigl(
\bigl(
 x_{2i}'\beta_{2}+
\frac{\sigma}{\Psi (x_{1i}'\beta_{1},\tfrac{x_{2i}'\beta_{2}}{\sigma},\rho)}
\bigl[
\phi(\tfrac{x_{2i}'\beta_{2}}{\sigma})\Phi (\tfrac{x_{1i}'\beta_{1}-   \rho\tfrac{x_{2i}'\beta_{2}}{\sigma}}{(1-\rho^{2})^{1/2}})\\
\qquad 
+  
\rho\phi(x_{1i}'\beta_{1})\Phi(\tfrac{\tfrac{x_{2i}'\beta_{2}}{\sigma}-\rho x_{1i}'\beta_{1}}{(1-\rho^{2})^{1/2}})
\bigr]
\bigr)
\times\Psi(x_{1i}'\beta_{1},\tfrac{x_{2i}'\beta_{2}}{\sigma},\rho)
\Bigr)
\end{multline} 
\end{document}
4
  • Not really good looking... Dec 1, 2013 at 22:05
  • @karlkoeller yes well once the error is fixed and the OP can see the expression, then work can be put into adjusting the setting, but that's a different question/ Dec 1, 2013 at 22:07
  • Anyway the first and the last parenthesis are not needed. Dec 1, 2013 at 22:09
  • @karlkoeller well it's better to have them both than just one (which was the source of the original error:-) Dec 1, 2013 at 22:28
0

Just for completion, know that you can avoid \left[ \right] by using \Big[ \Big] or \Bigg[ \Bigg] to manually get the desired size of brackets.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .