On Jul 24, 2008, at 8:29 PM, Paul A. Rubin wrote:
rgheck wrote:
Bruce Pourciau wrote:
A paper I'm writing has a googolplex of symbols with an
\overrightarrow overhead. What would be the best way to make
these insertions in math mode as quick as possible?
Well, you can shorten \overrightarrow by defining a quick math-
macro, e.g.:
\newcommand{\ora}[1]{\overrightarrow{#1}}
Remember that you can actually type that into LyX, then highlight
it, and hit Ctrl-M to declare the macro. And then, if you like,
you can define a shortcut for this: "math-insert \ora" is the
function you would want.
FYI, you can also type 'math-macro ora 1' in the mini-buffer, then
put the cursor in the first of the two boxes in the created inset
and type '\#1' (omitting the quotes both times). The second box is
irrelevant. Does the same thing as what Richard suggested.
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?
\Bruce