> Johan Ingvast wrote: > > > Hi > > > > On Wed, 9 Feb 2005, samar j. singh wrote: > > > > >>2. In beamer is it possible to create macros that insert ERT with a specific > >>keypress? > > > > I guess that you mean in the beamer class. Right? > > Lyx lacks the possibility to have class sensitive key-bindings. But you > > can always make a binding that inserts something, but then the binding will be > > valid in all documents. > > This is what I have in my personal bind-file to create an ERT > > \bind M-r "command-sequence ert-insert; self-insert \\rb{} ; inset-toggle" > > So by pressing M-r the macro creates a ERT put \rb{} into it and closes it. > > > > There's a work-around if you want, for instance, bindings unique to the > beamer class. Create a separated document home directory for beamer > presentations. The first time you start LyX in that directory, it > should create another copy of the local file tree. (If you've edited > preferences, you'll either need to do so again here, or copy the > preferences file from your usual document home.) Now copy your key > bindings file into the ./bind folder of the new directory and edit that > copy to contain beamer-specific bindings.
Hi Paul Yes, that sounds neat. However, as beamer has become my default presentaiton maker these documents are all over the place, so it may have a lot of value for someone who actually has a presentations directory. However, I appreciate the suggestion. samar