Latex formula support ?

Announcements, maintenance etc.. Boring.
spectral
Posts: 382
Joined: Wed Nov 30, 2011 2:27 pm
Contact:

Latex formula support ?

Postby spectral » Wed Jul 18, 2012 1:16 pm

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
Spectral
OMPF 2 global moderator

graphicsMan
Posts: 151
Joined: Mon Nov 28, 2011 7:28 pm

Re: Latex formula support ?

Postby graphicsMan » Wed Jul 18, 2012 1:31 pm

+1

spectral
Posts: 382
Joined: Wed Nov 30, 2011 2:27 pm
Contact:

Re: Latex formula support ?

Postby spectral » Thu Dec 27, 2012 9:08 am

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
Spectral
OMPF 2 global moderator

Arite
Posts: 9
Joined: Mon Dec 19, 2011 3:05 am

Re: Latex formula support ?

Postby Arite » Sat Dec 29, 2012 11:39 pm

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.

admin
Site Admin
Posts: 24
Joined: Sun Nov 27, 2011 9:41 pm

Re: Latex formula support ?

Postby admin » Sun Dec 30, 2012 2:43 pm

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?

spectral
Posts: 382
Joined: Wed Nov 30, 2011 2:27 pm
Contact:

Re: Latex formula support ?

Postby spectral » Mon Dec 31, 2012 1:39 pm

Wonderful, thanks a lot ;-)
Spectral
OMPF 2 global moderator

dr_eck
Posts: 45
Joined: Mon Dec 05, 2011 7:35 pm

Re: Latex formula support ?

Postby dr_eck » Mon Dec 31, 2012 6:31 pm

I agree! :D It wasn't something I was really dying for, but I really appreciate it now that it's available.

Arite
Posts: 9
Joined: Mon Dec 19, 2011 3:05 am

Re: Latex formula support ?

Postby Arite » Wed Jan 02, 2013 3:34 am

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.

spectral
Posts: 382
Joined: Wed Nov 30, 2011 2:27 pm
Contact:

Re: Latex formula support ?

Postby spectral » Thu Jan 03, 2013 10:54 am

You can use the following tool to easily create your formula :

http://www.codecogs.com/latex/eqneditor.php
Spectral
OMPF 2 global moderator

spectral
Posts: 382
Joined: Wed Nov 30, 2011 2:27 pm
Contact:

Re: Latex formula support ?

Postby spectral » Thu Jan 03, 2013 3:25 pm

Is there some anti-aliasing option ? The formula looks pixelated..

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

Thanks
Spectral
OMPF 2 global moderator


Return to “ompf2”

Who is online

Users browsing this forum: No registered users and 2 guests