I was reading the question titled Customizing emacs to use biblatex-biber instead of bibtex. In that question, user @PLK mentions that as of auctex 11.87, auctex should automatically check if you are using biblatex and if so, switch to using biber. I have auctex 11.87 installed and running, but I am not getting this automatic switching behavior.
Say I have two files (borrowed from this question).
test.tex
\documentclass{article}
\usepackage[backend=biber]{biblatex}
\addbibresource{test.bib}
\defbibheading{bibliography}{}
\begin{document}
\nocite{*}
\subsection*{Journal Publications:}
\printbibliography[type=article]
\subsection*{Conference Publications:}
\printbibliography[type=inproceedings]
\end{document}
and test.bib
@ARTICLE{abc,
author = {A Author},
title = {the article title},
journal = {the journal},
year = {2012},
volume = {1},
pages = {1--2},
number = {1},
month = {1},
doi = {1234/5678}
}
@INPROCEEDINGS{def,
author = {A Author},
title = {the proceeding title},
journal = {the conference},
year = {2012},
volume = {1},
pages = {11--12},
number = {1},
month = {1},
doi = {5678/1234}
}
If I run the following commands:
pdflatex test.tex
biber test
pdflatex test.tex
I end up with a properly processed document. In emacs, when I press C-c C-c and select the BibTeX command, emacs runs bibtex test instead of biber test. I am then greeted with errors about no \citation \bibdata or \bibstyle commands. My bibtex-dialect variable is automatically getting set to biblatex, LaTeX-biblatex-use-Biber is set to t, TeX-command-Biber is set to Biber, but for some reason TeX-command-BibTex variable is still set to BibTeX. Should this automatically get changed to Biber? Do I have to set it using a local variable? Is this a bug, or am I doing something wrong?
EDIT
According to this page in the AUCTeX 11.87 manual:
In case you use biblatex in a document, AUCTeX switches from BibTeX to Biber for bibliography processing.
So I feel like this automatic switch should already be happening.
biberorbibtexlooking atbiblatexload options. – giordano Aug 20 '13 at 15:56(setq TeX-auto-save t) (setq TeX-parse-self t) (setq-default TeX-master nil)in your.emacs? – giordano Aug 20 '13 at 16:08TeX-masterline. Adding it makes no difference to the behavior. I just realized that I had a small mistake in my.emacs. Fixing that, I now see that AUCTeX 11.87 has added aBibercommand to theTeX-command-list. UsingC-c C-cand choosingBiberinstead ofBibTeXwill allow the document to be correctly processed. I still feel like either the 11.87 documentation is slightly misleading, or I'm still doing something wrong. – jarvisschultz Aug 20 '13 at 16:19TeX-master-fileisn't really important in this case, the only fundamental option isTeX-parse-self, which enables parsing. When parsing is activated, AUCTeX 11.87 will prompt forBiberorBibTexdepending on the value ofLaTeX-biblatex-use-Biber, but won't be able to automatically decide which backend is to be used, you have always to adapt the value ofLaTeX-biblatex-use-Biber. As I already said, next AUCTeX version will have the ability to choose the right backend. – giordano Aug 20 '13 at 16:25