# New FeatureLaTeX Math & Chemical Typesetting

#### Tex

Tutorial Publisher
Orbiter-Forum is proud to introduce the addition of LaTeX mathematical typesetting to our forum software! Special thanks to Vash for getting it all installed on the server for us!

LaTeX is a professional-grade general typesetting system that centers around very pleasing mathematical presentation. Mathematical expressions are written in a markup style somewhat similar to HTML.

To include a LaTeX graphic, simply type your LaTeX code between math bbcode tags.

$enter code here$

For example, the code
HTML:
$a^x_n$
produces the graphic: $a^x_n$

Mathematical LaTeX Examples

$\frac{1}{2}$

$R^a{}_{bcd}$

$\nabla \times C$

$\lambda_j = \mathbf{\lambda} \cdot \mathbf{e}_j$

$v(t) = v_0 + \frac{1}{2} a t^2$

$\gamma \equiv \frac{1}{\sqrt{1 - v^2/c^2}}$

$e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n$

$\iiint f(x,y,z)\,dx\,dy\,dz$

$A \alpha B \beta \Gamma \gamma \Delta \delta \dots \Phi \phi X \chi \Psi \psi \Omega \omega$

$\Gamma^l_{ki} = \frac{1}{2} g^{lj} (\partial_k g_{ij} + \partial_i g_{jk} - \partial_j g_{ki})$

Chemical LaTeX Examples
To explain the basics:
_ is subscript
^ is superscript
{} are delimiters, to keep text together
~ is a space
$^{33}_{17}Cl^{16}\xrightarrow{n,n}~^{31}_{15}P^{16 }+~^4_2He^2$

$pH=pK_a+log\frac{[A^-]}{[HA]}$

$V=\frac{k_2[E]_t}{K_M+}$

$6CO_2+6H_2O\xrightarrow{Light~Energy}C_6H_{12}O_6+ CO_2~~~\Delta G^\circ=+2870kJ/mol$

*Click on each of the examples above to "learn by example."

Good luck and enjoy the system!

#### tblaxland

Webmaster
You guys just keep making it better and better.

For anyone that finds entering the LaTeX source code tiresome, I use a WYSIWYG* editor called LyX and you can just copy the code into the $tags. I'm sure you could do the same from other editors too. * Actually, they call it WYSIWYM (What You See Is What You Mean) since it is not quite WYSIWYG. Nonetheless, I find it a lot easier than writing LaTeX code in a text editor. EDIT: Only problem is that it doesn't support \LaTeX{} EDIT2: I see it does, you just don't require the backslash in front of the function name: [math]LaTeX{}$[/math]

#### insanity

##### Blastronaut
Donator
Excellent! This is a super-handy upgrade. Cheers for the great work!

#### n72.75

Tutorial Publisher
Donator
Wahooooooooooo!!!!!!!!!

This is much better then writing averthing on one line

$\iint (1-x)^2 + 100(y-x^2)^2\,dx\,dy$

integration of the Rosenbrock function

Thanks tex.

Last edited:

#### Tex

Tutorial Publisher
Glad you like it guys.

Looks like you got an error in your code there n72.75

#### n72.75

Tutorial Publisher
Donator
Glad you like it guys.

Looks like you got an error in your code there n72.75

oops, just fixed it.

#### agentgonzo

##### Grounded since '09
I never got around to learning $LaTeX{}$ and am still a bit sad that I never got to use it - especially as I was doing a maths degree at uni. The amount of printed material that I had to produce was minimal, so it just wasn't worth it in the end.

#### eveningsky339

##### Resident Orbiter Slave
Donator
Whoa, this is awesome! I'm going to have fun with this...

Thank you Vash and Tex for implementing this feature. :thumbup:

#### Jarvitä

##### New member
How about installing TeX fonts instead of having the output in images?

#### Calsir

##### New member
This. Is. Simply. Awesome. :tiphat:

#### TSPenguin

##### The Seeker
How about installing TeX fonts instead of having the output in images?

Would simply not work. Everyone would need to install them. And even then, how would the symbols be positioned accurately in every browser?

#### Tex

Tutorial Publisher
^

What he said.

How about installing TeX fonts instead of having the output in images?

#### martins

##### Orbiter Founder
Orbiter Founder
Excellent news! This is a really useful addition to the forum. Finally we can do proper equations, rather than writing everything in pseudocode! It's a shame that html doesn't support proper typesetting natively, but the bitmaps are a good enough for all purposes I can think of (this is the same method that doxygen uses to put equations into its html pages).

#### Jarvitä

##### New member
Would simply not work. Everyone would need to install them. And even then, how would the symbols be positioned accurately in every browser?

Works OK on some of the forums I visit, and those who don't feel the need to install them can still default to the image printouts.

#### computerex

Thanks for the addition. Can someone point me to the proof of:
$e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n$
?

#### tl8

Tutorial Publisher
Taylor's Series

#### insanity

##### Blastronaut
Donator
Now I want to build a sugar rocket in a $12in*.75in$ tube. How much of the reagents will I need?
$\\Volume\\ v=\pi r^2h$
$r=.75in\frac{2.54cm}{1in}\approx 1.905cm$
$h=12in\frac{2.54cm}{1in}\approx 30.48cm$
$v\approx 347.5cm^3$
Chemical Equation
$5C_{12}H_{22}O_{11}+ 48KNO_{3}= 24K_{2}CO_{3}+36CO_{2}+55H_{2}O+24N_{2}$
Now, to fill the volume with the product:
$347.5cm^3 K_2CO_3 \frac {2.29gK2CO_3}{1cm^3K2CO_3}=795.78gK_2CO_3$
Now to solve the problem for reagents needed!
$795.78gK_2CO_3 \frac {1molK_2CO_3}{138.205gK2CO_3}\frac{48molKNO_3}{24molK_2CO_3}\frac{101.103gKNO_3}{1molKNO3}=1164gKNO_3$
$1164gKNO_3\frac{1molKNO3}{101.103gKNO3}\frac{5molSugar}{48molKNO_3}\frac{342.3g\:sugar}{1mol\:sugar}=410.51g\:Sugar$

Oooh, pretty equations!

Last edited: