BibTeX, biblatex and biber.bib file not found

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Pixer75
Posts: 13
Joined: Tue Mar 15, 2011 3:26 pm

.bib file not found

Post by Pixer75 »

Hi there,

I use LaTeX in both Ubuntu (Kile) and Mac (TeXMaker). In Ubuntu I can add a relative location to my .bib file. However, in Mac, the relative location does not work, which implies that I need to copy my .bib file in the folder where my .tex is compiling. This is not very practical. Does anyone know if this is a Mac issue? or editor issue (I have tried with TeX Shop and TeX Works to no avail)? Any solution easy to implement?

Example below:

Code: Select all

\documentclass[12pt]{article}
\usepackage[margin=1.5in]{geometry}                
\geometry{a4paper}                   

\usepackage[british]{babel} 
\usepackage{csquotes} 

\usepackage[style=authoryear]{biblatex}
\newcommand{\myreferences}{/home/myhome/Documents/Work/MyBibFile.bib}
\addbibresource{\myreferences}

\begin{document}

\printbibliography
\end{document}


The error message is that it cannot find the bibliography database.

Any suggestions?

Thanks.
Last edited by Pixer75 on Wed Jan 08, 2014 2:14 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

.bib file not found

Post by Johannes_B »

Thats a relative path from your tex-file. So the tex would be located in the same depth as the home folder, right? Is the myhome spelling correct on both machines? Did you try to type in the path directly (not with newcommand)?

Can you post the complete *.blg file output by biber?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Pixer75
Posts: 13
Joined: Tue Mar 15, 2011 3:26 pm

Re: .bib file not found

Post by Pixer75 »

I don't understand quite well what you mean by by being "located at the same depth as the home folder". I have a very "hierarchical" (don't know how to call it) folder structure. I create a folder for each chapter of my thesis. So my .tex file is going to be in the respective chapter folder. The structure is particular to each machine and I have two working \addbibliography lines that I comment and uncomment as I move between machines (Ubuntu at home, Mac at work).
myhome is not the actual name for the folder I put it just for the sake of the example; but yes the actual folder name is correctly spelled in my .tex document.
Finally I typed the path directly and didn't work, then decided to try the newcommand line to see if it made a difference. I didn't, though.
Pixer75
Posts: 13
Joined: Tue Mar 15, 2011 3:26 pm

.bib file not found

Post by Pixer75 »

Well I managed to miss Johannes_B's last line. Sorry for that.
Here's the the .blg.
This is BibTeX, Version 0.99d (TeX Live 2012)
Capacity: max_strings=35307, hash_size=35307, hash_prime=30011
The top-level auxiliary file: Introduction.aux
The style file: biblatex.bst
I couldn't open database file /home/ifuchs/Documents/Work/Gender.bib
---line 3 of file Introduction.aux
: \bibdata{Introduction-blx,/home/ifuchs/Documents/Work/Gender
: }
I'm skipping whatever remains of this command
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated wiz_functions (elt_size=4) to 6000 items from 3000.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Database file #1: Introduction-blx.bib
Warning--I didn't find a database entry for "Zizek1989"
Warning--I didn't find a database entry for "Foucault1980"
Warning--I didn't find a database entry for "Hall1997"
Warning--I didn't find a database entry for "Butler2004"
Warning--I didn't find a database entry for "Hall1992"
Warning--I didn't find a database entry for "Butler1997"
Warning--I didn't find a database entry for "Barbero2000"
Warning--I didn't find a database entry for "Allen1995"
Warning--I didn't find a database entry for "Mariscal2006"
Warning--I didn't find a database entry for "Brunner1994"
Warning--I didn't find a database entry for "Canclini1995"
Warning--I didn't find a database entry for "Canclini1990"
Warning--I didn't find a database entry for "Anderson1984"
Warning--I didn't find a database entry for "Warnes2009"
Warning--I didn't find a database entry for "Franco1989"
Warning--I didn't find a database entry for "Richard1997"
Warning--I didn't find a database entry for "Izquierdo2006"
Warning--I didn't find a database entry for "Halberstam2002"
Warning--I didn't find a database entry for "Butler1999"
Warning--I didn't find a database entry for "Masiello2001"
Warning--I didn't find a database entry for "Butler2011a"
Warning--I didn't find a database entry for "Althusser1970"
Biblatex version: 1.7
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated wiz_functions (elt_size=4) to 9000 items from 6000.
You've used 1 entry,
6019 wiz_defined-function locations,
1166 strings with 8548 characters,
and the built_in function-call counts, 1306 in all, are:
= -- 64
> -- 58
< -- 1
+ -- 41
- -- 24
* -- 23
:= -- 295
add.period$ -- 0
call.type$ -- 1
change.case$ -- 0
chr.to.int$ -- 34
cite$ -- 0
duplicate$ -- 12
empty$ -- 92
format.name$ -- 0
if$ -- 289
int.to.chr$ -- 0
int.to.str$ -- 0
missing$ -- 0
newline$ -- 22
num.names$ -- 0
pop$ -- 44
preamble$ -- 1
purify$ -- 0
quote$ -- 0
skip$ -- 74
stack$ -- 0
substring$ -- 117
swap$ -- 1
text.length$ -- 16
text.prefix$ -- 0
top$ -- 1
type$ -- 26
warning$ -- 0
while$ -- 50
width$ -- 0
write$ -- 20
(There was 1 error message)
Thanks,
Post Reply