David Soukal wrote:
Dear LyXers,
I would like to ask you for help with the following problem. I'm writing
papers with my advisor and we decided to use LyX. She uses Windows
version while I work from Linux. Our problem is sharing documents with
BibTeX references. While sharing LyX documents works flawlessy, we have
problems with BibTeX generated references.
The problem is where to store the BibTeX files. Each of us would like to
have the references in a place where they can be accesses from several
papers. The problem is how to achieve this in situation where the
database is in different locations on different machines. For example,
my advisor prefers c:\papers\bibliography\1994.bib while I prefer
~/work/references/1994.bib. When I'm entering the database file in LyX,
I have two options, either hit the Browse button in which case LyX
enters the full path, or I can manually add relative path.
I thought I'd add a symbolic link into each directory with a paper and
then I'd add the databases using relative path, like so
./ref/1994.bib,
where "ref" is the link to whatever directory the database is stored in
on particular machine (e.g. ~/work/references for on my machine).
Now, while this works for me on Linux. Windows shortcuts don't seem to
do the trick.
My question is, does anybody have experience with sharing LyX documents
with BibTeX references that are not stored in one fixed place?
Thank you for any comments,
David
If your advisor has installed (or is willing to install) the MinSYS
system (subsystem? package? whatever), you can use symbolic links. I
believe MinSYS is mandatory for LyX 1.3.6 and later on Windows.
From MinSYS's interactive shell, you create the link pretty much as you
would on Linux, other than to remember that the C: drive is /c in
MinSYS. So, for instance, you would use
ln -s /c/papers/bibliography ./ref
on her machine. Alternatively, you can do the same thing from a DOS
command prompt, by providing the path to ln if necessary, for instance
"C:\Program Files\msys\1.0\bin\ln.exe" -s /c/papers/bibliography ./ref
(assuming the default installation location).
I've tried it here (Win XP) and it seems to work as expected.
Paul