[Tex/LaTex] BibTex doesn’t create .bbl file (Using Emacs/AUCTEX)

auctexbibliographiesbibtexemacs

I am having a real issue with compiling BibTeX (has previously worked fine).

When I compile LaTeX, an aux file is created.

Here is my test.aux

\relax 
\citation{carron2013big}
\bibdata{rhian}
\bibstyle{plain}

I then run BibTeX on my test.tex and receive the message BibTeX finished successfully. Run LaTeX again to get citations right

But no .bbl file is generated which means non of my citations work.

Here is my test.tex

\documentclass{article}
\begin{document}
I really like the paper by \cite{carron2013big}. Its nice. 
\bibliography{rhian.bib}
\bibliographystyle{plain}
\end{document}

And my rhian.bib

@misc{carron2013big,
title = {Compressive Sensing: The Big Picture},
author = {Carron, I.},
year = 2013,
howpublished = {\url{ https://sites.google.com/site/igorcarron2/cs#reconstruction}}
}

output from Emacs is:

 'Running BibTeX on text with bibtex $s
bibtex: Need exactly one file argument.
Try bibtex --help for more information.'

Any thoughts?

Best Answer

(Based on discussion in the comments.)

For whatever reason, a typo seems to have creeped into the settings of the .emacs file. The error

'Running BibTeX on text with bibtex $s

was the clue. The normal AUCTeX setting should be something like bibtex %s (not $s). Making the appropriate change in your .emacs file should do the trick. Search for something like

("BibTeX" "bibtex $s" TeX-run-BibTeX nil t :help "Run BibTeX")

and make the appropriate change.