GMLscripts.com

Discuss and collaborate on GML scripts
Invert

You are not logged in.

#1 2009-07-27 06:28:24

xot
Administrator
Registered: 2007-08-18
Posts: 1,239

LaTeX support now available

blogicon-20090727.gifYou can now enter your equations using [tex]\LaTeX[/tex]. It's much nicer than the phpmathpublisher [m][/m] tags.

Compare:

[m]z^2=sqrt{x^2+y^2}[/m]   phpmathpublisher (ugh, what happened to the y?)

[tex]z^2=\sqrt{x^2+y^2}[/tex]   LaTeX (so sexy)

[tex]z^2=\sqrt{x^2+y^2}[/tex]



[m]{x}={-b{pm}sqrt{b^2-4ac}}/{2a}[/m]   phpmathpublisher (clunky)

[tex]x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}[/tex]   LaTeX (sleek)

[tex]x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}[/tex]



[m]A={1}/{2}sum{i=0}{N-1} (x_i y_{i+1} - x_{i+1} y_i)[/m]   phpmathpublisher (it hurts!)

[tex]A=\frac{1}{2}\sum_{i=0}^{N-1}(x_iy_{i+1}-x_{i+1}y_i)[/tex]   LaTeX (hurt me more!)

[tex]A=\frac{1}{2}\sum_{i=0}^{N-1}(x_iy_{i+1}-x_{i+1}y_i)[/tex]



Just use the [tex] & [/tex] tags.

Good LaTeX info here:
http://en.wikipedia.org/wiki/Math_markup
http://en.wikibooks.org/wiki/LaTeX

Cool LaTeX editor here:
http://www.codecogs.com/components/equa … editor.php

CodeCogs provides the rendering service as well. Thanks guys!

Have fun!

UPDATE:

The phpmathpublisher [m][/m] tags are no longer supported so some of this post doesn't render anymore.

CodeCogs is no longer used to render LaTex. Rendering is done client-side with MathJax.

Last edited by xot (2015-01-03 01:33:40)


Abusing forum power since 1986.

Offline

#2 2009-09-19 08:26:26

xot
Administrator
Registered: 2007-08-18
Posts: 1,239

Re: LaTeX support now available

These CodeCogs people have been having trouble with their server for the last week or so. If you've been having trouble here, blame them. The problem is because their service requires that you download a script from them to launch their LaTeX editor. When their site is down, so is any site that needs that script. The editor is not strictly required. However, when their server is down they can not generate the nice LaTeX images for us either.

So I made a local copy of the script and I'm also locally caching the generated images. So even if their server goes down, it will no longer take GMLscripts.com with it and all of the LaTeX will still be seen. It's not the perfect solution. As long as the server is down, no new images can be created, and the editor can't be launched, but it's a much, much better situation than it was.

I hope CodeCogs figures out the problem, apparently they've had these hosting issues before.


Abusing forum power since 1986.

Offline

#3 2009-09-20 02:45:18

xDanielx
Member
Registered: 2009-01-02
Posts: 38

Re: LaTeX support now available

[tex]\text{Looks good to me... } \ddot\smile[/tex]

Last edited by xDanielx (2009-09-20 02:56:18)

Offline

Board footer

Powered by FluxBB