in reply to Re: Hacking a source filter into the #! line in thread Hacking a source filter into the #! line
To expand on the previous idea, LyX can produce lots of different document outputs including DVI, postscript, and PDF through multiple toolchains. I could add a "Run Perl" output document style, which would apply the source filter and run it. The problem is that the code is not run in a terminal (unless you started LyX in a terminal), so I would not be able to feed any arguments to the command. I tried invoking Prima, to see if I could provide a cross-platform mechanisms for getting user input, but encountered trouble. This still may be the best way to do things, but it'll be hard.
|