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

Gary L. Gray gray at psu.edu
Thu May 23 18:23:57 EDT 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?

I must say that after many years of using TeXShop's default "_{}" when an underscore is typed, I have switched it off. TeX is more than happy with $x_A$, and using $x_{A}$ is extra key strokes to get myself out of those darn curly braces. If I have a more involved subscript requiring the {} pair, I would rather type them in myself.

That's my wisdom for the day. I am spent.

Gary

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20130523/75f485dc/attachment.html>


More information about the MacOSX-TeX mailing list