After updating biblatex
of MikTex 2.9 I get the following error message when using:
\printbibliography[prenote=conference, keyword=C, prefixnumbers={C}]
Package biblatex Warning: prefixnumbers option to \printbibliography is no longer supported, use 'labelprefix' option to \newrefcontext.
However, when I use instead:
%...
\newrefcontext[labelprefix=C]
\printbibliography[prenote=conference, keyword=C]
I get the following error message (line 17 being the \printbibliography...):
LaTeX Warning: Empty bibliography on input line 17.
Here is a complete minimal working example with both variants (one is commented out):
\documentclass[11pt, a4paper, twoside, cleardoublepage=plain, openright]{scrbook}
\usepackage{filecontents}
\begin{filecontents}{references.bib}
@inproceedings{test-conference,
author = {Test Author 1},
title = {Test Title 1},
booktitle = {Test Booktitle 1},
year = {2016},
keywords = {C}
}
@inproceedings{test-workshop,
author = {Test Author 2},
title = {Test Title 2},
booktitle = {Test Booktitle 2},
year = {2016},
keywords = {W}
}
\end{filecontents}
\usepackage[style=ieee, backend=bibtex, bibencoding=ascii, defernumbers=true, maxnames=10]{biblatex}
\addbibresource{references.bib}
\begin{document}
Conference paper: \cite{test-conference}
Workshop paper: \cite{test-workshop}.
\defbibnote{conference}{Conference Papers}
\defbibnote{workshop}{Workshop Papers}
% #### Variant 1 ####
% ## Producing error: Package biblatex Warning: prefixnumbers option to \printbibliography is no longer supported, use 'labelprefix' option to \newrefcontext.
% ## Generating output with bibliography but without C or W as prefix.
\printbibliography[prenote=conference, keyword=C, prefixnumbers={C}]
\printbibliography[prenote=workshop, keyword=W, prefixnumbers={W}]
% #### Variant 2 ####
% ## Producing error: LaTeX Warning: Empty bibliography on input line ...
% ## Generating output completely without bibliography.
% \newrefcontext[labelprefix=C]
% \printbibliography[prenote=conference, keyword=C]
% \newrefcontext[labelprefix=W]
% \printbibliography[prenote=workshop, keyword=W]
\end{document}
What am I missing?
UPDATE: Thanks to Guido's advise, it (almost) works after I changed the backend option to biber as shown below. I now get the bibliographies with the prefixes as desired. However, in the document where I cite the references, I get [0] instead of [C1] or [W1], respectively. Interestingly, there is no error message or warning from pdflatex during compilation.
\usepackage[style=ieee, backend=biber, bibencoding=ascii, defernumbers=true, maxnames=10]{biblatex}
\addbibresource{references.bib}
\begin{document}
Conference paper: \cite{test-conference} should be [C1] but is [0].
Workshop paper: \cite{test-workshop} should be [W1] but is [0].
\defbibnote{conference}{Conference Papers}
\defbibnote{workshop}{Workshop Papers}
\newrefcontext[labelprefix=C]
\printbibliography[prenote=conference, keyword=C]
\newrefcontext[labelprefix=W]
\printbibliography[prenote=workshop, keyword=W]
\end{document}
What's causing this?
prefixnumber
is no longer supported, and you have to change tolabelprefix
option ofrefcontext
. It seems to me thatrefcontext
s are not supported by thebibtex
backend, so you have switch tobiber
as backend. When you do, it seems there is a problem with theieee
style. – Guido Jul 1 '16 at 10:51