LaTeX cheat sheet floating menu available!

Hi all,

For those LaTeX users here, you’ve all probably seen the “LaTeX Mathematical Symbols” cheat-sheet on the web. The one I’m most familiar with is available here.

I’ve created a BTT-based version of that cheat-sheet as a floating menu. It creates a single webview, does all the mathematical typesetting using MathJax, and, when you click on the name of a symbol, it inserts the LaTeX code for that symbol in whatever editor is currently active. And the cool thing is that, when Andreas updates BTT Mobile so that webviews displayed there get the same capability that Mac-based webviews have, you should be able to use this on any iOS device, too.

To use it, simply create a floating menu as follows:

Step 1. Configure the size of the web view / HTML item. I suggest setting the max width and max height quite high so that the webview expands to fill the whole screen if you use it on an iOS device.

Step 2. Configure the webview to display the panel. I suggest keeping the webview active in the background because that means that the MathJax code only needs to be processed the first time you open the panel. I’ve hosted the HTML for the panel on my webserver at https://jmckalex.org/btt/latex-macros-btt.html, but feel free to download it to keep a local copy. It’s released under the GPL.

Here's what it looks like when when it runs (you might need to resize the width, initially, in order to get the columns to look right):

I suggest setting a hotkey to toggle this floating menu so you can make it appear only when you need it. If you have floating menus which are more permanent features of your work environment, you can make this LaTeX panel appear over those by adjusting the Z-index.

Share and enjoy!

Jason

2 Likes