I am using the WinEdt QuickGuide.tex as a template and tried to put in my bibliography with the following in my preamble:
\usepackage[refsection=chapter,defernumbers=true,sorting=none,sortcites=true,autopunct=true,babel=hyphen,hyperref=true,abbreviate=false,backref=true,backend=biber]{biblatex}
\addbibresource{C:/Superstar/Desktop/HomeWork/References/chap1.bib}
\defbibheading{bibempty}{}
\newcommand*{\refname}{Bibliography}
then in the document I used:
\chapter*{Bibliography}
\addcontentsline{toc}{chapter}{Bibliography}
\section*{Books}
\addcontentsline{toc}{section}{Books}
\printbibliography[heading=bibempty,type=book,prefixnumbers={B}]
\section*{Articles}
\addcontentsline{toc}{section}{Articles}
\printbibliography[heading=bibempty,type=article,prefixnumbers={A}]
\section*{Online}
\addcontentsline{toc}{section}{Online}
\printbibliography[heading=bibempty,type=misc,prefixnumbers={O}]
but then I get the error \protect...ing=bibempty,type=book,...
Is it because I am using this command in the scrbook class instead of the book class? If so, how do I get around this issue in the scrbook class?
Here is a minimum example where the problem comes in:
\documentclass{scrbook}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}
\usepackage{expl3,xparse}
\ExplSyntaxOn% syntax of expl3 on
%
\cs_new_eq:Nc \emph_old:n { emph~ } % Copying the old definition of `\emph`
\cs_new_eq:NN \emph_braces:n \textup % Braces should be typeset upright.
%
\cs_new:Npn \emph_new:n #1 {
\tl_set:Nn \l_emph_tl {#1}
\tl_replace_all:Nnn \l_emph_tl {(}{\emph_braces:n{(}}
\tl_replace_all:Nnn \l_emph_tl {)}{\emph_braces:n{)}}
\tl_replace_all:Nnn \l_emph_tl {[}{\emph_braces:n{[}}
\tl_replace_all:Nnn \l_emph_tl {]}{\emph_braces:n{]}}
\exp_args:NV \emph_old:n \l_emph_tl
}
%
% \emph umdefinieren, Sternvariante mit altem (=kursivem) Verhalten
\RenewDocumentCommand {\emph} {sm} {
\IfBooleanTF {#1} {\emph_old:n {#2}} {\emph_new:n {#2}}
}
%
\ExplSyntaxOff% syntax of expl3 on
\begin{document}
\backmatter
\printbibheading[heading=bibintoc,title=\bibname]
\printbibliography[heading=subbibintoc,type=book,prefixnumbers={B},title={Books}]
\printbibliography[heading=subbibintoc,type=article,prefixnumbers={A},title={Articles}]
\printbibliography[heading=subbibintoc,type=online,prefixnumbers={O},title={Online}]
\end{document}
Here is the error that I get:
Package biblatex Warning: Setting 'defernumbers=true' recommended.
Package biblatex Warning: Option 'prefixnumbers' requires global
(biblatex) 'defernumbers=true' on input line 33.
! Missing \endcsname inserted.
<to be read again>
\protect
l.33 ...type=book,prefixnumbers={B},title={Books}]


heading=subbibintocas option to\printbibliography. – Johannes_B Jun 09 '15 at 15:45scrbooki will drop i note to the maintainer. – Johannes_B Jun 09 '15 at 15:55\nocite{*}i don't see any problem. – Johannes_B Jun 09 '15 at 17:03scrbook. The first two are warning/recommendations, and in fact, optiondefernumbersis a very very good idea here. Is your version ofbiblatexup to date? – Johannes_B Jun 09 '15 at 19:28\nociteconfused me, it is the L3 stuff that is making trouble. I'll take a look, but i have nearly no experience with L3. – Johannes_B Jun 09 '15 at 19:58emphcome from? – Johannes_B Jun 09 '15 at 20:00