Andre Poenitz wrote:
> 
> > > It works very well. Thanks for the tip.
> > > But, what if one tries to 'compose' a more complex binding?
> > > For instance, I've tried to 'concatenate' in the same "C-a s" binding a
> > > 'sel-insert' instruction with a 'math-insert ^' one. No luck.
> > > Any ideas out there ?
> > > Thanks again.
> >
> > In Version 1.1.3 there is a new function named "command-sequence"
> > which will probably do what you want.
> 
> I think it will. The syntax is
> 
>  \bind "C-a s" "command-sequence self-insert Hello ; math-insert alpha ;"

Yes, it works fine. Nice trick, thanks.
But, mind me if I insist, where is the explanation obout this function
in the docs ?
> 
> Mind the final semicolon. And it gets tricky once you need to insert a
> semicolon that way. It just occurs to me: We could change the delimiter
> to a newline (does anybody know whether this wil break lyxrc parsing?)
> 
> Or we could use some ed-like syntax
> 
>  \bind "C-a s" "command-sequence <delim>self-insert Hello<delim>math-insert 
>alpha<delim>"
> 
> where  <delim> could be any character that does not occur within the
> commands...
> 
> Andre'
> 
> --
> It'll take a long time to eat 63.000 peanuts.
> Andri Pvnitz ......................... [EMAIL PROTECTED]


-- 
Dr. Luis A. Fernandez
Department of Analytical Chemistry
University of The Basque Country
P.O. Box 644, 48080 Bilbao (Spain)

Reply via email to