Login

Welcome, Guest. Please login or register.

May 19, 2024, 08:22:25 pm

Author Topic: Latex and mhchem  (Read 2142 times)  Share 

0 Members and 1 Guest are viewing this topic.

Stevensmay

  • Guest
Latex and mhchem
« on: August 27, 2013, 09:23:17 pm »
0
Would it be possible to get the mhchem bundle added to the latex plugin?
Not sure if this is doable, but would make alot of the chem stuff nicer to read.

ftp://www.ctan.org/tex-archive/macros/latex/contrib/mhchem/mhchem.pdf

Lasercookie

  • Honorary Moderator
  • ATAR Notes Legend
  • *******
  • Posts: 3168
  • Respect: +326
Re: Latex and mhchem
« Reply #1 on: October 09, 2013, 05:59:36 pm »
0
I think switching to MathJax as the latex renderer is a good option. It's more or less the standard on the internet now (created by the American Maths Society; wikipedia, stackexchange etc. use it) As far as I can see there's not an SMF module for it, but works based on js script so I'm assuming it'd be possible to set it up. It looks like some LaTeX packages can be enabled http://docs.mathjax.org/en/latest/tex.html#mhchem, such as mhchem. I imagine it would break compatibility with past posts, but if disabling the current LaTeX renderer would leave posts looking like [tex]stuff[/tex] then setting MathJax to use those in addition to the $$ symbols it uses by default would keep those posts working.

It'll switch rendering to be client-side so there shouldn't be an issue of it overloading the AN server, and it'll be better than the LaTeX server we're using at the moment. Works on mobile phones too.
« Last Edit: October 09, 2013, 06:02:29 pm by Lasercookie »

Mao

  • CH41RMN
  • Honorary Moderator
  • Great Wonder of ATAR Notes
  • *******
  • Posts: 9181
  • Respect: +390
  • School: Kambrya College
  • School Grad Year: 2008
Re: Latex and mhchem
« Reply #2 on: October 10, 2013, 05:41:10 am »
0
mhchem is nice in principle, but we can live without it. I'm not quite sure which renderer we are using at the moment, but I can assure you that it won't be trivial to get a new package installed.

I think switching to MathJax as the latex renderer is a good option. It's more or less the standard on the internet now (created by the American Maths Society; wikipedia, stackexchange etc. use it) As far as I can see there's not an SMF module for it, but works based on js script so I'm assuming it'd be possible to set it up. It looks like some LaTeX packages can be enabled http://docs.mathjax.org/en/latest/tex.html#mhchem, such as mhchem. I imagine it would break compatibility with past posts, but if disabling the current LaTeX renderer would leave posts looking like [tex]stuff[/tex] then setting MathJax to use those in addition to the $$ symbols it uses by default would keep those posts working.

It'll switch rendering to be client-side so there shouldn't be an issue of it overloading the AN server, and it'll be better than the LaTeX server we're using at the moment. Works on mobile phones too.

The issue is we don't want to keep playing with the SMF backend, for the problem that upgrading in the future would be problematic. MathJax can make life a little harder, since you'll either need to write a module around the MathJax API to plug into the SMF, or you'll have to hard-code it. Either requires a lot of effort, for not too much gain.

It'll be a different question if there is already a SMF module for MathJax though.
Editor for ATARNotes Chemistry study guides.

VCE 2008 | Monash BSc (Chem., Appl. Math.) 2009-2011 | UoM BScHon (Chem.) 2012 | UoM PhD (Chem.) 2013-2015

Lasercookie

  • Honorary Moderator
  • ATAR Notes Legend
  • *******
  • Posts: 3168
  • Respect: +326
Re: Latex and mhchem
« Reply #3 on: October 10, 2013, 02:41:39 pm »
0
The issue is we don't want to keep playing with the SMF backend, for the problem that upgrading in the future would be problematic. MathJax can make life a little harder, since you'll either need to write a module around the MathJax API to plug into the SMF, or you'll have to hard-code it. Either requires a lot of effort, for not too much gain.

It'll be a different question if there is already a SMF module for MathJax though.
Yeah that's fair enough.