This MacOS input method is based on TeX113 input.
- Download the raw format of
LaTeX.inputpluginfile found here. You must make sure to get the original file in the UTF-16 format (do not attempt to cut and paste). The best way to do this is to download the gist as a ZIP file (there is a button in the upper-right corner), or to clone it. - Double-click on the file
LaTeX.inputpluginin Finder. The OS will process it and place the processed file into~/Library/Input Methodsfolder. (Do not place it there by hand.) - Logout and login.
- Go to “System settings → Keyboard → Text input → Edit…”, then press
+in lower-left corner to add a new input method. Find “LaTeX” and add it to your input sources (it might be a bit hard to find, it tends to hide under Chinese, Simplified). - Possbily logout and login again if you do not see LaTeX as input source.
- Set up a convenient keyboard shortcut for switching between keyboards under “System settings → Keyboard → Keyboard shortcuts → Input Source”
To type β switch to the LaTeX input method and type beta and space (no backslash \). Consult LaTeX.inputplugin to see what can be typed.
You may customize the file easily enough, just keep in mind:
-
The file must be saved in UTF-16 format:
- Emacs: use
C-x C-m f, selectutf-16, then save the file. - Visual Studio Code: the coding is displayed in the status line at the bottom, on the right. You may click on it to select an encoding.
- Emacs: use
-
The input string and the symbol must be separated by a TAB.
Wonderful idea!
I created a variant in this gist using
.cinfiles because the.inputpluginformat doesn't support shortcuts differing only by capitalization and I wanted to support all the shortcuts from the Lean 4 VSCode plugin (here).