[OS X TeX] key bindings in ``math mode'' only

Herbert Schulz herbs at wideopenwest.com
Fri May 24 00:45:32 CEST 2013


On May 23, 2013, at 4:52 PM, Nicolae Garleanu <garleanu at haas.berkeley.edu> wrote:

> I was thinking about key bindings again today, and one thing I wish I could do is the following: continue to obtain _{} every time I type _, but only inside a math environment, between $ signs, etc. As an example, if I want to write in my tex file the name of another file (say, a graphics file to include) that contains the character `_', now I have to erase curly brackets. One option is to avoid such characters from file names. If there is a simple way of applying the bindings only in math mode, though, then I could implement that. (Anything complicated will probably not be worth anyone's time.) Is there one?
> Thank you.
> Nicolae

Howdy,

As an aside, there seems to be too many ways to enter math mode to be able to tell if you are there. E.g., $ or $$ (which, unfortunately also end math mode), \( or \[, or \begin{equation} or \begin{align}, etc., etc., etc.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the macostex-archives mailing list