由于 \printbibliography 导致控制序列未定义

由于 \printbibliography 导致控制序列未定义

我目前正在使用 TeX Live 和 Texmaker 撰写我的硕士论文,突然遇到了指向该行的“未定义的控制序列”

\printbibliography[heading=bibintoc,title={References}]

在我的序言中。但是,此错误仅在第二次运行 pdflatex 时出现,此时所有 .aux 文件等均已从相应文件夹中删除。对于预先存在的文件,这种情况在第一次运行时就已经发生了。

我当前的序言(缩短):

\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[british]{babel}
\usepackage[backend=biber,style=apa,citestyle=authoryear,bibstyle=apa]{biblatex}
\DeclareLanguageMapping{british}{british-apa}
\addbibresource{JabRefDB.bib}
\begin{document}
\include{TitlePage} %removed several chapters of text
\printbibliography[heading=bibintoc,title={References}]
\include{Appendix}
\end{document}

我收到的错误有好几行,因此我只添加了前两行:

! Undefined control sequence.
\blx@theformat #1#2#3#4#5#6#7#8->\nameparts
{#1}\ifthenelse {\value {listcou...
l.48 ...raphy[heading=bibintoc,title={References}]
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
<argument> ...artprefix \namepartfamily }\ifempty
{\namepartprefix }{}{\mkbi...
l.48 ...raphy[heading=bibintoc,title={References}]
The control sequence ...

我已经寻找答案好几个小时了,但似乎找不到这个问题的根本原因。任何帮助都将不胜感激!

相关内容