Alex Casti wrote:
Hello.  I'm running the Linux version 1.4.3 on Fedora
5 (64 bit).  I'm having trouble with the usual tried
and true method of inserting references with BibTex. My addition of citations seems to work fine when I
look at the lyx file itself, but the output to DVI or
PDF just gives [?] for the citations, and the
References section is blank.

Here's what I did...
----------------------------
At the end of my document I did this:

Insert --> List/TOC --> BibTex bibliography

I added a .bib file to the Database (specifying the
full path), I chose the "plain" style, and clicked the
"Add bibliography to TOC" box.

For the Bibliography document setting I'm using the
"Natbib" citation style.

Here are some of the error messages that appear when I
try to look at the DVI output.  It seems to complain
that it can't "find" or "open" database files, yet I
can still add citations within the lyx environment as
if everything is fine.  That is, it seems that lyx
itself recognizes the .bib file just fine.  What's
going on?

-----------------------------
ERROR MESSAGES (some of them)
-----------------------------
I couldn't open database file
0_home_latex_bibfiles__refs_BibEdit_2.bib
---line 20 of file my_lyx_file.aux
\bibdata{0_home_arc_latex_bibfiles_neurosci_refs_BibEdit_2}
I'm skipping whatever remains of this command
------------------------------

NOTE:  The "bibdata" path looks funny to me.  What's
with the leading zero?  Is this the source of the
problem?

Not likely. LyX deliberately mangles path names to prevent spaces in paths (on Windoze) from breaking things. There may be other reasons as well for the mangling, but that's the one I know. The leading digit in the file name has something to do, I think, with having multiple documents open (or multiple parts of a document). I'm a bit fuzzy there, but I've seen leading digits on my files with no harm done.

If you open the document in LyX, try to view it, and then (without closing LyX) peek into the LyX temp directory, is 0_home_latex_bibfiles__refs_BibEdit_2.bib there? What about 0_home_arc_latex_bibfiles_neurosci_refs_BibEdit_2.bib? (Am I right that you have listed two different bibliography files in your document?)

My initial guess would be that LyX failed to copy one or both bibliography files over to the temp directory. I think that the symptom in the DVI file ("?" where you expect a reference) can occur if the bib files contain indigestible references (a misplaced brace or something), but the "couldn't open" error sounds more like a missing file (or one with a permissions problem).

/Paul

Reply via email to