Skip to main content
7 of 16
added 49 characters in body
Manishearth
  • 2.7k
  • 16
  • 39

MathJax Buttons

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. There are also keyboard shortcuts for them, which are IMO more useful than the buttons themselves.

(The SI units and chem buttons are only enabled on certain sites)

Currently, it runs on the SE sites listed here, which have an "implemented" next to them. I'll make a proper list once I finish screening the sites.

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##

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 (O2)

  • 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

(Full button list below for more site-specific buttons)

##Screenshots

###Chem

Before:

enter image description here After: enter image description here

###Dollarify

Before:

enter image description here

After: enter image description here

###SI-ify Before:

enter image description here

After (first dollarifying, then SI-ifying)

After: enter image description here

Manishearth
  • 2.7k
  • 16
  • 39