Chemical Forums

Please login or register.

Login with username, password and session length

Sponsored links

Pages: [1]   Go Down

Author Topic: LaTex on the Forums  (Read 48804 times)

0 Members and 1 Guest are viewing this topic.

Mitch

  • Chemistry Editor
  • Administrator
  • Sr. Member
  • *
  • Mole Snacks: +362/-8
  • Offline Offline
  • Gender: Male
  • Posts: 5099
  • "I bring you peace." -Mr. Burns
    • Chemistry Blog
LaTex on the Forums
« on: December 23, 2011, 10:49:34 AM »

If you like to type in LaTex, simply surround your latex with dollar signs like: $ $ Hello World $ $

But make sure to remove the space between the dollar signs.

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

Edit by Borek:

Site uses MathJax now. You can use [tеx][/tеx] tags for LaTeX equations, or [itеx][/itеx] for inline LaTeX:

For a polynomial [itex]ax^2 + bx +c = 0[/itex] roots take form

[tex]x_{1,2} = \frac {-b\pm\sqrt\Delta}{2a}[/tex]

where [itex]\Delta=b^2-4ac[/itex].

For formatting of single exponents and indices it is better to use [sup][/sup] and [sub][/sub] tags.
« Last Edit: June 04, 2012, 04:10:14 AM by Borek »
Logged
Most Common Suggestions I Make on the Forums.
1. Always start by writing a balanced chemical equation.
2. Don't confuse thermodynamic stability with chemical reactivity.
3. Forum Supports LaTex

billnotgatez

  • Global Moderator
  • Sr. Member
  • ***
  • Mole Snacks: +203/-54
  • Offline Offline
  • Gender: Male
  • Posts: 3556
Re: LaTex on the Forums
« Reply #1 on: December 23, 2011, 04:26:17 PM »

$$ Hello World $$

OK so i am a smart alec
Logged

Borek

  • Mr. pH
  • Administrator
  • Deity Member
  • *
  • Mole Snacks: +1581/-391
  • Offline Offline
  • Gender: Male
  • Posts: 23893
  • I am known to be occasionally wrong.
    • Chembuddy
Re: LaTex on the Forums
« Reply #2 on: December 25, 2011, 10:32:08 PM »

Off again?
Logged
ChemBuddy chemical calculators - stoichiometry, pH, concentration, buffer preparation, titrations.info, pH-meter.info

Mitch

  • Chemistry Editor
  • Administrator
  • Sr. Member
  • *
  • Mole Snacks: +362/-8
  • Offline Offline
  • Gender: Male
  • Posts: 5099
  • "I bring you peace." -Mr. Burns
    • Chemistry Blog
Re: LaTex on the Forums
« Reply #3 on: December 26, 2011, 06:45:14 AM »

Seems fine to me, make sure you have javascript enabled.
Logged
Most Common Suggestions I Make on the Forums.
1. Always start by writing a balanced chemical equation.
2. Don't confuse thermodynamic stability with chemical reactivity.
3. Forum Supports LaTex

Borek

  • Mr. pH
  • Administrator
  • Deity Member
  • *
  • Mole Snacks: +1581/-391
  • Offline Offline
  • Gender: Male
  • Posts: 23893
  • I am known to be occasionally wrong.
    • Chembuddy
Re: LaTex on the Forums
« Reply #4 on: December 27, 2011, 12:59:47 AM »

Strange. I have Java enabled and Mathjax works OK on my computer when I am browsing PF, but it doesn't work on CF. I wonder if it is not another Opera quirk.
Logged
ChemBuddy chemical calculators - stoichiometry, pH, concentration, buffer preparation, titrations.info, pH-meter.info

Mitch

  • Chemistry Editor
  • Administrator
  • Sr. Member
  • *
  • Mole Snacks: +362/-8
  • Offline Offline
  • Gender: Male
  • Posts: 5099
  • "I bring you peace." -Mr. Burns
    • Chemistry Blog
Re: LaTex on the Forums
« Reply #5 on: December 27, 2011, 04:06:06 AM »

Do you have other browsers installed to check?
Logged
Most Common Suggestions I Make on the Forums.
1. Always start by writing a balanced chemical equation.
2. Don't confuse thermodynamic stability with chemical reactivity.
3. Forum Supports LaTex

Borek

  • Mr. pH
  • Administrator
  • Deity Member
  • *
  • Mole Snacks: +1581/-391
  • Offline Offline
  • Gender: Male
  • Posts: 23893
  • I am known to be occasionally wrong.
    • Chembuddy
Re: LaTex on the Forums
« Reply #6 on: December 27, 2011, 04:54:45 AM »

Yes, I already checked that it works correctly under Chrome.

To make things more complicated this very thread doesn't display correctly to me when I visit it just following the standard thread link, but LaTeX was rendered right when I started to reply. Most likely it is something on my machine, but I can't reboot now to check if it helps.
Logged
ChemBuddy chemical calculators - stoichiometry, pH, concentration, buffer preparation, titrations.info, pH-meter.info

Mitch

  • Chemistry Editor
  • Administrator
  • Sr. Member
  • *
  • Mole Snacks: +362/-8
  • Offline Offline
  • Gender: Male
  • Posts: 5099
  • "I bring you peace." -Mr. Burns
    • Chemistry Blog
Re: LaTex on the Forums
« Reply #7 on: December 27, 2011, 07:30:59 AM »

I've also noticed it lags my machine when there is LaTex on the screen. It is why I didn't place any Latex code in my signature as before.
Logged
Most Common Suggestions I Make on the Forums.
1. Always start by writing a balanced chemical equation.
2. Don't confuse thermodynamic stability with chemical reactivity.
3. Forum Supports LaTex

Borek

  • Mr. pH
  • Administrator
  • Deity Member
  • *
  • Mole Snacks: +1581/-391
  • Offline Offline
  • Gender: Male
  • Posts: 23893
  • I am known to be occasionally wrong.
    • Chembuddy
Re: LaTex on the Forums
« Reply #8 on: December 27, 2011, 07:39:52 AM »

Yes, rendering LaTeX heavy pages can be time consuming, but I think it is worth it. Check for example this LaTeX tutorial that was prepared at PF.
« Last Edit: December 27, 2011, 08:00:41 AM by Borek »
Logged
ChemBuddy chemical calculators - stoichiometry, pH, concentration, buffer preparation, titrations.info, pH-meter.info

juanrga

  • Full Member
  • ****
  • Mole Snacks: +16/-11
  • Offline Offline
  • Posts: 231
    • juanrga - sharing unified knowledge in pure and applied sciences
Re: LaTex on the Forums
« Reply #9 on: January 29, 2012, 01:43:38 AM »

If you like to type in LaTex, simply surround your latex with dollar signs like: $ $ Hello World $ $

But make sure to remove the space between the dollar signs.

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

.

And for inline math? I have just tried single dollars but does not work

http://www.chemicalforums.com/index.php?topic=55566.msg201162#msg201162
Logged
Sharing unified knowledge in pure and applied sciences

Borek

  • Mr. pH
  • Administrator
  • Deity Member
  • *
  • Mole Snacks: +1581/-391
  • Offline Offline
  • Gender: Male
  • Posts: 23893
  • I am known to be occasionally wrong.
    • Chembuddy
Re: LaTex on the Forums
« Reply #10 on: January 29, 2012, 02:38:07 AM »

Using single dollar signs is tricky, as they are often used just in text. As forum posts don't follow strict format of LaTeX document, it is impossible for MathJax engine to differentiate between $10 + $20 intended to mean $30, and $10$ that is intended to be an inline formula.

Edit: see http://www.mathjax.org/docs/1.1/tex.html for more details.
« Last Edit: January 29, 2012, 02:56:55 AM by Borek »
Logged
ChemBuddy chemical calculators - stoichiometry, pH, concentration, buffer preparation, titrations.info, pH-meter.info

juanrga

  • Full Member
  • ****
  • Mole Snacks: +16/-11
  • Offline Offline
  • Posts: 231
    • juanrga - sharing unified knowledge in pure and applied sciences
Re: LaTex on the Forums
« Reply #11 on: January 29, 2012, 03:17:08 AM »

Using single dollar signs is tricky, as they are often used just in text. As forum posts don't follow strict format of LaTeX document, it is impossible for MathJax engine to differentiate between $10 + $20 intended to mean $30, and $10$ that is intended to be an inline formula.

Edit: see http://www.mathjax.org/docs/1.1/tex.html for more details.

Thank you. I tried to modify the post, but passed the time limit. I have submitted another post with the parentheses delimiters and works. Please, feel free to delete the old post containing the dollars signs

http://www.chemicalforums.com/index.php?topic=55566.msg201162#msg201162
Logged
Sharing unified knowledge in pure and applied sciences

Borek

  • Mr. pH
  • Administrator
  • Deity Member
  • *
  • Mole Snacks: +1581/-391
  • Offline Offline
  • Gender: Male
  • Posts: 23893
  • I am known to be occasionally wrong.
    • Chembuddy
Logged
ChemBuddy chemical calculators - stoichiometry, pH, concentration, buffer preparation, titrations.info, pH-meter.info
Pages: [1]   Go Up
 

Mitch Andre Garcia's Chemical Forums 2003-Present.

Page created in 0.064 seconds with 23 queries.