I'm using MiKTeX 2.9, LyX 2.1.3, and biblatex/biber for bibliography management.
I need to have a portable set of project files since I'm working on multiple computers and everything is synchronized using a version control system. Although the relative paths are the same on each computer, the absolute paths are different due to different account names and drive letters. Using BibLatex and LyX requires that the path names to the bib files to be absolute references.
So on Computer A, I need to have the following in the preamble:
\addbibresource{C:/Users/accountname/dir1/dir2/filename.bib}
And on Computer B, I need to have the following:
\addbibresource{S:/dir3/dir1/dir2/filename.bib}
I've tried using both commands together in the same project, but if the first \addbibresource line is used on Computer B, it will fail with a "Cannot find" error when running biblatex. It will work fine on Computer A, since it work for the first file (and then fail on the second).
What I would like it to do is to ignore file missing errors--skip the missing file and use the other bibresource as necessary. Unfortunately, it dies with a fatal error and doesn't attempt the second file. Is this something that could be changed?
Is there another solution I've overlooked? Unfortunately, it seems that something has to give. I either have to give up biblatex/biber and revert back to standard bibtex, with which relative paths worked in LyX. I'm enjoying the flexibility of biblatex and I've spent a lot of time setting it up with my project, so I don't want to give up biblatex. I've read that I could add my bib file to the TEXMF tree, but I'd like to avoid this approach since I don't want to add project specific files to a 'global' repository. I also don't want to have to comment and uncomment the appropriate lines as I switch from computer to computer. I update the project on a daily basis, so it would be tedious to keep manually changing which bibresource is used. Does anyone have any suggestions?
\addbibresource{../Z-Temp/Minibsp/Diplomarbeit.bib}
and it worked fined. Perhaps you only used the wrong "starting point".