Re: keyboard binding for font in math mode

2012-01-09 Thread Bob Alvarez
I found that these work. I suggest using these in the Math mode font 
toolbar since the current approach leaves the cursor outside the insert 
text box


# insert in mathbf font or mathcal
\bind C-M-bcommand-sequence math-insert \mathbf; 
char-backward
\bind C-M-ecommand-sequence math-insert \mathcal; 
char-backward


Bob

On 1/6/12 10:48 AM, Bob Alvarez wrote:

I use multiple fonts in my equations and it is tedious to type for
example \mathcal every time I want to insert a character with that font.
So I wrote a keyboard binding that takes over the control-e in cua.bind

\bind C-emath-insert \mathcal

This works OK but it leaves the cursor to the right of the entry box so
every time I have to type a left-arrow to get into the box.

Is there any way to define the binding so I end up inside the box?

TIA

Bob

p.s. I got the command from the font tools that appear at the bottom of
the window in math mode. But that does the same thing i.e. does not end
up in the box

pps. I am a mailing list newbie. How do I reply to messages so they end
up in the same thread with my original. I think I am supposed to have an
in-reply-to field in the message header but how do I do this with
thunderbird?

ppps. I am using Lyx 1.6.5 on Windows XP





Re: keyboard binding for font in math mode

2012-01-09 Thread Bob Alvarez
I found that these work. I suggest using these in the Math mode font 
toolbar since the current approach leaves the cursor outside the insert 
text box


# insert in mathbf font or mathcal
\bind C-M-bcommand-sequence math-insert \mathbf; 
char-backward
\bind C-M-ecommand-sequence math-insert \mathcal; 
char-backward


Bob

On 1/6/12 10:48 AM, Bob Alvarez wrote:

I use multiple fonts in my equations and it is tedious to type for
example \mathcal every time I want to insert a character with that font.
So I wrote a keyboard binding that takes over the control-e in cua.bind

\bind C-emath-insert \mathcal

This works OK but it leaves the cursor to the right of the entry box so
every time I have to type a left-arrow to get into the box.

Is there any way to define the binding so I end up inside the box?

TIA

Bob

p.s. I got the command from the font tools that appear at the bottom of
the window in math mode. But that does the same thing i.e. does not end
up in the box

pps. I am a mailing list newbie. How do I reply to messages so they end
up in the same thread with my original. I think I am supposed to have an
in-reply-to field in the message header but how do I do this with
thunderbird?

ppps. I am using Lyx 1.6.5 on Windows XP





Re: keyboard binding for font in math mode

2012-01-09 Thread Bob Alvarez
I found that these work. I suggest using these in the Math mode font 
toolbar since the current approach leaves the cursor outside the insert 
text box


# insert in mathbf font or mathcal
\bind "C-M-b""command-sequence math-insert \mathbf; 
char-backward"
\bind "C-M-e""command-sequence math-insert \mathcal; 
char-backward"


Bob

On 1/6/12 10:48 AM, Bob Alvarez wrote:

I use multiple fonts in my equations and it is tedious to type for
example \mathcal every time I want to insert a character with that font.
So I wrote a keyboard binding that takes over the control-e in cua.bind

\bind "C-e""math-insert \mathcal"

This works OK but it leaves the cursor to the right of the entry box so
every time I have to type a left-arrow to get into the box.

Is there any way to define the binding so I end up inside the box?

TIA

Bob

p.s. I got the command from the font tools that appear at the bottom of
the window in math mode. But that does the same thing i.e. does not end
up in the box

pps. I am a mailing list newbie. How do I reply to messages so they end
up in the same thread with my original. I think I am supposed to have an
"in-reply-to" field in the message header but how do I do this with
thunderbird?

ppps. I am using Lyx 1.6.5 on Windows XP