Administration > Suggestions
Latex and mhchem
(1/1)
Stevensmay:
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:
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.
Mao:
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.
--- Quote from: Lasercookie on October 09, 2013, 05:59:36 pm ---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.
--- End quote ---
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.
Lasercookie:
--- Quote from: Mao on October 10, 2013, 05:41:10 am ---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.
--- End quote ---
Yeah that's fair enough.
Navigation
[0] Message Index
Go to full version