BibTeX, biblatex and biberInclude Bibliography Database from different Folder

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
WalidSaladin
Posts: 17
Joined: Mon Aug 27, 2012 8:58 pm

Include Bibliography Database from different Folder

Post by WalidSaladin »

My *.tex and *.bib files are in different directories on the same drive. Here is an example of my code:

Code: Select all

\documentclass[a4paper]{article}

\begin{document}
\section{Playing around with Bibliography}
I cite Barnett\cite{Barnett_1970} here.

\bibliography{/media/Data_II/Articles/Glycerol_production/Pf_glycerol_prod_Lib}
\bibliographystyle{plain}
\end{document}
The message I get is:

Code: Select all

[PDFLaTex]FirstLatexdoc.tex => FirstLatexdoc.pdf(pdflatex)
./FirstLatexdoc.bbl:3: Empty 'thebibliography' environment on input line 3.
[PDFLaTeX]0 errors, 1 warning, 0 badboxes
[PDFLaTeX]Done!

[ViewPDF]FirstLatexdoc.pdf(acroread)
[ViewPDF]Done!
How do I fix this problem? The LaTeX front end I am using is Kile.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Include Bibliography Database from different Folder

Post by Stefan Kottwitz »

Set the environment variable BIBINPUTS. On Linux with bash, for example:

Code: Select all

export BIBINPUTS=/media/Data_II/Articles/Glycerol_production
bibtex filename
It could be automatically done using the .bashrc file.

On the command prompt, you can verify the variable:

Code: Select all

kpsewhich -var-value=BIBINPUTS
Stefan
LaTeX.org admin
Post Reply