<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On May 23, 2013, at 4:52 PM, Nicolae Garleanu <<a href="mailto:garleanu@haas.berkeley.edu">garleanu@haas.berkeley.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">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<span class="Apple-converted-space"> </span><span style="font-weight: bold; ">only</span> 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?</div></blockquote></div><br><div>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.</div><div><br></div><div>That's my wisdom for the day. I am spent.</div><div><br></div><div>Gary</div><div><br></div></body></html>