General ⇒ Using a BIB file in a different directory
-
- Posts: 105
- Joined: Fri Nov 30, 2007 11:32 pm
Using a BIB file in a different directory
I tried
(1) \bibliography{C:/bibfile/refer}
(2) \bibliography{C:/bibfile/refer.bib}
(3) \bibliography{"C:/bibfile/refer.bib"}
None of the above work. The bibliography is not compiled. However, if I put the refer.bib file in C:/latexfile then everything works fine.
I would ideally like to have a single .bib file in one place and use it for my manuscripts which are spread out in different directories.
Thanks in advance for your help.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: Using a BIB file in a different directory
Regards,
B.A
Re: Using a BIB file in a different directory
-
- Posts: 105
- Joined: Fri Nov 30, 2007 11:32 pm
Re: Using a BIB file in a different directory
Juanjo, I had made a mistake in typing out the example here. The path was complete when I tried those options. I have edited the example that I posted here.
Re: Using a BIB file in a different directory
BIBINPUTS can be specified in System Properties->'Advanced' tab -> 'Environment variables' button (I'm not sure of the exact names, as I'm translating from french).
Regards,
B.A.
-
- Posts: 105
- Joined: Fri Nov 30, 2007 11:32 pm
Re: Using a BIB file in a different directory
Yes I am using MiKTeX. I am using Winedt for the editor. The operating system is Win XP. When you say that I can add C:/bibfile to the path, do you mean adding it to the PATH in My Computer -> Properties -> Advanced ->Enivronment Variables ->System Variables ->Path.
Thanks for your help.