Am Mittwoch, 2. Februar 2005 15:48 schrieb Bernard Hurley: > Hi, > > I have been trying to write a converter so that I can easily use lyx > with lilypond book. I have a simple shell script that I can use > successfully if I export the lyx file to latex. The problem with using > it as a converter is that the script needs to know the directory that > contains the original lyx file. How can this be achieved?
There is a flag originaldir that you can use to tell LyX to run the converter in the original document directory. Does something like \\converter latex xyz "my_converter $$i $$o" "originaldir" in .lyx/preferences work? Georg