Paul A. Rubin wrote:
Bruce Pourciau wrote:

However, I'd be tempted to take a different route. Pick a key combination you don't have much use for and bind it to 'math-insert \overrightarrow'. Then whack that key combo while you're in a math inset and type whatever your vectorizing under the arrow.

/Paul


Thanks, Richard and Paul. I like the binding key combination idea. But I haven't been able to find the steps to do this. I'm on a Mac. Do I just find the Mac bind file and edit it?

Disclaimer: I'm not a Mac user (too left-brained, I guess), but I think it works pretty much the same there as on other platforms. Tools -> Preferences -> User interface -> Bind file will tell you which bind file you are currently using (presumably the one you want to hack). Browse should open the directory it lives in (normally <LyX root>/Resources/bind in my experience). I suggest you copy it to your local bind directory (see Help -> About LyX -> User dir to locate the parent of the local bind directory). Open it in whatever the Mac text editor is and add

\bind "..." "math-insert \overrightarrow"

at the bottom (replacing ... with whatever key combo you want to use). Save and restart LyX. LyX should automatically take the hacked bind file in preference to the original.

That all looks right to me.

FYI, 1.6 will have (when it is released, but it does now have in beta) a GUI shortcut editor that makes this easier.

rh

Reply via email to