- Thread starter
- #1

#### find_the_fun

##### Active member

- Feb 1, 2012

- 166

Also, can anyone recommend a light weight Latex editor for Windows? It can be quite challenging to type in long and complex equations.

- Thread starter find_the_fun
- Start date

- Thread starter
- #1

- Feb 1, 2012

- 166

Also, can anyone recommend a light weight Latex editor for Windows? It can be quite challenging to type in long and complex equations.

- Admin
- #2

After seeing the $\LaTeX$ error in your DiffEq topic, and having seen this many times myself, I can safely say that you probably do not have matching opening and closing braces. In my experience, the error has always been on my part, and it just takes going through the code to fix my mistake. I highly recommend using the preview function to make sure your code displays as you intend before submitting your post.

- Admin
- #3

- Jan 26, 2012

- 4,043

I just wrote out a super long post where I tried to generalize approaching syntax with levels or layers in mind, but I think that idea is easy enough not to go crazy with examples now.

Start by replacing the trig expressions with A and B and you'll be left with a much easier line to scan. Once you get the form correct for A and B add back in the trig stuff. Once you establish that some step is working properly, you know immediately when you mess up as you work.

You could count opening brackets and closing brackets and hope that adding one or deleting one will even things out but that's a bit too random for me. It's better I think to approach the code in a few pieces so mistakes are never that time-wasting.

- Sep 20, 2013

- 16

I want show codecogs

by formular

Code:

` $\displaystyle \sum_{k=1}^{n-1}\sin\left(\frac{\left(2\left\lfloor\sqrt{kn}\right\rfloor+1\right)\pi}{2n}\right)=\cot\left(\frac{\pi}{2n}\right)\cos\left(\frac{\pi}{2n}\right)$`

$\displaystyle \sum_{k=1}^{n-1}\sin\left(\frac{\left(2\left\lfloor\sqrt{kn}\right\rfloor+1\right)\pi}{2n}\right)=\cot\left(\frac{\pi}{2n}\right)\cos\left(\frac{\pi}{2n}\right)$

- Admin
- #5

- Jan 26, 2012

- 4,043

You need to add in a space every so often with Mathjax. I added in some random spaces along the way and now it renders fine.I want show codecogs

by formular

but no previewCode:`$\displaystyle \sum_{k=1}^{n-1}\sin\left(\frac{\left(2\left\lfloor\sqrt{kn}\right\rfloor+1\right)\pi}{2n}\right)=\cot\left(\frac{\pi}{2n}\right)\cos\left(\frac{\pi}{2n}\right)$`

$\displaystyle \sum_{k=1}^{n-1}\sin \left(\frac{\left(2\left\lfloor\sqrt{kn} \right\rfloor+1\right)\pi}{2n}\right)=\cot\left( \frac{\pi}{2n} \right)\cos\left(\frac{\pi}{2n}\right)$

\displaystyle \sum_{k=1}^{n-1}\sin \left(\frac{\left(2\left\lfloor\sqrt{kn} \right\rfloor+1\right)\pi}{2n}\right)=\cot\left( \frac{\pi}{2n} \right)\cos\left(\frac{\pi}{2n}\right)

- Jan 26, 2012

- 644

[JUSTIFY]I kinda feel like you should add spaces in LaTeX code either way, just for the sake of readability.. I know I, like other people, occasionally right-click to see how an equation was written.[/JUSTIFY]You need to add in a space every so often with Mathjax. I added in some random spaces along the way and now it renders fine.

\displaystyle \sum_{k=1}^{n-1}\sin \left(\frac{\left(2\left\lfloor\sqrt{kn} \right\rfloor+1\right)\pi}{2n}\right)=\cot\left( \frac{\pi}{2n} \right)\cos\left(\frac{\pi}{2n}\right)