Re: help to build a macro or substitution
On 24 Feb 2003, Jean-Marc Lasgouttes wrote: > > "Christian" == Christian Ridderström <[EMAIL PROTECTED]> writes: > Christian> PS. Does anyone know of an LFUN for marking the word that > Christian> the cursor is either inside, or just next to? DS > > Maybe word-select? > word-select works beatifully. I put some examples of command sequences here: http://ev-en.org/wiki/moin.cgi/LyxCommandSequences and I'd actually found 'word-select' by looking at the available LFUNS here: http://ev-en.org/wiki/moin.cgi/LyxDevelLFUNs#line17 /Christian -- Christian Ridderström, +46-8-790 91 37 http://www.md.kth.se/~chr Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se
Re: help to build a macro or substitution
> "Christian" == Christian Ridderström <[EMAIL PROTECTED]> writes: Christian> PS. Does anyone know of an LFUN for marking the word that Christian> the cursor is either inside, or just next to? DS Maybe word-select? JMarc
Re: help to build a macro or substitution
On 22 Feb 2003, Paco Cruz wrote: > On Sat, 2003-02-22 at 00:30, Christian Ridderström wrote: > > > Have a look here, I think it should do what you want: > > > > http://ev-en.org/wiki/moin.cgi/LyxCommandSequences > > > > Hello Christian > > Thanks a lot for the solution :-) > > Nevertheless I really want to know more on this topic and that LFUN you > ask about. I understand that it means "Lyx/Latex Function". Am I right? Lyx function AFAIK > Where could I find more information o command sequences and LFUN? I have > searched the Lyx docs and Google again but with very little success, > only a couple of messages in the devel-list that where like klingon to > me :-) Look to the source... :-) What little I know about LFUN's is summed up here: http://ev-en.org/wiki/moin.cgi/LyxDevelLFUNs but you'll also find links to some of the actual source files that you can look at for more details. And you can always send questions to [EMAIL PROTECTED] and ask specific questions about what a certain lfun actually does (or is supposed to do). If you do that and get a good answer, please add it to the LFUN page above. /Christian -- Christian Ridderström, +46-8-790 91 37 http://www.md.kth.se/~chr Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se
Re: help to build a macro or substitution
On Sat, 2003-02-22 at 00:30, Christian Ridderström wrote: > Have a look here, I think it should do what you want: > >http://ev-en.org/wiki/moin.cgi/LyxCommandSequences > > /Christian > > PS. Does anyone know of an LFUN for marking the word that the cursor is > either inside, or just next to? DS > > -- > Christian Ridderström http://www.md.kth.se/~chr Hello Christian Thanks a lot for the solution :-) Nevertheless I really want to know more on this topic and that LFUN you ask about. I understand that it means "Lyx/Latex Function". Am I right? Where could I find more information o command sequences and LFUN? I have searched the Lyx docs and Google again but with very little success, only a couple of messages in the devel-list that where like klingon to me :-) Thank you again Paco
Re: help to build a macro or substitution
On 21 Feb 2003, Paco Cruz wrote: > Hello all > > I have a document with a myriad of acronyms (3 or 4 letters) in it. > There is not a clear pattern on those acronyms to do a search & replace > on them. > > Well, I need to build a macro (or something :-) ) to do the following: > > I mark the acronym in the document (i.e. EFDO), run the macro > (preferably via a key binding) and the acronym is put in ERT as follow > \lsc{EFDO} > Have a look here, I think it should do what you want: http://ev-en.org/wiki/moin.cgi/LyxCommandSequences /Christian PS. Does anyone know of an LFUN for marking the word that the cursor is either inside, or just next to? DS -- Christian Ridderström http://www.md.kth.se/~chr
help to build a macro or substitution
Hello all I am using the all-new Lyx 1.3.0 with the Qt GUI on Mandrake 9 and I must say it is superb. Lots of kudos to the development team :-) I have a document with a myriad of acronyms (3 or 4 letters) in it. There is not a clear pattern on those acronyms to do a search & replace on them. Well, I need to build a macro (or something :-) ) to do the following: I mark the acronym in the document (i.e. EFDO), run the macro (preferably via a key binding) and the acronym is put in ERT as follow \lsc{EFDO} I have searched both the docs and H. Voss' Tips & Tricks site looking for "macros", "substitution" and anything related, to no avail. Where could I find information about doing this macro-substitution thing in lyx/latex? Thank you all Paco