Re: External commands?
On 2009-02-06, Richard Heck wrote: > Guenter Milde wrote: >> On 2009-02-06, Matts Lindström wrote: > Actually, if you combine my suggestion with yours, there is a way to do > this: Define a new format (lyx2, say) and a converter for it that does > whatever you want to do, eventually over-writing the LyX file on disk > (if you really do wish to do that!). I wish to do that, but it fails: I defined a new file format "LyX (edit source)" a new converter LyX -> LyX (edit source) calling my text editor: xjed $$i Now, File>Export LyX (edit source) opens up the text editor, but with a temp-file in the lyx_tempdir and after saving the edited result and closing, LyX says that there was an error converting my file. It looks like I have to wait for 1.6.2 and the vc-something lfun. Günter
Re: External commands?
Thanks for the tips! Matts On Sat, Feb 7, 2009 at 10:56 PM, Pavel Sanda wrote: > Matts Lindström wrote: > > Hello! Simple question: is it possible to pipe the lyx-buffer through a > > external command (for instance wc or sed on linux?). Running lyx 1.6.1. > > in the upcoming 1.6.2 you can (mis)use vc-command lfun, eg > vc-command RD $$p "yourscript $$i" > > pavel >
Re: External commands?
Matts Lindström wrote: > Hello! Simple question: is it possible to pipe the lyx-buffer through a > external command (for instance wc or sed on linux?). Running lyx 1.6.1. in the upcoming 1.6.2 you can (mis)use vc-command lfun, eg vc-command RD $$p "yourscript $$i" pavel
Re: External commands?
Guenter Milde wrote: On 2009-02-06, Matts Lindström wrote: Hello! Simple question: is it possible to pipe the lyx-buffer through a external command (for instance wc or sed on linux?). Running lyx 1.6.1. AFAIK, no. You will have to modify the source file by external means and then File>Revert (ignoring the warnings). Actually, if you combine my suggestion with yours, there is a way to do this: Define a new format (lyx2, say) and a converter for it that does whatever you want to do, eventually over-writing the LyX file on disk (if you really do wish to do that!). Then File>Revert. rh
Re: External commands?
On 2009-02-06, Matts Lindström wrote: > Hello! Simple question: is it possible to pipe the lyx-buffer through a > external command (for instance wc or sed on linux?). Running lyx 1.6.1. AFAIK, no. You will have to modify the source file by external means and then File>Revert (ignoring the warnings).
Re: External commands?
Matts Lindström wrote: Hello! Simple question: is it possible to pipe the lyx-buffer through a external command (for instance wc or sed on linux?). Running lyx 1.6.1. I'm not sure exactly what you want to do, but (a) you can of course do this outside LyX and (b) you can create some kind of export format and associated converter that will do with the file as you wish. Look at Tools>Preferences>File Formats and T>P>Converters, and the associated documentation. rh
External commands?
Hello! Simple question: is it possible to pipe the lyx-buffer through a external command (for instance wc or sed on linux?). Running lyx 1.6.1. Matts Lindström