I just ran into a problem related to a file that was in the same catalog as the .lyx-file, but where the reference to the file wasn't changed in the temporary .tex-file.
When lyx creates the .tex-file in the temporary directory, I noticed that a reference to a local file in for instance the command \bibliography{} was changed to an absolute references since the temporary tex-file will be in another directory. I also noticed that that the line below is added to the temporary .tex-file [EMAIL PROTECTED]/home/chr/public_html/lyx/examples/bibunits//}} so 'normal' files will be found. However, I ran into problems when I was using bibinputs since bibtex couldn't find the local files. So one alternative could be to add something like: \def\bibinput... if there is such a thing as a 'bibinput' variable. Or, which ought to solve a more general problem, add support for inserting a latex commands like this: \bibdata{\lyxTranslateDir{aLocalBibtexFile}} (a better name than 'lyxTranslateDir' is needed though) where the command \lyxTranslateDir{} is defined in the beginning of the .tex-file, and it converts its argument properly depending on where the .tex-file is exported. Is there already a mechanism for this, or should I bugzilla the above? /Christian -- Christian Ridderström http://www.md.kth.se/~chr