Adds some math/science buttons to the editor on science SE sites. These buttons are useful for converting selected text to math, formatting SI units, and formatting chemical equations.
(The SI units and chem buttons are only enabled on certain sites)
Currently, it runs on these SE sites: Mathematics, Physics, Chemistry, Biology
If you want your mathjax-enabled SE site to be supported, please let me know!
My long term goal is to make this script a part of it (I'm still working on that script, though--so it will be a while)
##Installation##
Click here to install. Will only work in Chrome or Firefox (the latter requires Greasemonkey).
Buttons supported##
###Dollarify ($
)
- Encloses selection in
$...$
- Enabled on all supported sites
- Keyboard shortcut: Alt-M
###Double Dollarify ($$
)
- Encloses selection in
$$...$$
- Enabled on all supported sites
- Keyboard shortcut: None (use Alt-M twice, that should do the trick)
###SI-ify (SI
)
- Encloses selection in
\:\mathrm{...}
(upright text with an extra separator space for SI units) - Enabled on Physics,Chemistry, and Biology
- Keyboard shortcut: Alt-S
###chem-ify (O
2
)
- Encloses selection in
$\ce{...}$
(mhchem chemical equation formatter) - Use the
$
button on the\ce
'd text to make this a block element (use Alt-M) - Enabled on Chemistry only
- Keyboard shortcut: Alt-C
##Screenshots
###Chem
Before:
After:
###Dollarify
Before:
After:
###SI-ify Before:
After (first dollarifying, then SI-ifying)
After: