LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ TexStudio won't compile bib files

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
saudiwin
Posts: 1
Joined: Tue Jan 14, 2014 8:03 pm

TexStudio won't compile bib files

Hello Texperts,

I use TexStudio on Windows 7 and have MikTeX installed as the LaTeX distribution. Per the advice that I read elsewhere online, I set up my own texmf directory and added it to the MikTeX configuration file so that I can use one standard .bib file across LaTeX files. The reason I did this is because it was too hard to come up with a filename path that did not have spaces due to folder names on Windows.

The odd thing is, any `.tex` file will compile with TexWorks (from the MikTex distribution) and include the proper references and generate a `.bib` file for the `.tex` file. However, when I try the same action in TexStudio it fails to generate any Bibtex references (the output shows question marks instead of references). When I scan the log I find warnings that the references are empty but I don't see any errors regarding the `\bibliography` reference. The code I am using is:

`\bibliographystyle{apa}\clearpage\bibliography{BibTexDatabase}`

and the file `BibTexDatabase.bib` is located in a filepath `~\Tex\bibtex\misc`.

Once I compile the file with TeXWorks and generate a `.bib` file, I can go back and edit the file further in TeXStudio and it will compile just fine. But TeXStudio can't seem to generate the `.bib` file on its own, which seems a bit of a mystery as it is using the same backend for compiling. I can't find any details in the log to provide a clue, either. All I can get is this:

`Package natbib Warning: Citation `Weyland2012' on page 1 undefined on input line 16.  Package natbib Warning: Citation `kuran1989sparks' on page 1 undefined on input  line 16.  Package natbib Warning: Citation `Howard2011' on page 1 undefined on input line  20.  Package natbib Warning: Citation `olson2009logic' on page 1 undefined on input line 22. [1]No file Pre-proposalV2.bbl. Package natbib Warning: There were undefined citations.`
Last edited by cgnieder on Thu Jan 16, 2014 8:43 pm, edited 1 time in total.

Tags:

cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm
Hi saudiwin,

Welcome to the LaTeX community!

I don't know either editor but it seems the one detects that there are bibliography commands in the file and runs `bibtex` on its own while the other doesn't (which is at least to me the more normal behaviour). It looks to me that you have to run `bibtex` by yourself then.

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

msoni
Posts: 1
Joined: Tue Feb 19, 2019 4:51 pm
Just close your pdf which you have created after running the file. Then that might work hopefully.