Skip to main content
reflected key-binding changes, see also https://chemistry.meta.stackexchange.com/q/4264/4945, chat, github
Source Link

About

This userscript gives users quick key bindings to speed up the process of editing mathjax/chem/etc. into posts.

Example usage:

  1. Pressing Alt+I would insert \pi directly.
  2. Pressing Alt+R would insert \mathrm{} with the caret auto-placed in the middle. Pressing Alt-R again would unwrap the \mathrm{} back.
  3. Pressing Alt+R with some text pre-selected would insert \mathrm{text}, retaining the selection on the text. Pressing Alt-R again would unwrap the \mathrm{text} back to text, retaining the selection on text.
  4. Prepending Ctrl to any of the above keybindings will auto-surround the insertion text with $$ (or \$ on some other SE sites)

Do note that the key bindings, hotkeys, and there number and insertions are all completely customizable (absolutely nothing is hardcoded!) So, you can set it to insert \pi on Alt+A instead, or \ice on Alt+I instead.

Moreover, there are certain built-in keycodes like:

  • Alt-Z => dollar-ifying (text => $text$)
  • Alt-C => double dollar-ifying (text => $$text$$)
  • Alt-AS => frac-ify (A/B => \frac{A}{B})
  • Alt-SA => align-ify (image demo)

This also supports the pipe operator to place caret at a user-defined position. Read more on the GitHub page.

This userscript is easily extensible. If your site wants some custom functions to be implemented, please let me know below.

Install link

And view source.


List of default LaTeX commands

Keycode Command
Alt-I   \pi
Alt-R   \mathrm{}
Alt-E   \ce{}
Alt-PW   \pu{}
Alt-T   \text{}

Alt-Z   dollarify
Alt-C   double dollarify
Alt-AS   frac-ify
Alt-SA   align-ify

Note

This userscript expands the featureset of the previous userscript and has been built from the ground up - six years later!

License

Do whatever you wish to do, just don't sell this for money (but may use it in a commercial software's code) or state that you made it yourself. Do post here an answer if you do something cool with this :D

Contribute

Post bugs or feature requests as answers below!

About

This userscript gives users quick key bindings to speed up the process of editing mathjax/chem/etc. into posts.

Example usage:

  1. Pressing Alt+I would insert \pi directly.
  2. Pressing Alt+R would insert \mathrm{} with the caret auto-placed in the middle. Pressing Alt-R again would unwrap the \mathrm{} back.
  3. Pressing Alt+R with some text pre-selected would insert \mathrm{text}, retaining the selection on the text. Pressing Alt-R again would unwrap the \mathrm{text} back to text, retaining the selection on text.
  4. Prepending Ctrl to any of the above keybindings will auto-surround the insertion text with $$ (or \$ on some other SE sites)

Do note that the key bindings, hotkeys, and there number and insertions are all completely customizable (absolutely nothing is hardcoded!) So, you can set it to insert \pi on Alt+A instead, or \ice on Alt+I instead.

Moreover, there are certain built-in keycodes like:

  • Alt-Z => dollar-ifying (text => $text$)
  • Alt-C => double dollar-ifying (text => $$text$$)
  • Alt-A => frac-ify (A/B => \frac{A}{B})
  • Alt-S => align-ify (image demo)

This also supports the pipe operator to place caret at a user-defined position. Read more on the GitHub page.

This userscript is easily extensible. If your site wants some custom functions to be implemented, please let me know below.

Install link

And view source.


List of default LaTeX commands

Keycode Command
Alt-I   \pi
Alt-R   \mathrm{}
Alt-E   \ce{}
Alt-P   \pu{}
Alt-T   \text{}

Alt-Z   dollarify
Alt-C   double dollarify
Alt-A   frac-ify
Alt-S   align-ify

Note

This userscript expands the featureset of the previous userscript and has been built from the ground up - six years later!

License

Do whatever you wish to do, just don't sell this for money (but may use it in a commercial software's code) or state that you made it yourself. Do post here an answer if you do something cool with this :D

Contribute

Post bugs or feature requests as answers below!

About

This userscript gives users quick key bindings to speed up the process of editing mathjax/chem/etc. into posts.

Example usage:

  1. Pressing Alt+I would insert \pi directly.
  2. Pressing Alt+R would insert \mathrm{} with the caret auto-placed in the middle. Pressing Alt-R again would unwrap the \mathrm{} back.
  3. Pressing Alt+R with some text pre-selected would insert \mathrm{text}, retaining the selection on the text. Pressing Alt-R again would unwrap the \mathrm{text} back to text, retaining the selection on text.
  4. Prepending Ctrl to any of the above keybindings will auto-surround the insertion text with $$ (or \$ on some other SE sites)

Do note that the key bindings, hotkeys, and there number and insertions are all completely customizable (absolutely nothing is hardcoded!) So, you can set it to insert \pi on Alt+A instead, or \ice on Alt+I instead.

Moreover, there are certain built-in keycodes like:

  • Alt-Z => dollar-ifying (text => $text$)
  • Alt-C => double dollar-ifying (text => $$text$$)
  • Alt-S => frac-ify (A/B => \frac{A}{B})
  • Alt-A => align-ify (image demo)

This also supports the pipe operator to place caret at a user-defined position. Read more on the GitHub page.

This userscript is easily extensible. If your site wants some custom functions to be implemented, please let me know below.

Install link

And view source.


List of default LaTeX commands

Keycode Command
Alt-I   \pi
Alt-R   \mathrm{}
Alt-E   \ce{}
Alt-W   \pu{}
Alt-T   \text{}

Alt-Z   dollarify
Alt-C   double dollarify
Alt-S   frac-ify
Alt-A   align-ify

Note

This userscript expands the featureset of the previous userscript and has been built from the ground up - six years later!

License

Do whatever you wish to do, just don't sell this for money (but may use it in a commercial software's code) or state that you made it yourself. Do post here an answer if you do something cool with this :D

Contribute

Post bugs or feature requests as answers below!

added 268 characters in body
Source Link

About

This userscript gives users quick key bindings to speed up the process of editing mathjax/chem/etc. into posts.

Example usage:

  1. Pressing Alt+I would insert \pi directly.
  2. Pressing Alt+R would insert \mathrm{} with the caret auto-placed in the middle. Pressing Alt-R again would unwrap the \mathrm{} back.
  3. Pressing Alt+R with some text pre-selected would insert \mathrm{text}, retaining the selection on the text. Pressing Alt-R again would unwrap the \mathrm{text} back to text, retaining the selection on text.
  4. Prepending Ctrl to any of the above keybindings will auto-surround the insertion text with $$ (or \$ on some other SE sites)

Do note that the key bindings, hotkeys, and there number and insertions are all completely customizable (absolutely nothing is hardcoded!) So, you can set it to insert \pi on Alt+A instead, or \ice on Alt+I instead.

Moreover, there are certain built-in keycodes like:

  • Alt-Z => dollar-ifying (text => $text$)
  • Alt-C => double dollar-ifying (text => $$text$$)
  • Alt-A => frac-ify (A/B => \frac{A}{B})
  • Alt-S => align-ify (image demo)

This also supports the pipe operator to place caret at a user-defined position. Read more on the GitHub page.

This userscript is easily extensible. If your site wants some custom functions to be implemented, please let me know below.

Install link

And view source.


List of default LaTeX commands

Keycode Command
Alt-I   \pi
Alt-R   \mathrm{}
Alt-E   \ce{}
Alt-P   \pu{}
Alt-T   \text{}

Alt-Z   dollarify
Alt-C   double dollarify
Alt-A   frac-ify
Alt-S   align-ify

Note

This userscript expands the featureset of the previous userscript and has been built from the ground up - six years later!

License

Do whatever you wish to do, just don't sell this for money (but may use it in a commercial software's code) or state that you made it yourself. Do post here an answer if you do something cool with this :D

Contribute

Post bugs or feature requests as answers below!

About

This userscript gives users quick key bindings to speed up the process of editing mathjax/chem/etc. into posts.

Example usage:

  1. Pressing Alt+I would insert \pi directly.
  2. Pressing Alt+R would insert \mathrm{} with the caret auto-placed in the middle. Pressing Alt-R again would unwrap the \mathrm{} back.
  3. Pressing Alt+R with some text pre-selected would insert \mathrm{text}, retaining the selection on the text. Pressing Alt-R again would unwrap the \mathrm{text} back to text, retaining the selection on text.
  4. Prepending Ctrl to any of the above keybindings will auto-surround the insertion text with $$ (or \$ on some other SE sites)

Do note that the key bindings, hotkeys, and there number and insertions are all completely customizable (absolutely nothing is hardcoded!) So, you can set it to insert \pi on Alt+A instead, or \ice on Alt+I instead.

Moreover, there are certain built-in keycodes like:

  • Alt-Z => dollar-ifying (text => $text$)
  • Alt-C => double dollar-ifying (text => $$text$$)
  • Alt-A => frac-ify (A/B => \frac{A}{B})
  • Alt-S => align-ify (image demo)

This also supports the pipe operator to place caret at a user-defined position. Read more on the GitHub page.

This userscript is easily extensible. If your site wants some custom functions to be implemented, please let me know below.

Install link

And view source.


Note

This userscript expands the featureset of the previous userscript and has been built from the ground up - six years later!

License

Do whatever you wish to do, just don't sell this for money (but may use it in a commercial software's code) or state that you made it yourself. Do post here an answer if you do something cool with this :D

Contribute

Post bugs or feature requests as answers below!

About

This userscript gives users quick key bindings to speed up the process of editing mathjax/chem/etc. into posts.

Example usage:

  1. Pressing Alt+I would insert \pi directly.
  2. Pressing Alt+R would insert \mathrm{} with the caret auto-placed in the middle. Pressing Alt-R again would unwrap the \mathrm{} back.
  3. Pressing Alt+R with some text pre-selected would insert \mathrm{text}, retaining the selection on the text. Pressing Alt-R again would unwrap the \mathrm{text} back to text, retaining the selection on text.
  4. Prepending Ctrl to any of the above keybindings will auto-surround the insertion text with $$ (or \$ on some other SE sites)

Do note that the key bindings, hotkeys, and there number and insertions are all completely customizable (absolutely nothing is hardcoded!) So, you can set it to insert \pi on Alt+A instead, or \ice on Alt+I instead.

Moreover, there are certain built-in keycodes like:

  • Alt-Z => dollar-ifying (text => $text$)
  • Alt-C => double dollar-ifying (text => $$text$$)
  • Alt-A => frac-ify (A/B => \frac{A}{B})
  • Alt-S => align-ify (image demo)

This also supports the pipe operator to place caret at a user-defined position. Read more on the GitHub page.

This userscript is easily extensible. If your site wants some custom functions to be implemented, please let me know below.

Install link

And view source.


List of default LaTeX commands

Keycode Command
Alt-I   \pi
Alt-R   \mathrm{}
Alt-E   \ce{}
Alt-P   \pu{}
Alt-T   \text{}

Alt-Z   dollarify
Alt-C   double dollarify
Alt-A   frac-ify
Alt-S   align-ify

Note

This userscript expands the featureset of the previous userscript and has been built from the ground up - six years later!

License

Do whatever you wish to do, just don't sell this for money (but may use it in a commercial software's code) or state that you made it yourself. Do post here an answer if you do something cool with this :D

Contribute

Post bugs or feature requests as answers below!

added 102 characters in body
Source Link

About

This userscript gives users some quick key bindings to speed up the process of editing mathjax/chem/etc. into posts.

Example usage: (the hotkeys are customizable!)

  1. Pressing Alt+Shift+PI would insert \pi directly.
  2. Pressing Alt+R would insert \mathrm{} with the caret auto-placed in the middle. Pressing AltAlt-RR again would unwrap the \mathrm{} back.
  3. Pressing Alt+R with some text pre-selected would insert \mathrm{text}, retaining the selection on the text. Pressing AltAlt-RR again would unwrap the \mathrm{text} back to text, retaining the selection on text.
  4. Prepending Ctrl to any of the above keybindings will auto-surround the insertion text with $$ (or \$ on some other SE sites)
  5. The keybinding and its associated insertion text can be modified by the user. So, you can set it to insert \pi on Alt+A instead.

Do note that the key bindings, hotkeys, and there number and insertions are all completely customizable (absolutely nothing is hardcoded!) So, you can set it to insert \pi on Alt+A instead, or \ice on Alt+I instead.

Moreover, there are certain reservedbuilt-in keycodes like:

  • Alt-Z => dollar-ifying (text => $text$)
  • Alt-C => double dollar-ifying (text => $$text$$)
  • Alt-A => frac-ify (A/B => \frac{A}{B})
  • Alt-S => align-ify (image demo)

You can still change their keycode or entirely disable them as well, the given Z/C/A/etc. keycombos are justThis also supports the default valuespipe operator to place caret at a user-defined position. Read more on the GitHub page.

This userscript is easily extensible. If your site wants some custom functions to be implemented, please let me know below.

Install link

And view source.


Note

This userscript expands the featureset of the previous userscript and has been built from the ground up - six years later!

License

Do whatever you wish to do, just don't sell this for money (but may use it in a commercial software's code) or state that you made it yourself. Do post here an answer if you do something cool with this :D

Contribute

Post bugs or feature requests as answers below!

About

This userscript gives users some quick key bindings to speed up the process of editing mathjax/chem/etc. into posts.

Example usage: (the hotkeys are customizable!)

  1. Pressing Alt+Shift+P would insert \pi directly.
  2. Pressing Alt+R would insert \mathrm{} with the caret auto-placed in the middle. Pressing Alt-R again would unwrap the \mathrm{} back.
  3. Pressing Alt+R with some text pre-selected would insert \mathrm{text}, retaining the selection on the text. Pressing Alt-R again would unwrap the \mathrm{text} back to text, retaining the selection on text.
  4. Prepending Ctrl to any of the above keybindings will auto-surround the insertion text with $$ (or \$ on some other SE sites)
  5. The keybinding and its associated insertion text can be modified by the user. So, you can set it to insert \pi on Alt+A instead.

Moreover, there are certain reserved keycodes like:

  • Alt-Z => dollar-ifying (text => $text$)
  • Alt-C => double dollar-ifying (text => $$text$$)
  • Alt-A => frac-ify (A/B => \frac{A}{B})
  • Alt-S => align-ify (image demo)

You can still change their keycode or entirely disable them as well, the given Z/C/A/etc. keycombos are just the default values. Read more on the GitHub page.

Install link

And view source.


Note

This userscript expands the featureset of the previous userscript and has been built from the ground up - six years later!

License

Do whatever you wish to do, just don't sell this for money (but may use it in a commercial software's code) or state that you made it yourself. Do post here an answer if you do something cool with this :D

Contribute

Post bugs or feature requests as answers below!

About

This userscript gives users quick key bindings to speed up the process of editing mathjax/chem/etc. into posts.

Example usage:

  1. Pressing Alt+I would insert \pi directly.
  2. Pressing Alt+R would insert \mathrm{} with the caret auto-placed in the middle. Pressing Alt-R again would unwrap the \mathrm{} back.
  3. Pressing Alt+R with some text pre-selected would insert \mathrm{text}, retaining the selection on the text. Pressing Alt-R again would unwrap the \mathrm{text} back to text, retaining the selection on text.
  4. Prepending Ctrl to any of the above keybindings will auto-surround the insertion text with $$ (or \$ on some other SE sites)

Do note that the key bindings, hotkeys, and there number and insertions are all completely customizable (absolutely nothing is hardcoded!) So, you can set it to insert \pi on Alt+A instead, or \ice on Alt+I instead.

Moreover, there are certain built-in keycodes like:

  • Alt-Z => dollar-ifying (text => $text$)
  • Alt-C => double dollar-ifying (text => $$text$$)
  • Alt-A => frac-ify (A/B => \frac{A}{B})
  • Alt-S => align-ify (image demo)

This also supports the pipe operator to place caret at a user-defined position. Read more on the GitHub page.

This userscript is easily extensible. If your site wants some custom functions to be implemented, please let me know below.

Install link

And view source.


Note

This userscript expands the featureset of the previous userscript and has been built from the ground up - six years later!

License

Do whatever you wish to do, just don't sell this for money (but may use it in a commercial software's code) or state that you made it yourself. Do post here an answer if you do something cool with this :D

Contribute

Post bugs or feature requests as answers below!

deleted 103 characters in body
Source Link
Loading
move to github instead of creating gists everytime
Source Link
Loading
added 198 characters in body
Source Link
Loading
Source Link
Loading