[Tex/LaTex] Trouble referencing with Bibtex and TeXstudio

bibtextexstudio

All right, this is driving me crazy… I have thesis example template with one reference that I'm trying to compile with TeXstudio on Windows 7.

My thesis template looks like this:

...a bunch of text
This is some more text \cite{greenwade93}.
\bibliographystyle{plain}
\bibliography{References}
...

My references are in References.bib:

@article{greenwade93,
author  = "George Greenwade",
title   = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
year    = "1993",
journal = "TUGBoat",
volume  = "14",
number  = "3",
pages   = "342--351"
}

The bibliography shows up with the reference at the end of my thesis and the .bbl file looks fine. However, the citation in the text is just a bolded question mark.

I do get a warning that:

"Latex Warning: Citation 'greenwade93' on page 4 undefined on input line 810."

This is my thesis.bbl file:

\begin{thebibliography}{1}

\bibitem{greenwade93}
George Greenwade.
\newblock The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN}).
\newblock {\em TUGBoat}, 14(3):342--351, 1993.

\end{thebibliography}

This is my thesis.blg file:

This is BibTeX, Version 0.99dThe top-level auxiliary file: thesis.aux
The style file: plain.bst
Database file #1: References.bib

The thesis.aux also looks fine to me… The last few lines of the .aux file are:

\bibstyle{plain}
\bibdata{References}
\bibcite{greenwade93}{1}
\HyPL@Entry{15<</P(6)>>}
\@writefile{toc}{\contentsline {chapter}{Bibliography}{6}{subsection.4.3.2}}

I've searched here and through google for this problem and have found lots… But most of the answer seem to be to run Latex > Bibtex > Latex > Latex

But that is what I'm already doing I think, so I'm stumped. Any help is much appreciated!

Best Answer

I also had this problem. I solved it by setting the path of the bibtex.exe as the following steps:

  1. click the Options menu
  2. click Configuration TeXstudio
  3. click Command and the enter the path of bibtex.exe in your machine, for example its path in my PC is C:/Program Files (x86)/MiKTeX 2.9/miktex/bin/bibtex.exe, you can enter it as follows:

    "C:/Program Files (x86)/MiKTeX 2.9/miktex/bin/bibtex.exe  " %
    
Related Question