Chemical Forums

General Forums => Comments for Staff and Comments from Staff => Topic started by: Mitch on September 06, 2008, 03:45:06 AM

Title: Forum Now Supports LATEX!
Post by: Mitch on September 06, 2008, 03:45:06 AM
Examples follow:

If you want to display (https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+y+%3D+%5Cmathrm%7Bm%7Dx+%2B+%5Cmathrm%7Bb%7D+%7D&hash=f8a2f199512c8e94bb1e0c5b0d7ecba16efb4d4a)
Use the following code
Code: [Select]
## y = mx + b /##

Here is another one: (https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+%5Cmathrm%7Bd%7DE+%3D+%5Cleft%28%5Cmathrm%7Bd%7DQ%5Cright%29_%7B%5Cmathrm%7Brev%7D%7D%5C%2C+%2B%5C%2C+%5Cmathrm%7Bd%7DW+%7D&hash=879eb125987ae8e1c1dd9780ce479f8d3e14f03f)
Simply put this:
Code: [Select]
## dE = (dQ)_{rev} + dW /##
I hope this makes life easier for you guys. Feel free to practice in this thread.

Mitch

Here is a tutorial for using math with latex:
http://theoval.sys.uea.ac.uk/~nlct/latex/novices/displaymath.html
Title: Re: Forum Now Supports LATEX!
Post by: Mitch on September 06, 2008, 04:13:28 AM
(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+%5Cmathrm%7BC%7D_6%5Cmathrm%7BH%7D_%7B12%7D%5Cmathrm%7BO%7D_6%5C%2C+%2B%5C%2C+6%5Cmathrm%7BO%7D_2+%5C%2C%5Crightarrow%5C%2C+6%5Cmathrm%7BCO%7D_2%5C%2C+%2B%5C%2C+6%5Cmathrm%7BH%7D_2%5Cmathrm%7BO%7D+%7D&hash=57bba01a62610d0040d5453a70d85557d3b3428d)

Code: [Select]
## \mathrm{C}_6\mathrm{H}_{12}\mathrm{O}_6\, +\, 6\mathrm{O}_2 \,\rightarrow\, 6\mathrm{CO}_2\, +\, 6\mathrm{H}_2\mathrm{O} /##
I'm really not convinced that was easier than using the regular forum notation, but whatever. :)
Title: Re: Forum Now Supports LATEX!
Post by: Astrokel on September 06, 2008, 08:04:13 AM
wow! this is cool!! great job mitch.

Quote
$$ \mathrm{C}_6\mathrm{H}_{12}\mathrm{O}_6\, +\, 6\mathrm{O}_2 \,\rightarrow\, 6\mathrm{CO}_2\, +\, 6\mathrm{H}_2\mathrm{O} /$$

Hmm?!? lol well, i think once we get the pattens right, it will be easier, like start and end with $$? i will practice and try it out later  :)

thanks again!!
Title: Re: Forum Now Supports LATEX!
Post by: Borek on September 06, 2008, 08:05:16 AM
(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+a+%3D+%5Cfrac+c+%7B%5Csqrt+b%7D+%7D&hash=2c7bcec2d47d9a179cd476c0814d504a5dbec84e)

(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+%5BH%5E%2B%5D+%3D+%5Csqrt%7B+C_a+K_a%7D+%7D&hash=ee645de5fd902e9a65885f2c9bfb888631589765)

Well, it doesn't make sense for reactions (I prefer UBBC exported from EBAS then, much less work with formatting, as EBAS does the formatting automagically), but even for simple math it does wonders.

$$ a_i = \frac {b_i + c_i} {1 + \sqrt{d^2 + e_i^2}} /$$
Title: Re: Forum Now Supports LATEX!
Post by: Yggdrasil on September 06, 2008, 11:51:36 AM
(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+F%28%5Comega%29+%3D+%5Csqrt%7B%5Cfrac%7B1%7D%7B2%5Cpi%7D%7D+%5Cint%5E%7B%5Cinfty%7D_%7B-%5Cinfty%7D%7Bf%28t%29e%5E%7B-i%5Comega+t%7D+dt%7D+%7D&hash=52423bd9fae9423f18df5a4ac95554eff5fa6247)

Sweet!  Thanks mitch!
Title: Re: Forum Now Supports LATEX!
Post by: Hunt on September 06, 2008, 04:23:19 PM
Good job Mitch , way to go
Title: Re: Forum Now Supports LATEX!
Post by: enahs on September 06, 2008, 09:00:31 PM
$$ (\frac{\partial x}{\partial y})_z = S_om^et_hi^ng /$$
Title: Re: Forum Now Supports LATEX!
Post by: enahs on September 06, 2008, 09:08:34 PM
Weee! Nice. Although I hate LaTeX.... but it is better then nothing I guess!

$$ A = \epsilon \time b \time c /$$
Title: Re: Forum Now Supports LATEX!
Post by: FeLiXe on October 25, 2008, 04:54:33 PM
hey, very cool!

(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+i+%5Chbar+%5Cfrac%7B%5Cpartial%7D%7B%5Cpartial+t%7D+%5CPsi%28x%2Ct%29+%3D+%5Chat%7BH%7D+%5CPsi%28x%2Ct%29+%7D&hash=6a4b44f86e59ba7603645f3aa2408caa78b758a2)
Title: Re: Forum Now Supports LATEX!
Post by: kryptoniitti on April 23, 2009, 11:54:42 AM
(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+%5Cint+%5Cfrac%7Ba%7D%7Bb%7D%7D&hash=98ce7e9b4bcef25b5d9667134ffc4fd3d7e4b8c0)
Title: Re: Forum Now Supports LATEX!
Post by: Schrödinger on April 29, 2009, 12:16:09 PM
$$ dE = (dQ)_{rev} + dW /$$

Why do i get this "[img]http://www.forkosh.dreamhost.com/mimetex.cgi?" line at the start of each latex eqn/symbol i use???
Title: Re: Forum Now Supports LATEX!
Post by: Borek on April 29, 2009, 12:39:44 PM
Part of the implementation. They are not hosted here.
Title: Re: Forum Now Supports LATEX!
Post by: Schrödinger on May 16, 2009, 02:04:53 PM
$$ e^{i\pi} + 1 = 0 /$$
Title: Re: Forum Now Supports LATEX!
Post by: Think2Much4UserNames on June 09, 2009, 08:46:18 PM
(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+X%5E2+%7D&hash=210caa0eac2f6f91ac3c58dabe746632c006e768)
(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+%5Csum+%7D&hash=ee4061525870ca6a38e5b7a34b2175bd0834b928)

X^2 = (Observed - Expected)^2 / Expected

(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+%28Observed+-+Expected%29%5E2+%7D&hash=6936f3a124ddf86bd22498df5b632d49b800b452)

(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+%5Cdfrac%7B2%7D%7Bx%2B2%7D+%7D&hash=5d48db3d0ee71f6fd66df7e0a9e707e50e74bc29)

(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+Expected+%7D&hash=dfaced3ebec5f3a9901c70a761c6924826c8e2c4)

$$ /dfrac{Observed - Expected}^2{Expected} /$$

Thank you
Title: Re: Forum Now Supports LATEX!
Post by: Schrödinger on June 21, 2009, 05:02:27 AM
(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+%5Calpha%5Cbeta%5Cgamma%5Cdelta%5Cpi%5Cupsilon%5Czeta%5Csigma%5CSigma+%7D&hash=0352e8871548868f44a364b2587af6012c0a6a84)

(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+f%28%5Ctheta%29+%3D+cos%5Ctheta+%2B+isin%5Ctheta+%7D&hash=054476beaa16dc054c13ade0ab0f567ec565e75d)

(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+mvr+%3D+%5Cfrac%7Bnh%7D%7B2+%5Cpi%7D+%7D&hash=7148f036fa3d682b34276f5e50748389ce26bf7c)
Title: Re: Forum Now Supports LATEX!
Post by: ugbede on June 30, 2009, 02:25:41 PM
How do I post my chemistry problem. I am using my mobile phone nokia3230
Title: Re: Forum Now Supports LATEX!
Post by: Borek on June 30, 2009, 02:34:29 PM
Look for the "new topic" button in the correct subforum.
Title: Re: Forum Now Supports LATEX!
Post by: Agent-X on July 22, 2009, 05:30:18 PM
$$ CH_{3}CHCH_{3}(CH_{2})_{3}CHCH_{3}(CH_{2})_{3}CHCH_{3}(CH_{2})_{3}CH(CH_{3})CH_{3} /$$

There we go... well, it was working...
Why does mine seem italicized?
Title: Re: Forum Now Supports LATEX!
Post by: Mitch on July 22, 2009, 10:08:24 PM
Agent-X: Use \text{} around the text you don't want italicized.
Title: Re: Forum Now Supports LATEX!
Post by: Agent-X on July 23, 2009, 12:03:29 AM
(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+%5Ctext%7BCH_%7B3%7DCHCH_%7B3%7D%28CH_%7B2%7D%29_%7B3%7DCHCH_%7B3%7D%28CH_%7B2%7D%29_%7B3%7DCHCH_%7B3%7D%28CH_%7B2%7D%29_%7B3%7DCH%28CH_%7B3%7D%29CH_%7B3%7D%7D+%7D&hash=0db4e100605249a2c6c74dd879d2fbac3975cc32)

That works.
It would be nice if I could see it in the preview window, though.
Title: Re: Forum Now Supports LATEX!
Post by: Schrödinger on August 15, 2009, 02:14:58 PM
Can someone please tell me how i can type bond-lines using latex?
Title: Re: Forum Now Supports LATEX!
Post by: Agent-X on August 16, 2009, 06:03:04 AM
Can someone please tell me how i can type bond-lines using latex?


Well, I mean a person could use hypens and equal signs. But that would only get so far. I know that certain chemistry programs will allow a person to output in tex formation. But I don't think this forum would accept the format.
Title: Re: Forum Now Supports LATEX!
Post by: MrTeo on August 16, 2009, 12:17:31 PM
Simply you can use a free molecular-drawing software and export the documents in an image format (JPG, PNG or what you prefer), then host and insert in your message the image needed. I do so and it works great  ;)
Title: Re: Forum Now Supports LATEX!
Post by: HighTek on September 22, 2009, 03:16:15 AM
hey, very cool!

(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+i+%5Chbar+%5Cfrac%7B%5Cpartial%7D%7B%5Cpartial+t%7D+%5CPsi%28x%2Ct%29+%3D+%5Chat%7BH%7D+%5CPsi%28x%2Ct%29+%7D&hash=6a4b44f86e59ba7603645f3aa2408caa78b758a2)

Oh shiz. I recognize this equation....stupid Quantum Mechanics. Its gon be the death of my GPA.

Title: Re: Forum Now Supports LATEX!
Post by: adkinsjr on November 17, 2009, 09:25:36 PM
When I type:

$$ y=mx+b /$$

and then click preview, it doesn't work???

In other forums I would type, say for an integral

[math] \int\frac{1}{1-x^2}dx[/math]

is there a pdf file with all of the commands?

Title: Re: Forum Now Supports LATEX!
Post by: adkinsjr on November 17, 2009, 09:26:45 PM

Actually, it does seem to be working. When I clicked "preview' I got something else.

$$ \int\frac{1}{1-x^2}dx /$$
Title: Re: Forum Now Supports LATEX!
Post by: Mitch on November 17, 2009, 11:28:43 PM
Preview doesn't work.
Title: Re: Forum Now Supports LATEX!
Post by: cliverlong on December 04, 2009, 05:29:01 PM
\[ \frac{1}{x^2 + y^2} \]
$$ \frac{1}{x^2 + y^2} /$$
Title: Re: Forum Now Supports LATEX!
Post by: savy2020 on December 08, 2009, 07:27:24 AM
$$ Hello /$$
Title: Re: Forum Now Supports LATEX!
Post by: savy2020 on January 04, 2010, 12:01:15 PM
$$ \Delta H /$$
Title: Re: Forum Now Supports LATEX!
Post by: Schrödinger on March 17, 2010, 02:44:29 PM
Is it possible for me to hide my text?

Like... the heading says 'click to reveal content (or something else)' and when you click on it the hidden text appears...like in the mathlinks forum?
Title: Re: Forum Now Supports LATEX!
Post by: Mitch on March 17, 2010, 02:52:26 PM
The internet use to use Rot 13 for things like that.

Srry serr gb hfr vg urer ng purzvpnysbehzf.pbz
Title: Re: Forum Now Supports LATEX!
Post by: Schrödinger on March 18, 2010, 12:48:12 AM
Gunax lbh, ohg vfag guvf whfg qrpbqvat ?
Title: Re: Forum Now Supports LATEX!
Post by: Mitch on March 18, 2010, 12:55:37 AM
Lrnu, ohg va n frafr vg npgf yvxr n fcbvyre gnt. Juvpu frrzf gb or jung lbh jrer trggvat ng.
</rot 13>
Title: Re: Forum Now Supports LATEX!
Post by: Schrödinger on March 18, 2010, 01:03:48 AM
Ok, I'm getting tired of having to refer to Wikipedia every time to decode this. It's consuming a lot of time. What does </rot 13> do? I can't seem to use it in my posts
Title: Re: Forum Now Supports LATEX!
Post by: Mitch on March 18, 2010, 02:57:04 AM
It doesn't mean anything, I just put it so you would know what I was doing.

More importantly, you have been doing this by hand!?? Just use this: http://www.rot13.com/
Title: Re: Forum Now Supports LATEX!
Post by: Schrödinger on March 18, 2010, 08:08:33 AM
Thanks for the link Mitch. I'm starting to like this now.
Oh... and please don't mistake my tone in my last post... I was getting totally stressed out doing it by hand
Title: Re: Forum Now Supports LATEX!
Post by: Matias Ekstrand on April 01, 2010, 12:20:21 PM
I'm not exactly sure how you integrated LaTeX into the forum. You didn't use the Mimetex SMF-mod (http://custom.simplemachines.org/mods/index.php?mod=1111) for it due to the different tags and lack of latex button in the text editor menu, so I suppose you made something custom.

I tend to use LaTeX a lot, and the use of a button in the text editor menu to get the tags makes it much simpler to integrate into forum posts.

My suggestion:
- It might be easier for you to use the Mimetex SMF-mod (doesn't cause problems at forum updates compared to custom code).
- If not, could you please create a BBCode button for the LaTeX tags? You could probably use this mod (http://custom.simplemachines.org/mods/index.php?mod=621) for creating it.
Title: Re: Forum Now Supports LATEX!
Post by: haz658 on April 21, 2010, 04:45:33 PM
Practicing.


Code: [Select]
$$ y = mx +b /$$
Title: Re: Forum Now Supports LATEX!
Post by: haz658 on April 21, 2010, 04:46:11 PM
Practicing.

$$ y = mx + b /$$
Title: Re: Forum Now Supports LATEX!
Post by: haz658 on April 21, 2010, 10:19:43 PM
Determining whether what I am about to post will turn out properly. My apologies.



$$\begin {eqnarray} ln \left (\frac{W_{max}} {W} \right) & = & \sum_{n} a_n \alpha_n \mathbf {ln a_n} + \sum_{n} \frac {a_n} {2} (\alpha^{2}_{n})  \nonumber  \\  & = & \sum_{n} a_n \alpha_n \mathbf {(ln a_0 - \beta \varepsilon_n)} + \sum_{n} \frac {a_n} {2} (\alpha^{2}_{n})  \nonumber \end{eqnarray} /$$
Title: Re: Forum Now Supports LATEX!
Post by: haz658 on April 21, 2010, 10:24:27 PM

$$\begin {equarray*} ln \left (\frac{W_{max}} {W} \right) & = & \sum_{n} a_n \alpha_n \mathbf {ln a_n} + \sum_{n} \frac {a_n} {2} (\alpha^{2}_{n}) \\ & = & \sum_{n} a_n \alpha_n \mathbf {(ln a_0 - \beta \varepsilon_n)} + \sum_{n} \frac {a_n} {2} (\alpha^{2}_{n}) \end{equarray*} /$$
Title: Re: Forum Now Supports LATEX!
Post by: haz658 on April 21, 2010, 10:26:11 PM

$$\begin {eqnarray*} ln \left (\frac{W_{max}} {W} \right) & = & \sum_{n} a_n \alpha_n \mathbf {ln a_n} + \sum_{n} \frac {a_n} {2} (\alpha^{2}_{n}) \\ & = & \sum_{n} a_n \alpha_n \mathbf {(ln a_0 - \beta \varepsilon_n)} + \sum_{n} \frac {a_n} {2} (\alpha^{2}_{n}) \end{eqnarray*} /$$



$$\begin {eqnarray} ln \left (\frac{W_{max}} {W} \right) & = & \sum_{n} a_n \alpha_n \mathbf {ln a_n} + \sum_{n} \frac {a_n} {2} (\alpha^{2}_{n}) \\ & = & \sum_{n} a_n \alpha_n \mathbf {(ln a_0 - \beta \varepsilon_n)} + \sum_{n} \frac {a_n} {2} (\alpha^{2}_{n}) \end{eqnarray} /$$
Title: Re: Forum Now Supports LATEX!
Post by: haz658 on April 21, 2010, 10:46:46 PM
My first question is how the authors were able to convert $ ln a_n /$ to $ (ln a_0 - \beta \varepsilon_n /$ , where an is the occupation number of the nth energy level,
Title: Re: Forum Now Supports LATEX!
Post by: haz658 on April 24, 2010, 01:44:21 PM
Sorry. Still practicing.

$$ \frac {dlnW} {da_n} = 0 /$$ for the Boltzmann distribution

$$ a_n = Ne^{\alpha} e^{- \beta \varepsilon_n} /$$

$$ ln a_n = ln a_0 - \beta \varepsilon_n /$$
Title: Re: Forum Now Supports LATEX!
Post by: haz658 on May 01, 2010, 04:34:07 PM
Still practicing.
$$ V_(total) = V^(partial,mol)_(A) n_A + V^(partial,mol)_(B) n_B /$$
Title: Re: Forum Now Supports LATEX!
Post by: haz658 on May 01, 2010, 04:35:51 PM
$$ V_{total} = V^{partial,mol}_{A} n_A + V^{partial,mol}_{B} n_B /$$
Title: Re: Forum Now Supports LATEX!
Post by: haz658 on May 07, 2010, 08:22:24 PM
Checking for errors.

$$ log \left (\frac {W} {W_{max}} \right) = -H log \left (\frac {h} {\frac {N} {2}} \right ) - T log \left (\frac {T} {\frac {N} {2}} \right ) /$$

$$ \alpha = \frac {(H - T)} {N} /$$

$$ H = \left (\frac {N} {2} \right ) (1 + \alpha ) /$$

$$ T = \left (\frac {N} {2} \right ) (1 - \alpha) /$$

$$ \frac {W} {W_{max}} = e^{-N \alpha ^{2}} /$$

$$ ln \left (\frac {W} {W_{max}} \right ) = - \left (\frac {N} {2} \right ) (1 + \alpha) ln (1 + \alpha) - \left (\frac {N} {2} \right ) (1 - \alpha) ln (1 - \alpha) /$$

$$ ln \left (\frac {W} {W_{max}} \right ) = - \left (\frac {N} {2} \right) (1 + \alpha) ln (1 - \alpha ^{2}) + N \alpha ln (1 - \alpha) /$$

$$ W = frac\ {N!} {\prod_{n} a_{n}!} /$$

$$ P_{dc} = \frac {W_dc} {\sum_{n} W_{n}} /$$
Title: Re: Forum Now Supports LATEX!
Post by: haz658 on May 07, 2010, 08:28:24 PM
$$ log \left (\frac {W} {W_{max}} \right) = -H log \left ( \frac {h} {\frac {N} {2}} \right ) - T log \left (\frac {T} { \frac {N} {2}} \right ) /$$
Title: Re: Forum Now Supports LATEX!
Post by: haz658 on May 07, 2010, 08:30:41 PM
$$ log \left (\frac {W} {W_{max}} \right) = -H log \left ( \frac {H} \left ({\frac {N} {2} \right )} \right ) - T log \left (\frac {T} \left ({\frac {N} {2} \right)} \right ) /$$
Title: Re: Forum Now Supports LATEX!
Post by: haz658 on June 14, 2010, 03:46:11 PM
 $$ \Delta G = -RTlnK /$$
Title: Re: Forum Now Supports LATEX!
Post by: cupid.callin on December 11, 2010, 05:04:57 PM
Unuseful
Title: Re: Forum Now Supports LATEX!
Post by: rabolisk on January 22, 2011, 05:23:58 PM
$$ \frac{d[A]}{dt} /$$
Title: Re: Forum Now Supports LATEX!
Post by: Bert95 on May 02, 2011, 09:48:23 AM
test

(https://www.chemicalforums.com/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3F%7B+HA+%5Crightleftharpoons+H%5E%2B+%2B+A%5E-%7D&hash=b4a20a10940379516a62b6ab7e92444e4af402eb)

Title: Re: Forum Now Supports LATEX!
Post by: Mm04302011 on June 11, 2011, 11:57:09 AM
[img]http://www.forkosh.dreamhost.com/mimetex.cgi?{ \Delta{G} = \Delta{H} - T\Delta{S} /$$