LaTeX forum ⇒ BibTeX, biblatex and biberInclude Bibliography Database from different Folder

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

Include Bibliography Database from different Folder

Postby WalidSaladin » Fri Feb 22, 2013 11:49 am

My *.tex and *.bib files are in different directories on the same drive. Here is an example of my code:
  1. \documentclass[a4paper]{article}
  3. \begin{document}
  4. \section{Playing around with Bibliography}
  5. I cite Barnett\cite{Barnett_1970} here.
  7. \bibliography{/media/Data_II/Articles/Glycerol_production/Pf_glycerol_prod_Lib}
  8. \bibliographystyle{plain}
  9. \end{document}

The message I get is:
  1. [PDFLaTex]FirstLatexdoc.tex => FirstLatexdoc.pdf(pdflatex)
  2. ./FirstLatexdoc.bbl:3: Empty 'thebibliography' environment on input line 3.
  3. [PDFLaTeX]0 errors, 1 warning, 0 badboxes
  4. [PDFLaTeX]Done!
  6. [ViewPDF]FirstLatexdoc.pdf(acroread)
  7. [ViewPDF]Done!

How do I fix this problem? The LaTeX front end I am using is Kile.


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

Postby Stefan Kottwitz » Fri Feb 22, 2013 1:08 pm

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

  1. export BIBINPUTS=/media/Data_II/Articles/Glycerol_production
  2. bibtex filename

It could be automatically done using the .bashrc file.

On the command prompt, you can verify the variable:

  1. kpsewhich -var-value=BIBINPUTS

Stefan admin

Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 2 guests