On Wednesday 17 July 2002 2:00 pm, Andre Poenitz wrote: > On Wed, Jul 17, 2002 at 01:34:09PM +0100, Angus Leeming wrote: > > Remember that I suggested adding a $$lyxlib variable, analogous to $$i, > > $$o that would be expanded to the right thing? > > It looks fine. > > > Nobody seemed that interested, so > > I didn't persue the matter. > > Nobody rejected the proposal so I thought you were going to implement it... > > > > How is the lyxpreview2ppm.sh script found? > > > > Currently I have hardwired the path in my own preferences file > > /usr/users/aleem/lyx/devel/lib/scripts/lyxpreview2ppm.sh > > Another reason to have your extension...
Well the suggestion is fine, but I got a little confused when trying to implement it. I believe that all that would be needed is the equivalent of this: void LyXRC::read(string const & lyxrc_file) { string const lyxlib = OnlyPath(lyxrc_file); ... command = subst(command, "$$lyxlib", lyxlib); } void LyXRC::write(string const & lyxrc_file) { string const lyxlib = OnlyPath(lyxrc_file); ... command = subst(command, lyxlib, "$$lyxlib"); } But I'm not going to delve deeply at the moment. Fancy having a go? Angus