Re: How to create my own LyX commands?

2007-06-12 Thread Hellmut Weber

Hi Steve,
do i understand correctly that you arre looking for a possibility to
define  sort of LyX internal scripts?

In that case go to $LYXDIR (/usr/local/share/lyx in my installation) and
have a look at the bind files (e.g. grep for 'command sequence') to get
an idea what to do.

If I remember some of your contibutions correctly you know how to bind
'something' to a key stroke ;-)

Additionally in the doc directory you find the 'reference.lyx' manual.
I found that very helpful, although it seems partially not fully up to date.

I'd like to make some LyX commands, bound to keystrokes, that accomplish 
several things -- a sort of script.


For instance, I want a function to produce a new line in a math array* thing, 
and place \qquad\text in the last of the four. I can then bind that to a 
hotkey and instantly create new equation lines.


HTH

Hellmut

PS excuse me that you get this message twice, I wanted to send it to the 
list, but I was to quick using the reply button which sent it to you 
directly


--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq





Re: How to create my own LyX commands?

2007-06-12 Thread Hellmut Weber

Hi Steve,
do i understand correctly that you arre looking for a possibility to
define  sort of LyX internal scripts?

In that case go to $LYXDIR (/usr/local/share/lyx in my installation) and
have a look at the bind files (e.g. grep for 'command sequence') to get
an idea what to do.

If I remember some of your contibutions correctly you know how to bind
'something' to a key stroke ;-)

Additionally in the doc directory you find the 'reference.lyx' manual.
I found that very helpful, although it seems partially not fully up to date.

I'd like to make some LyX commands, bound to keystrokes, that accomplish 
several things -- a sort of script.


For instance, I want a function to produce a new line in a math array* thing, 
and place \qquad\text in the last of the four. I can then bind that to a 
hotkey and instantly create new equation lines.


HTH

Hellmut

PS excuse me that you get this message twice, I wanted to send it to the 
list, but I was to quick using the reply button which sent it to you 
directly


--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq





Re: How to create my own LyX commands?

2007-06-12 Thread Hellmut Weber

Hi Steve,
do i understand correctly that you arre looking for a possibility to
define  sort of "LyX internal scripts"?

In that case go to $LYXDIR (/usr/local/share/lyx in my installation) and
have a look at the bind files (e.g. grep for 'command sequence') to get
an idea what to do.

If I remember some of your contibutions correctly you know how to bind
'something' to a key stroke ;-)

Additionally in the doc directory you find the 'reference.lyx' manual.
I found that very helpful, although it seems partially not fully up to date.

I'd like to make some LyX commands, bound to keystrokes, that accomplish 
several things -- a sort of script.


For instance, I want a function to produce a new line in a math array* thing, 
and place \qquad\text in the last of the four. I can then bind that to a 
hotkey and instantly create new equation lines.


HTH

Hellmut

PS excuse me that you get this message twice, I wanted to send it to the 
list, but I was to quick using the reply button which sent it to you 
directly


--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq





How to create my own LyX commands?

2007-06-11 Thread Steve Litt
Hi all,

I'd like to make some LyX commands, bound to keystrokes, that accomplish 
several things -- a sort of script.

For instance, I want a function to produce a new line in a math array* thing, 
and place \qquad\text in the last of the four. I can then bind that to a 
hotkey and instantly create new equation lines.

I've looked through all LyX help files and couldn't find references to how to 
do it. Can someone point me in the right direction?

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: How to create my own LyX commands?

2007-06-11 Thread Jonathan Vogt
Hi,
 I've looked through all LyX help files and couldn't find references to how
 to do it. Can someone point me in the right direction?

right direction would be the math.bind file. I got some similar keybindings. 
so it should be hard to adapt them. The only thing I can't insert so far is a 
space by the way.

\bind M-m u bcommand-sequence math-insert \footnotesize; 
math-insert \matrix; math-insert \hfill; tabular-feature append-column; 
char-forward;
\bind M-m u ncommand-sequence math-insert \stackrel; math-insert 
\textrm;
\bind M-m u S-Hcommand-sequence math-insert \frac{\imath}{\hbar}; 
char-forward;char-forward;

 a list of avaible commands can be found at 
http://wiki.lyx.org/LyX/LyxFunctions

Jonathan


signature.asc
Description: This is a digitally signed message part.


How to create my own LyX commands?

2007-06-11 Thread Steve Litt
Hi all,

I'd like to make some LyX commands, bound to keystrokes, that accomplish 
several things -- a sort of script.

For instance, I want a function to produce a new line in a math array* thing, 
and place \qquad\text in the last of the four. I can then bind that to a 
hotkey and instantly create new equation lines.

I've looked through all LyX help files and couldn't find references to how to 
do it. Can someone point me in the right direction?

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: How to create my own LyX commands?

2007-06-11 Thread Jonathan Vogt
Hi,
 I've looked through all LyX help files and couldn't find references to how
 to do it. Can someone point me in the right direction?

right direction would be the math.bind file. I got some similar keybindings. 
so it should be hard to adapt them. The only thing I can't insert so far is a 
space by the way.

\bind M-m u bcommand-sequence math-insert \footnotesize; 
math-insert \matrix; math-insert \hfill; tabular-feature append-column; 
char-forward;
\bind M-m u ncommand-sequence math-insert \stackrel; math-insert 
\textrm;
\bind M-m u S-Hcommand-sequence math-insert \frac{\imath}{\hbar}; 
char-forward;char-forward;

 a list of avaible commands can be found at 
http://wiki.lyx.org/LyX/LyxFunctions

Jonathan


signature.asc
Description: This is a digitally signed message part.


How to create my own LyX commands?

2007-06-11 Thread Steve Litt
Hi all,

I'd like to make some LyX commands, bound to keystrokes, that accomplish 
several things -- a sort of script.

For instance, I want a function to produce a new line in a math array* thing, 
and place \qquad\text in the last of the four. I can then bind that to a 
hotkey and instantly create new equation lines.

I've looked through all LyX help files and couldn't find references to how to 
do it. Can someone point me in the right direction?

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: How to create my own LyX commands?

2007-06-11 Thread Jonathan Vogt
Hi,
> I've looked through all LyX help files and couldn't find references to how
> to do it. Can someone point me in the right direction?

right direction would be the math.bind file. I got some similar keybindings. 
so it should be hard to adapt them. The only thing I can't insert so far is a 
space by the way.

\bind "M-m u b""command-sequence math-insert \footnotesize; 
math-insert \matrix; math-insert \hfill; tabular-feature append-column; 
char-forward;"
\bind "M-m u n""command-sequence math-insert \stackrel; math-insert 
\textrm;"
\bind "M-m u S-H""command-sequence math-insert \frac{\imath}{\hbar}; 
char-forward;char-forward;"

 a list of avaible commands can be found at 
http://wiki.lyx.org/LyX/LyxFunctions

Jonathan


signature.asc
Description: This is a digitally signed message part.