Thanks! > 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 > Yes this does work, but doing it this way causes all sorts of other problems. For instance it is then not possible to combine it with other converters (e.g. if you wish to view the final postscript). I have come up with a kludge, I start lyx a script that sets an environmental variable to the pwd which the converter script then picks up. This has the drawback that I need a separate invocation of lyx for every lilypond score I am working on. It beats having to export to a latex file and call lilypond-book by hand, but it would be much neater if the directory of the lyx document could be passed as a parameter to the converter.
BTW are the converter flags documented anywhere? Bernard -- Bernard Hurley <[EMAIL PROTECTED]>