I've written a script that lets you insert dollar symbols automatically(via a keyboard shortcut or button) in the editor window on Stack Exchange sites that support MathJax. You guys also get a special NP
button(Alt-S, S for sansserif) that encloses the selection in $\mathsf{...}$
.
Also, note that Alt-Z lets you exit math mode--this lets you type math smoothly. For example, you can use Alt-S, type PSPACE, and then use Alt-Z to bring the cursor out of math mode, where you can continue typing. (It's been a big help to me on chem.SE, with the \ce{...}
button--I can type chemical formulae within the flow of the code).
Also, you have Alt-O for Big O notation, but I doubt you'll use it.
Feel free to check it out!
mathsf
,mathrm
andoperatorname
. Maybefrac
. Environments likecases
andalign
(maybe with two lines prefilled?) might be good, too. The possibilities are endless! I imagine it should be easy to build it such that users can easily edit their own combinations in? $\endgroup$ – Raphael♦ May 10 '12 at 7:22localStorage
would make it easy. Note that this isn't supposed to be a catch-all LaTeX editor. This is just for the common ones. Too many and the editor bar explodes (I can add stuff as only-keyboard-shortcuts, though--you guys already have a big O hidden shortcut [Alt-O]). I think what I'll do is leave it as-is for now, and pre-program some extra buttons which you can custom-add (as well as an option to create your own). That'll take a while, though. $\endgroup$ – Manishearth May 10 '12 at 7:30