Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter-Forum.com > Announcements
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Announcements Orbiter-Forum Staff Members will post announcements about the website here.

Reply
 
Thread Tools
  #1  
Old
Tex's Avatar
Tex Tex is offline
O-F Administrator

Lightbulb LaTeX Math & Chemical Typesetting
by Tex 10-28-2009, 03:13 AM

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.

[math]enter code here[/math]


For example, the code
HTML Code:
[math]a^x_n[/math]
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:
Quote:
_ 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[S]}{K_M+[S]}

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!
Reply With Quote
Views 12175 Comments 21
Total Comments 21

Comments

Old 10-28-2009, 03:26 AM   #2
tblaxland
Webmaster
 
tblaxland's Avatar


Default

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 [math] 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: LaTeX{}
tblaxland is offline   Reply With Quote
Old 10-28-2009, 03:31 AM   #3
insanity
Blastronaut
 
insanity's Avatar
Default

Excellent! This is a super-handy upgrade. Cheers for the great work!
insanity is offline   Reply With Quote
Old 10-28-2009, 06:19 AM   #4
n72.75
Donator
 
n72.75's Avatar


Default

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 by n72.75; 10-28-2009 at 06:24 AM.
n72.75 is offline   Reply With Quote
Old 10-28-2009, 06:22 AM   #5
Tex
O-F Administrator
 
Tex's Avatar

Default

Glad you like it guys.

Looks like you got an error in your code there n72.75
Tex is offline   Reply With Quote
Old 10-28-2009, 06:25 AM   #6
n72.75
Donator
 
n72.75's Avatar


Default

Quote:
Originally Posted by Tex View Post
 Glad you like it guys.

Looks like you got an error in your code there n72.75
oops, just fixed it.
n72.75 is offline   Reply With Quote
Old 10-28-2009, 10:23 AM   #7
agentgonzo
Grounded since '09
 
agentgonzo's Avatar
Default

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.
agentgonzo is offline   Reply With Quote
Old 10-28-2009, 02:18 PM   #8
eveningsky339
Resident Orbiter Slave
 
eveningsky339's Avatar

Default

Whoa, this is awesome! I'm going to have fun with this...

Thank you Vash and Tex for implementing this feature.
eveningsky339 is offline   Reply With Quote
Old 10-28-2009, 03:16 PM   #9
Jarvitš
Orbinaut
Default

How about installing TeX fonts instead of having the output in images?
Jarvitš is offline   Reply With Quote
Old 10-28-2009, 03:17 PM   #10
Calsir
Orbinaut
Default

This. Is. Simply. Awesome.
Calsir is offline   Reply With Quote
Old 10-28-2009, 05:41 PM   #11
TSPenguin
The Seeker
 
TSPenguin's Avatar
Default

Quote:
Originally Posted by Jarvitš View Post
 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?
TSPenguin is offline   Reply With Quote
Old 10-28-2009, 08:49 PM   #12
Tex
O-F Administrator
 
Tex's Avatar

Default

^

What he said.


Quote:
Originally Posted by Jarvitš View Post
 How about installing TeX fonts instead of having the output in images?
Tex is offline   Reply With Quote
Old 10-28-2009, 09:41 PM   #13
martins
Orbiter Founder
Default

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).
martins is offline   Reply With Quote
Old 10-28-2009, 10:14 PM   #14
Jarvitš
Orbinaut
Default

Quote:
Originally Posted by TSPenguin View Post
 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.
Jarvitš is offline   Reply With Quote
Old 10-28-2009, 10:18 PM   #15
computerex
Addon Developer
Default

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
?
computerex is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter-Forum.com > Announcements

Tags
latex, mathtex, typset


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 07:38 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright ©2007 - 2017, Orbiter-Forum.com. All rights reserved.