# Math and SI formatting buttons

After having to add dollar signs and format SI units countless times in the review section, I finally got fed up and wrote a script.{*}

It basically adds buttons to enclose the selected text in dollar symbols and \mathrm SI unit formatting.

Here's the userscript. Installation instructions are there.

*With some urging from chem.SE.people, otherwise it was going to be indefinitely in my todo list :P

-

I can't comment (literally, I can't post comments) but I can say that although it's a bit limited in features, it's definitely a step forward for the editor!

-
You can comment here :) . What other features would you like? Note that it has keyboard shortcuts (which ought to be more used than the buttons anyway)--so it's reasonably quick and easy to use. I also fixed the sublinks, thanks for that (had done a file rename, forgot about it :P ) – Manishearth May 4 '12 at 0:40
@Manishearth, Sorry about that, I never received a notification on your comment but I'll try it and report back here :) – Mussri May 9 '12 at 21:34
@Manishearth, How about the following: 1. A choice between "\mathbf and \vec", maybe "\text or \mathrm" for constants, too. If it's easily doable in JS, I'd suggest this too 2. A button to search the selected text and replace brackets (,),[&] to \right( , \left] , ... etc. What do you think? – Mussri May 12 '12 at 10:56
Not really easily doable as a choice, since I'd have to add some configuration. I am planning on making it customizable, so I'll let you know--but that's far off. Actually I'll think about this for a while--maybe I can add some rudimentary customizeability. – Manishearth May 12 '12 at 11:00
@Manishearth, fair enough. – Mussri May 12 '12 at 11:04

## Note to users who installed it before 5/5/12 (3:51 PM UTC):

The script no longer needs to be updated (most updates include the addition of more sites/buttons and tweaks like tooltips). It auto-fetches the updates now.

I suggest you uninstall/reinstall it to run this one-time update

How to uninstall:

• Chrome: Settings>Tools>Extensions. Find the script and delete it
• Firefox: Open the GM settings and remove the script