After having to add dollar signs and format SI units countless times in the review section on Physics, I finally got fed up and wrote a script.{*}
It basically adds buttons/keyboard shortcuts to enclose the selected text in dollar symbols and \mathrm
SI unit formatting.
For you chemistry guys, there's an extra button that encloses stuff in $\ce{...}$
It's pretty useful in /review
, and also a good shortcut when writing your own posts.
Here's the userscript. Installation instructions are there. (also bugs/feature reqs/whatever)
*With some urging from chem.SE.people, otherwise it was going to be indefinitely in my todo list :P
\begin{aligned}...\end{aligned}
, pretty please. $\endgroup$&=
would be appropriate, as this is the alignment char. $\endgroup$$\ce{...]$
which is quite handy when you write a whole equation. It is hindering if you want to add something likepH=-\ln[\ce{H+}]
or more complicated you will always need to clean the extra$
. I also noticed that SI always inserts a\:
type space, while~
might be more appropriate, if even necessary. (Is this the right place to ask or should I go to stackapps next time.) $\endgroup$