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: Code: Select all
\bibliographystyle{apa}
\clearpage
\bibliography{BibTexDatabase}
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:Code: Select all
Package natbib Warning: Citation `Weyland2012' on page 1 undefined on input lin
e 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.