Page 1 of 2

Latex formula support ?

Posted: Wed Jul 18, 2012 1:16 pm
by spectral
Hi,

It will be fine if the forum can support latex formula ?!

I'm sure that you agree... but just hope that you will find some time to add it ;-)

Thanks for your community

Re: Latex formula support ?

Posted: Wed Jul 18, 2012 1:31 pm
by graphicsMan
+1

Re: Latex formula support ?

Posted: Thu Dec 27, 2012 9:08 am
by spectral
Any news ?

Is there someone able to improve the forum please, because it is hard to add complex formula with latex ?

Thanks for your help

Re: Latex formula support ?

Posted: Sat Dec 29, 2012 11:39 pm
by Arite
As a suggestion MathJax support could be added.

For a basic configuration all that needs to be done is to add:

Code: Select all

<script type="text/javascript"
  src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
Somewhere in the <head> section of overall_header.html (Editable by going to the Administration Control Panel (ACP) >> Styles >> Templates >> Edit prosilver >> Select "overall_header.html").

Then for example typing:

Code: Select all

We can derive de Moivre's formula using Euler's formula:
\[
\left( \cos{\theta} + i \sin{\theta} \right)^n = \left( e^{i\theta} \right)^n = e^{i (n \theta)} = \cos{(n \theta)} + i \sin{(n \theta)}
\]
Would yield (screenshot from my phpBB forum):

Image

^ Probably should've chosen the rendering equation instead :-P.

There are MathJax phpBB mods too (for example here), however just adding the script to the header seems to be good enough for most things.

Cheers, Arite.

Re: Latex formula support ?

Posted: Sun Dec 30, 2012 2:43 pm
by admin
Arite, thanks for the detailed instructions!

Test:

We can derive de Moivre's formula using Euler's formula:
\[
\left( \cos{\theta} + i \sin{\theta} \right)^n = \left( e^{i\theta} \right)^n = e^{i (n \theta)} = \cos{(n \theta)} + i \sin{(n \theta)}
\]

EDIT: Seems to work. Will this do for now?

Re: Latex formula support ?

Posted: Mon Dec 31, 2012 1:39 pm
by spectral
Wonderful, thanks a lot ;-)

Re: Latex formula support ?

Posted: Mon Dec 31, 2012 6:31 pm
by dr_eck
I agree! :D It wasn't something I was really dying for, but I really appreciate it now that it's available.

Re: Latex formula support ?

Posted: Wed Jan 02, 2013 3:34 am
by Arite
admin wrote:Arite, thanks for the detailed instructions!
No problem :).
admin wrote:Test:

We can derive de Moivre's formula using Euler's formula:
\[
\left( \cos{\theta} + i \sin{\theta} \right)^n = \left( e^{i\theta} \right)^n = e^{i (n \theta)} = \cos{(n \theta)} + i \sin{(n \theta)}
\]

EDIT: Seems to work. Will this do for now?
Brilliant :D.

A Global annoucement saying e.g. "MathJax LaTeX formula support added" with a couple of usage examples could be helpful for new users.

Arite.

Re: Latex formula support ?

Posted: Thu Jan 03, 2013 10:54 am
by spectral
You can use the following tool to easily create your formula :

http://www.codecogs.com/latex/eqneditor.php

Re: Latex formula support ?

Posted: Thu Jan 03, 2013 3:25 pm
by spectral
Is there some anti-aliasing option ? The formula looks pixelated..

BTW:Take a look at the previous link to compare.

Thanks