On Wed, Sep 25, 2002 at 05:43:38PM +0200, Andre Poenitz wrote: > On Wed, Sep 25, 2002 at 10:32:10AM -0500, Bo Peng wrote: > > Hi, All > > > > I have mapped '\math-matrix 2 2 cll', '\math-matrix 3 3 clll' to certain > > keys but I still have trouble imputting matrices of other dimensions. I > > would like to have something like: > > > > 1. Press some key(s), say C-s m, (math matrix) > > 2. Be prompted for two argument, I then enter two numbers, say, 2,4 > > 3. Lyx then inserts command: '\math-matrix 2 4 cll' and display a 2 by 4 > > matrix.
> We'd need some work on the minibuffer for this to come true I think. Yes. I just find that command-execute does not have parameter so I can not bind something to 'command-execute math-matrix' and then add parameters. > > I have two solutions in mind: > > > > 1. map all C-s m 1 1, to C-s m 9 9. > > 2. map C-s m to command-execute math-matrix (can command-execute have > > argument?) > > > > but I am not sure they will work. Is there better ways to do this? > None that I am aware of. Thanks. I just implemented the first method: define 6*6=36 key bindings. :-) The second method does not work. BTW, why does math-matrix 3 5 insert a 5 by 3 matrix? (5 lines, 3 columns). This is not the mathematically convention. > But I would think that being able to quickly add rows and columns should > suffice in most cases. You are right. I just want to enter everything from keyboard. -- Bo Peng
