Tuesday, 20 August 2013

get emacs to automatically use biber instead of bibtex

get emacs to automatically use biber instead of bibtex

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.

No comments:

Post a Comment