Math & ScienceLine Break for overlong Equation

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
rensw
Posts: 2
Joined: Mon Nov 26, 2012 3:29 pm

Line Break for overlong Equation

Post by rensw »

Hi,

my equation is too long and I already tried a multi-line equation and I used the amsmath package to use the split environment but still I get an error. Can someone help me, because my equation is too long:

Code: Select all

\begin{equation}
\min\limits_{\boldsymbol{\omega}_{T-2}} \boldsymbol{\omega}'_{T-2}\boldsymbol{\Sigma}\boldsymbol{\omega}_{T-2} + \left[\frac{c(m-m_{T-2})^2 - 2c\boldsymbol{\omega}'_{T-2}E_{T-2}[\boldsymbol{r}_{T-1}](m - m_{T-2}) + c\boldsymbol{\omega}'_{T-2}E_{T-2}[\boldsymbol{r}_{T-1}\boldsymbol{r}_{T-1}']\boldsymbol{\omega}_{T-2} - 2b((m - m_{T-2} - \boldsymbol{\omega}'_{T-2}E_{T-2}[\boldsymbol{r}_{T-1}]) +a}{ac - b^2}\right]
\end{equation}
Thanks in advance!
Last edited by Stefan Kottwitz on Mon Nov 26, 2012 3:57 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Line Break for overlong Equation

Post by localghost »

rensw wrote:[…] my equation is too long and I already tried a multi-line equation and I used the amsmath package to use the split environment but still I get an error. […]
So you should be able to show what you have tried so far in form of a self-contained and minimal example along with the exact error messages from the log file (*.log). In the code you presented there is not a bit of amsmath and its split environment.


Best regards and welcome to the board
Thorsten
rensw
Posts: 2
Joined: Mon Nov 26, 2012 3:29 pm

Line Break for overlong Equation

Post by rensw »

Okay, I tried to get the fraction out of the equation because latex cannot split a fraction, but still I get this error message:

Code: Select all

Overfull \hbox (199.24393pt too wide) in paragraph at lines 99--99
$\OT1/lmr/m/n/10.95 + $[][][]$|$$|$ 
! Missing } inserted.
<inserted text> 
                }
l.106 \end{align*}
                  
? 

Can someone please help me?

Code: Select all

\begin{align*}
\min\limits_{\boldsymbol{\omega}_{T-2}} \boldsymbol{\omega}'_{T-2}\boldsymbol{\Sigma}\boldsymbol{\omega}_{T-2} +\\ &\frac{1}{ac - b^2}\\
&\left[{c(m-m_{T-2})^2 - 2c\boldsymbol{\omega}'_{T-2}E_{T-2}[\boldsymbol{r}_{T-1}](m - m_{T-2})\\
&+  c\boldsymbol{\omega}'_{T-2}E_{T-2}[\boldsymbol{r}_{T-1}\boldsymbol{r}_{T-1}']\boldsymbol{\omega}_{T-2} -
2b((m - m_{T-2}) - \boldsymbol{\omega}'_{T-2}E_{T-2}[\boldsymbol{r}_{T-1}]) +a}\right]
\end{align*}
Attachments
Thesis.log
(53.62 KiB) Downloaded 232 times
Last edited by Stefan Kottwitz on Tue Nov 27, 2012 4:02 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Line Break for overlong Equation

Post by Stefan Kottwitz »

Please have a look at the link which Thorsten already provided and/or here: Infominimal working example. A useful example contains more than just a code snippet, it should begin with \documentclass, end with \end{document}, i.e. should be complete, either compilable or raising the error. Perhaps you would like to get specific code, so try to provide specific really testable code.

Regarding your problem: you cannot use a \left and \right pair over several lines, and you cannot group by braces over several lines, this way hides the & align symbol in the group. So remove those delimiters, or replace by \big, \Big etc.

Stefan
LaTeX.org admin
Post Reply