# How to: use LaTeX for equations

20 replies to this topic

### #1 Tormod

Tormod

Hypographer

• Members
• 14353 posts

Posted 04 May 2006 - 03:12 AM

Alexander has written a hack that lets us use Latex to write equations.

Usage is fairly complex but there is a nice tutorial here:

http://www.forkosh.c...extutorial.html

Use the following syntax:

$f(x)=\int_{-\infty}^x e^{-t^2}dt$

...which yields

$f(x)=\int_{-\infty}^x e^{-t^2}dt$

### #2 Tormod

Tormod

Hypographer

• Members
• 14353 posts

Posted 04 May 2006 - 03:15 AM

I am actually having some problems with this.

We may be seeing some sort of caching problem.

I'm sure Alex will figure it out.

### #3 Jay-qu

Jay-qu

Ancora Imparo

• Members
• 6340 posts

Posted 04 May 2006 - 03:17 AM

$E=mc^2$
$E_k=1/2kx^2$ now i can use sub/superscripts

and intergrals.. $\int\arctan(x^2/y)$

$\begin{\pmatrix}c&o&o&l&a&n&d&m&a&t&r&i&x&s\end{\pmatrix}$

### #4 Tormod

Tormod

Hypographer

• Members
• 14353 posts

Posted 04 May 2006 - 03:22 AM

$F=ma$

### #5 C1ay

C1ay

¿42?

• 6488 posts

Posted 04 May 2006 - 06:08 AM

[ latex ]f(x)=int_{-\infty}^x e^{-t^2}dt[ /latex ]

As a side note I'll mention that the forum also supports a [noparse][/noparse] tag so that example BBCode can be posted. This allows you to actually post BBCode code that can literally be copy and pasted like
$f(x)=int_{-\infty}^x e^{-t^2}dt$. Perhaps someone will find this useful

OTOH, there appear to be some hiccups because it should be able to parse $f(x)=1$ and the parantheses seem to be hanging up. Maybe it's a syntax problem with this version though.

### #6 Tormod

Tormod

Hypographer

• Members
• 14353 posts

Posted 04 May 2006 - 06:10 AM

Yeah it's a little buggy apparently.

### #7 alexander

alexander

Dedicated Smart-ass

• Members
• 5722 posts

Posted 04 May 2006 - 02:18 PM

ok, so there is no workaround for this yet, so i will warn people and explain what is going on.

the mimetex plugin works very beautifuly, the problem is when it touches vbulletin, something crazy happens and this extremely weird issue comes up:
so apparently there is a problem with parsing bbcode, and for some reason or another, a parenthesie before the first equal sign it screws stuff up and breaks some links that does not allow the images to render at all...

so a workaround, not a solution, still working on that one:
\int_{a}^bf(x)dt=\sum_{i=1}^n f(\overline{x_i})\Delta x
does not work as demonstrated here:
$\int_{a}^bf(x)dt=\sum_{i=1}^n f(\overline{x_i})\Delta x$
but you can use the same equation and write it as:
\sum_{i=1}^n f(\overline{x_i})\Delta x=\int_{a}^bf(x)dt
as i demonstrate here:
$\sum_{i=1}^n f(\overline{x_i})\Delta x=\int_{a}^bf(x)dt$

similarly:
x=f\left(x\right) works
$x=f\left(x\right)$
while the opposite f\left(x\right)=x does not
$f\left(x\right)=x$

### #8 alexander

alexander

Dedicated Smart-ass

• Members
• 5722 posts

Posted 04 May 2006 - 02:21 PM

P.S. Reimann's sum demonstrates most crazy good effects of latex. if you want some code for matixees or complex fractions to refer to, i'll be more then delighted to write a tutorial for the math forum... that is if anyone needs it...

### #9 Buffy

Buffy

Resident Slayer

• 8946 posts

Posted 04 May 2006 - 02:36 PM

So now Q can do his sig with:

$\text{Qfwfq} =\\ \left(i \cancel{\partial} - m \right) \Psi = 0$

{with the extra "Qfwfq=" stuck in as a workaround for alex's bug...}

Qool!
Buffy

### #10 alexander

alexander

Dedicated Smart-ass

• Members
• 5722 posts

Posted 04 May 2006 - 03:41 PM

it is a workaround, but i want it to work like it is supposed to, but that would work buffy...

### #11 alexander

alexander

Dedicated Smart-ass

• Members
• 5722 posts

Posted 04 May 2006 - 03:42 PM

probably could add that to the latex bb tag, to add names automatically, but still, i want it to work the way it is supposed to!

### #12 alexander

alexander

Dedicated Smart-ass

• Members
• 5722 posts

Posted 11 May 2006 - 08:15 PM

success, this actually finally works, its alive
 $f(x)=\sum_{i=1}^5(x^e^{x+i})$

### #13 Tormod

Tormod

Hypographer

• Members
• 14353 posts

Posted 12 May 2006 - 03:45 AM

Great job, Alexander!

### #14 alexander

alexander

Dedicated Smart-ass

• Members
• 5722 posts

Posted 13 May 2006 - 08:14 PM

ok, i think that this thread needs a little pointing, for those who are interested, i just finished a tutorial on Latex in the math section (sort of where its needed a bit more) so please dont hesitate and visit:
http://hypography.co...ath-v2-0-a.html

there is also a link to latex practice grounds thread, and if you have any questions, please, please post them in the linked stickey, i want people to be able to refer to a single thread for guidance... I dunno whether i should block this thread or something, but please go to the Physics and Math section for the latex stuff...

### #15 infamous

infamous

Visions of grandeur

• Members
• 3962 posts

Posted 09 November 2006 - 06:30 PM

Really just getting started with this Latex and already I've discovered a problem. I understand how to show sqrt-root but how do I show cube-root or even higher powers of this function? Any help would be appreciated.....Infy

### #16 CraigD

CraigD

Creating

• 8034 posts

Posted 09 November 2006 - 07:23 PM

I understand how to show sqrt-root but how do I show cube-root or evern higher powers of this function?

\sqrt[3]{X} renders as $\sqrt[3]{X}$

Though there are many excellent LaTeX references, I usually refer to http://meta.wikimedi...ki/Help:Formula . I don’t think it’s complete, but it’s yet to fail to answer any of my questions.
• infamous likes this

### #17 infamous

infamous

Visions of grandeur

• Members
• 3962 posts

Posted 09 November 2006 - 07:26 PM

\sqrt[3]{X} renders as $\sqrt[3]{X}$

Though there are many excellent LaTeX references, I usually refer to http://meta.wikimedi...ki/Help:Formula . I don’t think it’s complete, but it’s yet to fail to answer any of my questions.

Excellent, thank you so much my friend.............................Infy