Re: How to use LaTeX

Have any question, suggestion, or problem with this site? Post it here.
sourav das
Posts:461
Joined:Wed Dec 15, 2010 10:05 am
Location:Dhaka
Contact:
Re: How to use LaTeX

Unread post by sourav das » Fri Oct 28, 2011 12:07 am

I've a problem. I've written a lengthy equation but in my screen i couldn't see total equation.
Ex.
$\sum_{i=1}^{n-2}\sum_{j=i+1}^{n-1}\{2a_i a_j(ij(n-i)(n-j)-\frac{n^2-1}{3}i(n-j))\}\leq \sum_{i=1}^{n-1}a_i^2( \left ( \frac{n^2-1}{3} \right )i(n-i)-i^2(n-i)^2)$
what can i do?
You spin my head right round right round,
When you go down, when you go down down......
(-$from$ "$THE$ $UGLY$ $TRUTH$" )

tanvirab
Posts:446
Joined:Tue Dec 07, 2010 2:08 am
Location:Pasadena, California, U.S.A.

Re: Re: How to use LaTeX

Unread post by tanvirab » Fri Oct 28, 2011 7:38 am

Moved to site support.

You have to break the line.
One way to do it is use eqanarray as below. The & signs let you choose where to break the line.

\begin{eqnarray}
\sum_{i=1}^{n-2}\sum_{j=i+1}^{n-1}\{2a_i a_j(ij(n-i)(n-j) & & -\frac{n^2-1}{3}i(n-j))\} \\
& \leq & \sum_{i=1}^{n-1}a_i^2( \left ( \frac{n^2-1}{3} \right )i(n-i)-i^2(n-i)^2)
\end{eqnarray}

Another way is of course, just write two lines and control the space manually, like below,

\[ \sum_{i=1}^{n-2}\sum_{j=i+1}^{n-1}\{2a_i a_j(ij(n-i)(n-j) -\frac{n^2-1}{3}i(n-j))\} \]
\[ \hspace{2in} $ \leq \sum_{i=1}^{n-1}a_i^2( \left ( \frac{n^2-1}{3} \right )i(n-i)-i^2(n-i)^2) \]

But unfortunately hspace does not seems to be working in this forum.

User avatar
zadid xcalibured
Posts:217
Joined:Thu Oct 27, 2011 11:04 am
Location:mymensingh

Re: How to use LaTeX

Unread post by zadid xcalibured » Fri Oct 28, 2011 11:15 am

i'm too late.it's hard to do this camp when latex is must.i have n additional problem.i use net with a mobile.

User avatar
nafistiham
Posts:829
Joined:Mon Oct 17, 2011 3:56 pm
Location:24.758613,90.400161
Contact:

Re: How to use LaTeX

Unread post by nafistiham » Sun Oct 30, 2011 2:29 pm

ভাইয়া,লাইনগুলাকে মাঝখানে আনা যায় কীভাবে? যেমন নিচের লাইনটা ঃ
LaTeX
english ,বাংলা বা latex এ লেখা সমীকরণ গুলাকে space দিয়ে মাঝখানে আনতে পারিনা।
\[\sum_{k=0}^{n-1}e^{\frac{2 \pi i k}{n}}=0\]
Using $L^AT_EX$ and following the rules of the forum are very easy but really important, too.Please co-operate.
Introduction:
Nafis Tiham
CSE Dept. SUST -HSC 14'
http://www.facebook.com/nafistiham
nafistiham@gmail

tanvirab
Posts:446
Joined:Tue Dec 07, 2010 2:08 am
Location:Pasadena, California, U.S.A.

Re: Re: How to use LaTeX

Unread post by tanvirab » Sun Oct 30, 2011 2:42 pm

For one line you can use backslash[ backslash] instead of \$ \$ (backslash = \)
If you want multiple lines then you need to use eqnarray
See here : http://www.maths.tcd.ie/~dwilkins/LaTeX ... iline.html

Post Reply